LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ALSA asound.conf preventing PCM devices from being listed (http://www.linuxquestions.org/questions/linux-hardware-18/alsa-asound-conf-preventing-pcm-devices-from-being-listed-933070/)

Luc484 03-06-2012 02:22 PM

ALSA asound.conf preventing PCM devices from being listed
 
Hi! I'm working on an embedded device where I have this strange situation. When no asound.conf file is provided, aplay --list-pcm and arecord --list-pcm returns a list with all the devices attached. This list is correct.

If I provide this asound.conf to be able to resample the output automatically (I need this for HDMI audio output), I get that no device is listed with aplay --list-pcm and arecord --list-pcm.

Code:

pcm_slave.sl2 {
        pcm "hw:0,0"
        rate 48000
        channels 2
        format S16_LE
}

pcm.rate_convert {
        type plug
        slave sl2
}

pcm.!default rate_convert

I still can play and capture using ALSA directly, but I need PCM devices to be listed because Qt libraries need that to provide audio capabilities.
Why is this asound.conf preventing PCM devices to be recognized as such? Anyone able to fix the conf file to still resample output to the default device but keeping the list of PCM devices unchanged?
Thanks!

ukiuki 04-05-2012 01:02 PM

Which one is the version of your Kubuntu? The following link might be of interest to you specially the post #9.
http://ubuntuforums.org/showthread.php?t=1348604
Also
http://www.alsa-project.org/main/index.php/Asoundrc

Regards

Luc484 04-11-2012 04:27 PM

This is not a Kubuntu. This is a Linux Embedded built from scratch. My asound.conf looks exactly like the one in the second link, in fact that is where I took it. But, why placing my last line to set that rate_convert as the default I loose all my other PCM devices. That doesn't seem logical to me. And that is the question. Why setting rate_convert PCM device the default makes all the other PCM devices disappear?


All times are GMT -5. The time now is 12:59 AM.