As you might have noticed the mixer-module is lacking an option to choose between soundcards. To solve this we can create a simple config file which tells the system which card should be used. This is the content of this file, replace the 0 with the number of the card which should be used:
defaults.ctl.card 0 defaults.pcm.card 0 defaults.timer.card 0
name the file .asoundrc and save it right in the users home dir, so it should look like ”/home/user/.asoundrc”.
Or just paste following into the terminal:
echo -e "defaults.ctl.card 0\ndefaults.pcm.card 0\ndefaults.timer.card 0" >.asoundrc
Note: to lookup the number of the card and also to verify that all cards work properly type “alsamixer” into a terminal and hit F6 to see a list of all available cards. Also take in mind that the shown order might change after the next boot process.
Menu entry for quick change the card
For this we need another config file pointing to the other card, for example:
/home/user/.1 :
defaults.ctl.card 1 defaults.pcm.card 1 defaults.timer.card 1
now we create a new launcher: settings>apps>create launcher , name it nice and paste following into the “Application” line:
cat .asoundrc > .2 && cat .1 > .asoundrc && cat .2 > .1
after using this menu entry only the programm needs to be restarted. It is also possible to use both cards at the same time with different programs.
Gui version for more cards
will you find here: http://pastebin.com/TAJpgR6i
If you would like to comment or make further suggestions, please leave a note on our Comments page (you will have to Create an Account if you haven't already).