You are not logged in.

#1 2012-08-14 03:54:44

slavik262
Member
From: WA, USA
Registered: 2012-07-12
Posts: 46
Website

ALSA: Sound not working when webcam is plugged in. [Solved]

I'm using the out-of-the-box sound setup (ALSA, nothing else). My sound card setup (including the USB webcam with mike):

mrkline $ cat /proc/asound/cards
 0 [VX5000         ]: USB-Audio - Microsoft LifeCam VX-5000
                      Microsoft Microsoft LifeCam VX-5000 at usb-0000:00:1d.7-2, high speed
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfdff4000 irq 42

I'm aware of what the wiki says on the issue, and tried it to no avail. I created /etc/asound.conf and gave it the following contents, but as you can see from /proc/asound/cards, the webcam still initializes first sometimes.

ctl.dmixer {
    type hw
    card Intel
}

What additional steps can I take?

Last edited by slavik262 (2012-11-12 23:36:45)

Offline

#2 2012-11-12 23:16:17

slavik262
Member
From: WA, USA
Registered: 2012-07-12
Posts: 46
Website

Re: ALSA: Sound not working when webcam is plugged in. [Solved]

Update: As mentioned above, the current wiki contents were useless. However, I discovered a fix and will be adding it to the wiki:

I noticed several of the more hands-off repos (namely Linux Mint and Ubuntu) contain an ALSA config file at /etc/modprobe.d/alsa-base.conf. In it, among other things, are lines that ensure USB cards are not selected as the first sound card. Creating a file at /etc/modprobe.d/alsa-base.conf with the following contents fixed the problem:

options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

Offline

Board footer

Powered by FluxBB