diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-13 16:57:28 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-14 08:44:27 +0300 |
commit | f8ff2f28ba49fa41a06215ac3187dede347bc9a7 (patch) | |
tree | 7e6c9f57461f824acf91fe45b0f4b2166e9f8c0d /include/sound/pcm.h | |
parent | 4e99151435cb2e88b6d0d49939bf836c35e555a3 (diff) | |
download | linux-f8ff2f28ba49fa41a06215ac3187dede347bc9a7.tar.xz |
ALSA: pcm: Skip ack callback without actual appl_ptr update
We call ack callback whenever appl_ptr gets updated via
pcm_lib_apply_appl_ptr(). There are various code paths to call this
function. A part of them are for read/write/forward/rewind, where the
appl_ptr is always changed and thus the call of ack is mandatory.
OTOH, another part of code paths are from the explicit user call,
e.g. via SYNC_PTR ioctl. There, we may receive the same appl_ptr
value, and in such a case, calling ack is obviously superfluous.
This patch adds the check of the given appl_ptr value, and returns
immediately if it's no real update.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/pcm.h')
0 files changed, 0 insertions, 0 deletions