[alsa-devel] Do I have to use plugin?
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? On the other hand is there any way I can specify multiple rates in the plug? For example my plug has: rate 32000 I tried rate 8000, 32000 and rate 8000 32000 but non of these worked.
Cheers Ogi
On Wed, Jan 05, 2011 at 10:43:23AM -0800, Radivoje Jovanovic wrote:
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"
If your hardware is capable of supporting other rates then why not just it declare that support?
On Thu, Jan 6, 2011 at 3:43 AM, Radivoje Jovanovic radivojejovanovic@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.
participants (3)
-
Jassi Brar
-
Mark Brown
-
Radivoje Jovanovic