I just got a LX-3000 LifeChat USB headset and what I'd like to do is having it as a hotplug device, so that the system chooses it as the default card over the internal sound card when it's plugged in. The same way, I want the system to choose the internal sound card as the default card when the headset is unplugged.
I'm very far from achieving that. All I've managed to do is getting one card or the other to work, but never both at the same time.
Code: Select all
# cat /proc/asound/modules
0 snd_usb_audio
1 snd_hda_intel
Code: Select all
# cat /proc/asound/cards
0 [LX3000 ]: USB-Audio - Microsoft LifeChat LX-3000
C-Media Electronics Inc. Microsoft LifeChat LX-3000 at usb-0000:00:1d.3-2, full
1 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfeaf8000 irq 44
~/.asoundrc is receving priority. When the file doesn't exist, then alsa.conf file sets the default card.
EDIT. It seems like /etc/modprobe.d/alsa-base.conf actually does something. It sets which card is number 0 and which is number 1.
Code: Select all
# cat /etc/modprobe.d/alsa-base.conf
options snd_hda_intel index=-1
options snd_usb_audio index=-2
Code: Select all
# cat /usr/share/alsa/alsa.conf
...
defaults.ctl.card 0
defaults.pcm.card 0
...
Code: Select all
$ aplay Kurzweil-K2000-Big-Mono-Bass-C1.wav
aplay: main:722: audio open error: No such file or directory
$ alsamixer
cannot open mixer: No such file or directory
I've also been experiencing a weird issue with ~/.asoundrc . I'm using a very simple configuration.
Code: Select all
$ cat ~/.asoundrc
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Code: Select all
$ aplay musica/Kurzweil-K2000-Big-Mono-Bass-C1.wav
aplay: main:722: audio open error: Device or resource busy