You are not logged in.
Pages: 1
I have been trying to set my default sound card as a usb headset that I got a while back before I started using arch linux. I have checked the wiki, the audactiy wiki, and a few other sources to get everything started. When I first configure everything using the guides, everything works well. However, upon reboot, the order of my soundcards change. There was a guide on the archwiki on how to set a defined sound card order, but I cannot find a way to acertain the snd_mia,snd_hda_intel equivalents to my sound card.
=======================================
cat /proc/asound/cards yeilds
0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfeaf4000 irq 16
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfebf8000 irq 43
2 [P780 ]: USB-Audio - Plantronics GameCom 780
Plantronics Plantronics GameCom 780 at usb-0000:00:12.0-3,
=============================================
However the order of these changes when I apply
=====================================
cm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:2,0"
}
capture.pcm {
type plug
slave.pcm "hw:2,0"
}
}
=========================================
to ~/.asoundrc in order to set my playback and capture device as my headset. Again, it works at first, but then the sound card order changes upon reboot. I understand that one can define the sound card order by editing /etc/modprobe.d/alsa-base.conf and then applying (only changing snd_mia,snd_hda_intel to the sound cards of your computer)
=========================================
options snd slots=snd_mia,snd_hda_intel
options snd_mia index=0
options snd_hda_intel index=1
================================================
So I am merely asking how one would go about finding and defining the equivalents of snd_mia,snd_hda_intel for ones own sound cards, and then proceeding to set the default order using the method that the archwiki provided.
Last edited by Hastur The Unspeakable (2014-07-14 23:24:37)
Offline
Use [_code_][_/code_] tags without the underscores to mark output of commands. Snd_mia and so on are modules. Look at the wiki again, search for lsmod. It is explained there. You could use that alsa configuration by using card names as references instead of numbers, which is also explained at the wiki, but I recommend sticking to modprobe approach. Read the whole chapter about setting the default sound card. It is explained step by step how to acquire vid and pid and use them. Your modules should be snd_hda_intel and snd_usb_audio from the looks of it.
It is supposed to be pcm.!default not cm.!default, you probably missed the 'p' when copying.
Last edited by emeres (2014-07-14 21:27:45)
Offline
Use [_code_][_/code_] tags without the underscores to mark output of commands. Snd_mia and so on are modules. Look at the wiki again, search for lsmod. It is explained there. You could use that alsa configuration by using card names as references instead of numbers, which is also explained at the wiki, but I recommend sticking to modprobe approach. Read the whole chapter about setting the default sound card. It is explained step by step how to acquire vid and pid and use them. Your modules should be snd_hda_intel and snd_usb_audio from the looks of it.
It is supposed to be pcm.!default not cm.!default, you probably missed the 'p' when copying.
I did a quick page through the wiki on lsmod, and I set up the modprobe file. I also fixed the snippet of code that I added, and now everything works like a charm. Thanks for the help, and I hope you have a wonderful evening.
Offline
Glad I could help. However keep in mind that this ~/.asoundrc will block multiple sounds at once (search for type hw on the alsa wiki), which is why I recommend sticking to the modprobe approach alone. In other words if modprobe is done properly, that ~/.asoundrc is not only unnecessary, it is limiting.
Offline
Pages: 1