You are not logged in.

#1 2009-07-21 21:27:58

lang2
Member
Registered: 2006-02-10
Posts: 386

USB webcam used as the default sound device

Hi all,

After an upgrade and reboot, there is no sound coming out of my speaker. I did a bit poking around and found out that alsa detects my webcam as card 0 and the Yamaha PCI as card 1. Because all devices by default output to card 0, all samples are sent to the webcam who has no clue how to handle them. I quickly thougth of a work around: boot the system with my webcam plugged out and only plug it in when the system is full up. This works fine but I now have one question and one complaint:

Q: how do I set up to always use the Yamaha as default device no matter who's detected first?

C: I have to say that alsa is stupid because it knows the webcam only has capture capbility and still decide to use it as output device. Stupid.

lang2

Offline

#2 2009-07-21 21:52:26

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: USB webcam used as the default sound device

If the kernel modules for your sound card and webcam both support the index parameter (use modinfo to find out) then adding

options <name_of_preferred_card's_kernel_module> index=0
options <name_of_second_card's_kernel_module> index=1

to /etc/modprobe.d/modprobe.conf (or another modprobe conf file of your choice) should solve the problem.

Offline

#3 2009-07-21 23:26:00

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: USB webcam used as the default sound device

Nice tip. Thanks.

Offline

#4 2009-11-18 18:27:55

jack_slayton
Member
Registered: 2009-04-12
Posts: 29

Re: USB webcam used as the default sound device

sry, it works for me now ...

Last edited by jack_slayton (2009-11-18 18:29:01)

Offline

Board footer

Powered by FluxBB