ALSA: Rewrite hw_ptr updaters
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2009 16:00:15 +0000 (17:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Mar 2009 11:56:49 +0000 (12:56 +0100)
commited3da3d9a0ef13c6fe1414ec73c9c1be12747b62
treee79103738c1d30f8528791af2a1fb44cef2c2371
parent2450cf51a1bdba7037e91b1bcc494b01c58aaf66
ALSA: Rewrite hw_ptr updaters

Clean up and improve snd_pcm_update_hw_ptr*() functions.

snd_pcm_update_hw_ptr() tries to detect the unexpected hwptr jumps
more strictly to avoid the position mess-up, which often results in
the bad quality I/O with pulseaudio.

The hw-ptr skip error messages are printed when xrun proc is set to
non-zero.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c