aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorClemens Ladisch <[email protected]>2010-11-18 09:43:52 +0100
committerTakashi Iwai <[email protected]>2010-11-22 08:14:06 +0100
commit59ff878ffb26bc0be812ca8295799164f413ae88 (patch)
treed3e8c044e3094fb95027fe669dc392dedb1d2d1c /scripts
parent075140ea8bf1405057c072a84ccf4e0d3f2c76f5 (diff)
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions