ALSA: pcm - Fix delta calculation at boundary overlap
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 09:08:49 +0000 (10:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 09:08:49 +0000 (10:08 +0100)
commitded652f7024bc2d7b6118b561a44187af30841b0
tree3d48a4e0c7ea8f176e4e64210da92b06a3f28036
parent5f513e1197f27e9a0bcfec0feaac59f976f4a37e
ALSA: pcm - Fix delta calculation at boundary overlap

When the hw_ptr_interrupt reaches the boundary, it must check whether
the hw_base was already lapped and corret the delta value appropriately.

Also, rebasing the hw_ptr needs a correction because buffer_size isn't
always aligned to period_size.

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