[alsa-devel] Do I have to use plugin?

Jassi Brar jassisinghbrar at gmail.com
Thu Jan 6 02:31:49 CET 2011

On Thu, Jan 6, 2011 at 3:43 AM, Radivoje Jovanovic
<radivojejovanovic at gmail.com> wrote:
> Hi,
> I have a system that is slow and cannot support overhead for re-sampling
> input streams. The codec on the system supports all rates from 8K-48K and it
> is continuous so pretty much any rate should work no problem. However, I
> noticed that when I play a song that has weird rate that is not specified in
> the constraint list aplay would come back saying that it cannot set hardware
> parameters. If I play the same song using the virtual device through "plug"
> plugin the thing works no problem. I guess that alsa-lib re-samples the data
> to rate specified in the virtual device. Is there any way for me to force
> alsa to forward any rate to the hardware driver?

Perhaps you need to add SNDRV_PCM_RATE_CONTINUOUS/KNOT to the rates list
in both the CPU and the CODEC drivers.

More information about the Alsa-devel mailing list