How to define the default Alsa card
From Salix OS
How to define the default Alsa card
If you have more than one card in your system, or precisely, than the system see more than one card (one sound card and a usb camera with a microphone for example), you must define which one is the default one. Here are the steps to achieve this:
Firstly, determine the name of your sound card:
cat /proc/asound/cards
The name of your card is in the brackets. For me:
0 [U0x46d0x9a4 ]: USB-Audio - USB Device 0x46d:0x9a4 USB Device 0x46d:0x9a4 at usb-0000:00:10.3-1, full speed 1 [VT82xx ]: HDA-Intel - HDA VIA VT82xx HDA VIA VT82xx at 0xfbffc000 irq 17
The one I want to make it default is VT82xx
Then edit the file /etc/asound.conf by adding these lines:
pcm.!default { type hw card VT82xx } ctl.!default { type hw card VT82xx }
Of couse, replace VT82xx with your sound card name.
If you want to have it works immediately, run /etc/rc.d/rc.alsa restart or reboot.