]> 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)
committerJaroslav Kysela <perex@perex.cz>
Thu, 19 Aug 2010 07:15:24 +0000 (09:15 +0200)
commit01590669fc68328953442ab0780505e6fff5e754
tree74bd0f5fc69f1b2b937921d01dcc5e3b52b77efc
parent47128b1deae617e388695c5585dacf988822a9bb
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>
include/sound/pcm.h
sound/core/pcm_lib.c
sound/core/pcm_native.c