LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   default sound card specification in alsa conf files (https://www.linuxquestions.org/questions/linux-software-2/default-sound-card-specification-in-alsa-conf-files-903046/)

esllq 09-14-2011 03:50 PM

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.

ITPhoenix 09-15-2011 10:35 PM

You should check this out:
http://www.sabi.co.uk/Notes/linuxSoundALSA.html

esllq 09-16-2011 12:54 PM

[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!


All times are GMT -5. The time now is 03:53 PM.