You are not logged in.

#1 2009-05-21 20:07:20

thadeusb
Member
Registered: 2009-05-21
Posts: 4

[SOLVED] Multiple Sound Cards

My system has many sound cards, a pc-speaker, hdmi cable, on-board sound, and a usb recording device. Alsa keeps trying to use the pc-speaker as its default sound card, and I can not hear any sounds. How do you set the default sound card? ( I know it is trying to use the pc-speaker because when I try to play a sound I can hear the speaker inside the pc clicking. )

[root@RA etc]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CK804 [NVidia CK804], device 0: Intel ICH [NVidia CK804]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CK804 [NVidia CK804], device 2: Intel ICH - IEC958 [NVidia CK804 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

[root@RA etc]# aplay -L
hdmi:CARD=HDMI
    HDA ATI HDMI, ATI HDMI
    HDMI Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=CK804
    NVidia CK804, NVidia CK804
    Default Audio Device
front:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    Front speakers
surround40:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    4.0 Surround output to Front and Rear speakers
surround41:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CK804,DEV=0
    NVidia CK804, NVidia CK804 - IEC958
    IEC958 (S/PDIF) Digital Audio Output

Last edited by thadeusb (2009-05-22 03:55:05)

Offline

#2 2009-05-22 03:54:50

thadeusb
Member
Registered: 2009-05-21
Posts: 4

Re: [SOLVED] Multiple Sound Cards

This needs to be added on the main page of the wiki or something =/

Fixed:

edit /usr/share/alsa/alsa.conf

change the lines that say:

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0

change 0 to the card number that you want to be default

List the card numbers by

aplay -l

Offline

#3 2009-07-05 13:44:37

smdias
Member
Registered: 2009-06-10
Posts: 9

Re: [SOLVED] Multiple Sound Cards

thadeusb wrote:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0

change 0 to the card number that you want to be default

Thank you! That helped me!

Offline

Board footer

Powered by FluxBB