Re: speaker-test stalls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux