You are not logged in.

#1 2010-10-29 16:14:50

nandushines
Member
Registered: 2010-10-29
Posts: 5

[SOLVED] Change primary sound card alsamixer

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

#2 2010-10-29 16:17:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Change primary sound card alsamixer

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

#3 2010-10-29 16:26:40

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [SOLVED] Change primary sound card alsamixer

Try adding the following to /etc/asound.conf

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

Offline

#4 2010-10-30 12:48:32

nandushines
Member
Registered: 2010-10-29
Posts: 5

Re: [SOLVED] Change primary sound card alsamixer

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

#5 2010-10-30 12:57:57

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 641

Re: [SOLVED] Change primary sound card alsamixer

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

Board footer

Powered by FluxBB