[alsa-devel] What recommended performance for ALSA(ASoC)?

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Mar 7 12:20:09 CET 2008

On Fri, Mar 07, 2008 at 08:49:09AM +0100, Jaroslav Kysela wrote:
> On Fri, 7 Mar 2008, Jinyoung Park wrote:

> > Target system' processor(ARM9) clock is 200MHz and BogoMIPS is
> > 99.6(cat /proc/cpuinfo). Linux kernel version is

> > What recommended performance for ALSA(ASoC)?
> > If my target system is enough performance, shall I do that solve problem?

That should be more than enough in terms of CPU performance - it's
fairly typical for an ASoC-based system.

> It looks like that your driver has trouble with highter rates. Also, try 
> to measure where the problem occurs. Maybe your system is not able to 
> deliver data from source in time to sound DMA buffer for continuous 
> playback. Note that whole system must be tuned not only ALSA driver to get 
> satisfiable results. DMA+mmap transfers are pretty lightweight in ALSA, 
> but if disc read operation eats too much CPU time, you cannot expect good 
> results.

If the CPU is busy it's also worth ensuring that the playback format you
are using is directly supported by the hardware to avoid the CPU having
to do any additional transcoding.

> Regarding noises - I would check if DMA ring buffer position reported from 
> driver is correct in application. It looks like a handshake or 
> maybe cache problem.

Also check that the clocking of the audio subsystem isn't going to be
introducing any glitches.  You usually want to ensure that the audio
parts of the system are part of a single clocking domain.

More information about the Alsa-devel mailing list