]> nv-tegra.nvidia Code Review - linux-2.6.git/commit - sound
[ALSA] pcm-midlevel: Add more strict buffer position checks based on jiffies
authorJaroslav Kysela <perex@perex.cz>
Fri, 10 Apr 2009 10:28:58 +0000 (12:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Apr 2009 10:28:58 +0000 (12:28 +0200)
commitbbf6ad1399e9516b0a95de3ad58ffbaed670e4cc
treee8803b502eb20956537718e09430d97fec970457
parentfa00e046b41663cbda9b1affc0594669e5f14219
[ALSA] pcm-midlevel: Add more strict buffer position checks based on jiffies

Some drivers like Intel8x0 or Intel HDA are broken for some hardware variants.
This patch adds more strict buffer position checks based on jiffies when
internal hw_ptr is updated. Enable xrun_debug to see mangling of wrong
positions.

As a side effect, the hw_ptr interrupt update routine might do slightly better
job when many interrupts are lost.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/sound/pcm.h
sound/core/pcm_lib.c