14 Dec
2007
14 Dec
'07
1:48 p.m.
On Thu, 2007-12-13 at 12:04 +0100, Takashi Iwai wrote:
At Sat, 08 Dec 2007 15:58:40 -0500, Dave Dillow wrote:
Assuming that this is desired behavior from the kernel side, then I see three options to fix this in speaker-test:
- snd_pcm_sw_params_set_avail_min() to 1 sample
- snd_pcm_sw_params_set_start_threshold() to start when (nperiods - 1)
are ready (or be even more aggressive) 3) call snd_pcm_drain() at the end of each loop to clear out the buffer. This won't help if the wave file has fewer samples than the buffer size.
Options 1 or 2 seem to be best.
Thoughts?
Just to be sure: Is it with the latest alsa-lib and alsa-utils from HG?
Yes, this is with the latest alsa-lib and alsa-utils -- I did an hg-update to be sure.
Sorry for the delay, I needed to rebuild the buildroot to be sure.