ALSA not recognizing soundcard when webcam plugged in at boot time

By thomas, 20 February, 2008
Skype beta now supports video. We purchased some logitech QuickCams to allow them to try out the video. When we plug in the QuickCam after boot, everything works fine. However, if we plug before booting, we lose sound. The problem is with the microphone on the webcam not the webcam driver. snd_usb_audio is loading before the soundcard. I added an index option to snd_usb_audio and voila it works fine after a reboot. Here is my modprobe.conf before and after:
Before: alias snd-card-0 snd-hda-intel options snd-card-0 index=0 options snd-hda-intel index=0 remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
After: alias snd-card-0 snd-hda-intel alias snd-card-1 snd_usb_audio options snd-card-0 index=0 options snd-hda-intel index=0 options snd-card-1 index=1 options snd_usb_audio index=1 remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel One odd thing I noticed is that the file on disk is called snd-hda-intel.ko, but lsmod shows the module name as snd_hda_intel. Curious, it doesn't seem to matter whether I use underscores or dashes in modprobe.conf either. Someone probably knows why... Here is my src rpm for the gspca driver for the webcam also... gspca-kmod-1.00.20-0.1.2.6.18_53.1.13.el5.src.rpm