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)
commit947ca210f1df7656e19890832cb71fc3bdd88707
tree097d132f03886a3aae96856d7d8570df08552ec8
parent89350640439e0160056de26995d52deb18202b3e
ALSA: pcm - Fix hwptr buffer-size overlap bug

The fix 79452f0a28aa5a40522c487b42a5fc423647ad98 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