]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: pcm: Call ack() whenever appl_ptr is updated
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 May 2017 18:22:33 +0000 (20:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2017 21:34:47 +0000 (23:34 +0200)
commit9027c4639ef1e3254779e3033f229133222445f7
tree93d246fb50663aa6c6db6e7a8b4f99b7fcfcf439
parent9ce7b9cf64dc1a48a074033a83c8ea314b38540c
ALSA: pcm: Call ack() whenever appl_ptr is updated

Although the ack callback is supposed to be called at each appl_ptr or
hw_ptr update, we missed a few opportunities: namely, forward, rewind
and sync_ptr.

Formerly calling ack at rewind may have leaded to unexpected results
due to the forgotten negative appl_ptr update in indirect-PCM helper,
which is the major user of the PCM ack callback.  But now we fixed
this oversights, thus we can call ack callback safely even at rewind
callback -- of course with the proper handling of the error from the
callback.

This patch adds the calls of ack callback in the places mentioned in
the above.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c