Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Forcing PCI card to be 0 and USB to be 1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Ceniza
n00b
n00b


Joined: 30 May 2008
Posts: 26

PostPosted: Fri Feb 12, 2010 6:28 pm    Post subject: Forcing PCI card to be 0 and USB to be 1 Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Fri Feb 12, 2010 6:58 pm    Post subject: Reply with quote

did you have a look at this tread https://forums.gentoo.org/viewtopic-t-758135-highlight-.html ?
i've got identical situation :) audigy2 + webcam with built-in microphone

Code:
];-> cat2 /etc/modules.d/alsa.conf
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
options snd cards_limit=2
options snd-emu10k1 index=0
options snd-usb-audio index=1

works as a charm
_________________
"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
View user's profile Send private message
Ceniza
n00b
n00b


Joined: 30 May 2008
Posts: 26

PostPosted: Fri Feb 12, 2010 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Fri Feb 12, 2010 7:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hupf
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 112
Location: Germany

PostPosted: Fri Feb 12, 2010 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ceniza
n00b
n00b


Joined: 30 May 2008
Posts: 26

PostPosted: Sat Feb 13, 2010 8:00 am    Post subject: Reply with quote

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 :D

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum