[alsa-devel] speaker-test stalls

Dave Dillow dave at thedillows.org
Fri Dec 14 13:48:11 CET 2007


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:
> > 1) snd_pcm_sw_params_set_avail_min() to 1 sample
> > 2) 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.



More information about the Alsa-devel mailing list