]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm midlevel code - add time check for double interrupt acknowledge
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Aug 2010 12:16:54 +0000 (14:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Aug 2010 13:18:02 +0000 (15:18 +0200)
commit9226fbea90094d7a55ec945ffe591f585fd5b023
tree27f95b3e568146eed0958989f3f8d0c4eae3616b
parentc0ce6d4111591a788a69fcbdbbc53a2f6bf02431
ALSA: pcm midlevel code - add time check for double interrupt acknowledge

The current code in pcm_lib.c do all checks using only the position
in the ring buffer. Unfortunately, where the interrupts gets delayed or
merged into one, we need another timing source to check when the
buffer size boundary overlaps to avoid the wrong updating of the
ring buffer pointers.

This code uses jiffies to check the right time window without any
performance impact.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_lib.c
sound/core/pcm_native.c