# Alsa Setting Default Sound Card

If you have two or more sound cards in your computer you can setup system wide or just for single user

List the sound cards

cat /proc/asound/cards

The output it will be something like this

0 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xfcac8000 irq 91
1 [Generic        ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xfcac0000 irq 92
2 [Device         ]: USB-Audio - USB Audio Device
                     C-Media Electronics Inc. USB Audio Device at usb-0000:06:00.4-3, full speed
3 [Device_1       ]: USB-Audio - Plugable USB Audio Device
                      Plugable Plugable USB Audio Device at usb-0000:06:00.3-2, full speed

Create a new config file

System wide

sudo vim /etc/asound.conf

Single user

vim ~/.asoundrc

Inside add the following, in this case i will change my default card to Device_1 (#3)

defaults.pcm.card 3
defaults.ctl.card 3

For a system wide you need to reboot your machine, single user should work right away



© DarknessCode - LinuxSucks