]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c47048db6986e99294670f8098e5a65d2b33885
tree3d48a4e0c7ea8f176e4e64210da92b06a3f28036
parentdb2945f67cc36ad4049bfbcc45810821940e11ee
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