aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-11-18 09:43:52 +0100
committerTakashi Iwai <tiwai@suse.de>2010-11-22 08:14:06 +0100
commit59ff878ffb26bc0be812ca8295799164f413ae88 (patch)
treed3e8c044e3094fb95027fe669dc392dedb1d2d1c /drivers/video
parent075140ea8bf1405057c072a84ccf4e0d3f2c76f5 (diff)
downloadkernel_samsung_aries-59ff878ffb26bc0be812ca8295799164f413ae88.zip
kernel_samsung_aries-59ff878ffb26bc0be812ca8295799164f413ae88.tar.gz
kernel_samsung_aries-59ff878ffb26bc0be812ca8295799164f413ae88.tar.bz2
ALSA: pcm: detect xruns in no-period-wakeup mode
When period wakeups are disabled, successive calls to the pointer update function do not have a maximum allowed distance, so xruns cannot be detected with the pointer value only. To detect xruns, compare the actually elapsed time with the time that should have theoretically elapsed since the last update. When the hardware pointer has wrapped around due to an xrun, the actually elapsed time will be too big by about hw_ptr_buffer_jiffies. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions