How to set the default sound card for ALSA

add/edit ~/.asoundrc:

pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}

The above file set the card 1 as default card for ALSA.

You can check the list of sound cards with the command:

$ aplay -l

 

Or it is possible to set the default value for the system on the alsa.conf file:

defaults.ctl.card 1

defaults.pcm.card 1

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s