]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm - Fix hwptr buffer-size overlap bug
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Jul 2009 14:21:08 +0000 (16:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Jul 2009 14:21:08 +0000 (16:21 +0200)
commitc9e23deb9219427045648f23c5a7e403865fde8a
tree097d132f03886a3aae96856d7d8570df08552ec8
parenta58e29789f7dfe5741e99b61fcc8fb1f6a038324
ALSA: pcm - Fix hwptr buffer-size overlap bug

The fix 5cec91b61b32e1f5cc7a6f41436405bea531f5b7 introduced another
bug due to the missing offset for the overlapped hwptr.
When the hwptr goes back to zero, the delta value has to be corrected
with the buffer size.  Otherwise this causes looping sounds.

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