You are not logged in.
Hi Arch Forums,
I am new to Arch. I love it.
I have archlinux installed on a thinkpad R61i laptop. Everything works.
When I boot arch normally, my HDA Intel sound card gets detected as the primary sound card (sound card 0).
However, when I boot with my USB webcam (with mic) plugged in, the same gets selected as primary sound card, thereby producing audio playback errors during speaker-test (no pcm device found etc)!
How do I change the sound card to repoint back to my HDA Intel sound card?
What I do now is reboot without the USB device, and then plug it in after logging in.
Thank you for your answers.
Last edited by nandushines (2010-10-30 12:42:51)
Offline
http://alsa.opensrc.org/index.php/MultipleCards
Edit: you can write a udev rule to change the default card depending on if you have the usb plugged in or not, or you can write a small wrapper script to switch on the fly as needed.
Last edited by Mr.Elendig (2010-10-29 16:18:29)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Try adding the following to /etc/asound.conf
pcm.!default {
type hw
card Intel
}
ctl.!default {
type hw
card Intel
}
Offline
Thank you Mr.Elendig.
I do not have the knowledge to write udev rules yet.
But I followed your guide and found out that my problem is due to improper loading order of modules, with udev loading the USB Web-cam module before alsa loaded my primary sound card module.
I restored the proper order by,
/etc/rc.d/alsa restart
skunktrader, your suggestion did not work, alsa complained, but thank you anyway.
Offline
cat /etc/modprobe.d/modprobe.conf
#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#
options snd-emu10k1 index=0
options snd_usb_audio index=1
CHANGE SND-EMU10K1 FOR YOUR SOUND CARD MODULE
Last edited by agapito (2010-10-30 12:58:43)
Excuse my poor English.
Offline