LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-14-2011, 03:50 PM   #1
esllq
LQ Newbie
 
Registered: Sep 2011
Location: ALCAMPELL
Distribution: debian
Posts: 2

Rep: Reputation: Disabled
default sound card specification in alsa conf files


Is the syntax for specifying defaults different in asound.conf than in .asoundrc? Because after reading

http://www.alsa-project.org/main/index.php/Asoundrc

I changed my asound.conf from

Code:
defaults.pcm.!card 1
defaults.ctl.!card 1
defaults.pcm.!device 3
defaults.ctl.!device 3
to

Code:
pcm.!default {
  type hw
  card 1
  device 3
}

ctl.!default {
  type hw
  card 1
  device 3
}
and never get this to work, not even supressing the 'type' param (the only obvious difference I could see), so I had to revert to the previous form.

My config:

Code:
# uname -a
Linux escampalaboira 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.24.
# cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe8f4000 irq 16
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfeae8000 irq 19
 2 [Emotion        ]: USB-Audio - Dualpix Emotion
                      Guillemot Corporation Dualpix Emotion at usb-0000:00:12.2-2, high speed
# cat /proc/asound/devices
  1:        : sequencer
  2: [ 2- 0]: digital audio capture
  3: [ 2]   : control
  4: [ 0- 2]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 1]: digital audio capture
  7: [ 0- 0]: digital audio playback
  8: [ 0- 0]: digital audio capture
  9: [ 0- 0]: hardware dependent
 10: [ 0]   : control
 11: [ 1- 3]: digital audio playback
 12: [ 1- 0]: hardware dependent
 13: [ 1]   : control
 33:        : timer
# cat /proc/asound/oss-devices
cat: /proc/asound/oss-devices: No such file or directory
# cat /proc/asound/timers
G0: system timer : 4000.000us (10000000 ticks)
G3: HR timer : 0.001us (1000000000 ticks)
  Client sequencer queue 0 : stopped
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
P0-1-1: PCM capture 0-1-1 : SLAVE
P0-2-1: PCM capture 0-2-1 : SLAVE
P1-3-0: PCM playback 1-3-0 : SLAVE
P2-0-1: PCM capture 2-0-1 : SLAVE
# cat /proc/asound/pcm
00-00: ALC1200 Analog : ALC1200 Analog : playback 1 : capture 1
00-01: ALC1200 Digital : ALC1200 Digital : playback 1 : capture 1
00-02: ALC1200 Analog : ALC1200 Analog : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
02-00: USB Audio : USB Audio : capture 1
Thanks in advance.

Last edited by esllq; 09-14-2011 at 06:08 PM. Reason: more specific title
 
Old 09-15-2011, 10:35 PM   #2
ITPhoenix
Member
 
Registered: Mar 2011
Location: Northeast USA
Distribution: Debian Squeeze
Posts: 47

Rep: Reputation: 1
Smile

You should check this out:
http://www.sabi.co.uk/Notes/linuxSoundALSA.html
 
1 members found this post helpful.
Old 09-16-2011, 12:54 PM   #3
esllq
LQ Newbie
 
Registered: Sep 2011
Location: ALCAMPELL
Distribution: debian
Posts: 2

Original Poster
Rep: Reputation: Disabled
[Solved] default sound card specification in alsa conf files

What a wealth of information! I wasn't able to find the relevant pages in alsa-project.org by myself, but now the original question is solved and I can see where to start from to learn as much as I wish about alsa. Thank you!
 
  


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
defaults sarge alsa modules messed up PunkPT Debian 2 01-05-2005 05:20 PM
Defaults? aethiolas Linux - Newbie 2 12-21-2004 05:31 AM
Restoring ALSA mixer defaults in Gentoo? Seph64 Linux - Distributions 2 01-22-2004 12:01 PM
setting up alsa defaults LinFreak! Linux - General 10 10-01-2003 12:13 PM
ALSA always defaults to mute strophy Linux - Software 1 09-01-2003 06:32 AM


All times are GMT -5. The time now is 09:18 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