[alsa-devel] [PATCH 3/3] ASoC: omap-mcbsp: Add period size protection mode

Jarkko Nikula jarkko.nikula at bitmer.com
Tue Mar 20 20:20:56 CET 2012


On 03/20/2012 06:42 PM, Grazvydas Ignotas wrote:
> This is what we have in pandora tree now:
> http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff;h=d494977441ac8f99d094b5e03398cb33a14e832a
> Seems to work well for everything here.
> 
To me this looks more like a correct fix. At quick test I got single
xrun when starting up but not endless loop of them. Maybe need to tune a
bit with CONFIG_SND_PCM_XRUN_DEBUG=y.

As a reference here are the test cases from you and Peter:

Nok:
aplay -D hw:0 -f s16_le -c 2 --period-size=512 --start-delay=50000
/dev/urandom

Ok:
aplay -D hw:0 -fs16_le -c2 --period-size=320 --buffer-size=972 \
--start-delay=81000 -v /dev/urandom

Nok:
aplay -D hw:0 -fs16_le -c2 --period-size=324 --buffer-size=972 \
--start-delay=81000 -v /dev/urandom

-- 
Jarkko


More information about the Alsa-devel mailing list