View previous topic :: View next topic |
Author |
Message |
Ceniza n00b
Joined: 30 May 2008 Posts: 26
|
Posted: Fri Feb 12, 2010 6:28 pm Post subject: Forcing PCI card to be 0 and USB to be 1 |
|
|
Hi,
I got an USB webcam recently which comes with a microphone. Enabling USB audio recognizes it as a sound device as well, and it's listed and it works. The problem is that I do not want the USB camera to take slot 0 for the sound card. It is actually causing me problems, specially when I want SPDIF passthrough to work. By specifying card 1 by name in .asoundrc I am able to get every program to use it for output by default, but SPDIF won't work. If I try to force a program like SMPlayer to use it, all I get is noise. What I do really want is my PCI card to take slot 0, but no matter what I try, it keeps getting slot 1.
I have been checking ALSA documentation and other posts, but the given solution does not work for me. They all suggest to specify this in /etc/modules.d/alsa.conf, and I did it as follows:
Code: |
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
options snd-emu10k1 index=0
alias snd-card-1 snd-usb-audio
alias sound-slot-1 snd-usb-audio
options snd-usb-audio index=1
|
That should make the Audigy2 (snd-emu10k1) to be card 0 and the USB device (snd-usb-audio) to be card 1, but it does not want to work. The only solution would be to boot with the webcam disconnected, but I would pretty much prefer to keep it connected to one of the back USB ports.
I also tried running update-modules so the information goes into /etc/modules.conf, but it did not make a change.
Any suggestions are quite welcomed.
Thanks. _________________ ASUS Rampage III Extreme | Intel Core i7 970 | 3x 2GB DDR3 1600MHz | Geforce GTX480
Gentoo Linux 64 bits | Kernel 2.6.35 |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
Ceniza n00b
Joined: 30 May 2008 Posts: 26
|
Posted: Fri Feb 12, 2010 7:27 pm Post subject: |
|
|
I moved alsasound from boot to default as suggested in the thread, and I used your alsa.conf as well. Then, I ran update-modules and restarted. The end result was the same: USB 0 and PCI 1. I am tempted to think that something else is messing with it.
Do you have coldplug enabled? Are you using the ALSA in the kernel? I do for both, and it's not working that way. I am not sure if they may be the reason for it either. _________________ ASUS Rampage III Extreme | Intel Core i7 970 | 3x 2GB DDR3 1600MHz | Geforce GTX480
Gentoo Linux 64 bits | Kernel 2.6.35 |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Fri Feb 12, 2010 7:55 pm Post subject: |
|
|
i don't have coldplug, i do use alsa in kernel, audigy(snd10k1) is built-in and usb-audio is buitl as an module
and in my case i got alsasound in boot runlevel because i didn't built snd10k1 as a module _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
Hupf Tux's lil' helper
Joined: 11 Sep 2005 Posts: 112 Location: Germany
|
Posted: Fri Feb 12, 2010 11:54 pm Post subject: |
|
|
If you've compiled one or both audio drivers into the kernel, you have to append the above options to the kernel parameters (in grub.conf), like this:
kernel /boot/vmlinuz snd-emu10k1.index=0 snd-usb-audio.index=1
(notice the dot) |
|
Back to top |
|
|
Ceniza n00b
Joined: 30 May 2008 Posts: 26
|
Posted: Sat Feb 13, 2010 8:00 am Post subject: |
|
|
Thanks for all your help. My last attempt was to include the same information from /etc/modules.d/alsa.conf into /etc/modprobe.d/alsa.conf. Today I started my PC after that change, and now the PCI card is 0 and the USB is 1. Just what I wanted
Hupf: I have compiled both drivers as modules, but I was considering to compile emu10k1 into the kernel as another attempt to get this issue solved. Thanks for your suggestion as well. _________________ ASUS Rampage III Extreme | Intel Core i7 970 | 3x 2GB DDR3 1600MHz | Geforce GTX480
Gentoo Linux 64 bits | Kernel 2.6.35 |
|
Back to top |
|
|
|