LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-06-2012, 03:22 PM   #1
Luc484
Member
 
Registered: Dec 2004
Distribution: Kubuntu
Posts: 62

Rep: Reputation: 15
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!
 
Old 04-05-2012, 02:02 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,029

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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

Last edited by ukiuki; 04-05-2012 at 02:03 PM.
 
Old 04-11-2012, 05:27 PM   #3
Luc484
Member
 
Registered: Dec 2004
Distribution: Kubuntu
Posts: 62

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Purpose of asound.conf? ananth86coolguy Linux - Newbie 1 11-30-2009 04:11 AM
/etc/bluetooth/asound.conf in 12.2 Woodsman Slackware 2 08-23-2009 03:59 PM
asound.conf adrsound advanced config phanohanover Linux - Hardware 0 02-06-2009 11:46 AM
Making progs use definitions in asound.conf? tuxedo-notebook Linux - Hardware 4 03-20-2006 03:16 PM
Need help for ALSA Sound /etc/asound.conf or .asoundrc tho_x_tran Linux - Hardware 0 08-09-2004 03:34 PM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration