Default Sound Card

markfree's picture

Forums: 

Hi guys.

I am using a usb headset with its own externel sound card but I am not being able to switch to it.
Whenever I change card to 1 (the headset) on ".asoundrc" file it just won't work. It keeps playing on card 0.
I wanted to make something similar to this http://forums.debian.net/viewtopic.php?f=7&t=110145&p=523860&hilit=asoun...

$ aplay -L
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC898 Analog [ALC898 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC898 Digital [ALC898 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Headset [Sirus Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Currently my ~/.asounrc

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 1
}

I tried stoping alsa-utils after changing the file and starting again but it din't work either.

When I try the command below it gives an error, but if I switch card to 0 it works.

$ aplay -D default ./Downloads/beep-04.wav
Playing WAVE './Downloads/beep-04.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:1087: Channels count non available

Please, help me out guys. How do I make it work?

Testing works

markfree's picture

I changed the default line on /usr/share/alsa/alsa.conf file, with no success.
The sound kept playing through the speakers, not the headset.

There is a third line, when changed to 1 it just freezed any sound. Simply no sound at all, with no errors either.

#
# defaults
#

# show all name hints also for definitions without hint {} section
defaults.namehint.showall off
# show just basic name hints
defaults.namehint.basic on
# show extended name hints
defaults.namehint.extended off
#
defaults.ctl.card 1
defaults.pcm.card 1
<strong>defaults.pcm.device 1</strong>

I did the speaker-test for my headset and it worked.
speaker-test -D surround51:Headset -c6 -twav

Also tryed Aplay for the headset and it worked.
$ aplay -D hw:1,0 ./Downloads/6_Channel_ID.wav

Basicaly, those are the only things that work... for now.