View previous topic :: View next topic |
Author |
Message |
luismanson Tux's lil' helper


Joined: 04 Aug 2005 Posts: 123
|
Posted: Thu Apr 24, 2008 2:19 am Post subject: 2 soundcards random order? |
|
|
Hi, i have a USB soundcard and a ALC888, before compiling my kernel i had one order, now recompiling the same, i have them reversed! is there any way to specify a module load order?
y tried: (modules.d/alsa)
alias snd-card-0 snd-usb-audio
alias snd-card-1 snd-hda-intel
## OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##
# Set this to the correct number of cards.
options snd cards_limit=2
options snd-hda-intel index=1
options snd-usb-audio index=0
but they still loading in the opposite order!!
any ideas? _________________ La wiki para usuarios novatos en GNU/Linux! |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Apr 24, 2008 2:41 am Post subject: |
|
|
Did you run alsaconf...maybe you can set the default sound card with that ? |
|
Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Apr 24, 2008 2:57 am Post subject: |
|
|
Run update-modules - setting /etc/modules.d/blah is useless if update-modules isn't run, to copy the changes into /etc/modprobe.conf |
|
Back to top |
|
 |
luismanson Tux's lil' helper


Joined: 04 Aug 2005 Posts: 123
|
Posted: Thu Apr 24, 2008 12:45 pm Post subject: |
|
|
i did run update-modules, forgot to tell, sorry. after and before adding the "index" parameter, just to tray, because the "slot" option should take care
i whink udev is loading them, but modprobe is not reading any options.... _________________ La wiki para usuarios novatos en GNU/Linux! |
|
Back to top |
|
 |
dman777 Veteran

Joined: 10 Jan 2007 Posts: 1004
|
Posted: Thu Apr 24, 2008 2:04 pm Post subject: |
|
|
I have the same problem. Modifying the alsa file didn't do squat for me. Keep in mind also there is a difference between device number and the card number, and for software that uses them it's the card number that matters. From what I got on the IRC chat channel, the modules can be/will have to be modified on the kernel level. The guy who told me that also said don't bother asking him how. |
|
Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Apr 24, 2008 2:44 pm Post subject: |
|
|
Might need an ugly hack in an initscript, or rc.local, or whatever Gentoo calls it, such as:
Code: | modprobe -r snd-hda-intel
modprobe -r snd-usb-audio
# Load in desired order
modprobe snd-usb-audio
modprobe snd-hda-intel
alsactl restore (use -f option to specify /var/lib/wherever-gentoo-stores-asound.state) |
|
|
Back to top |
|
 |
luismanson Tux's lil' helper


Joined: 04 Aug 2005 Posts: 123
|
|
Back to top |
|
 |
dman777 Veteran

Joined: 10 Jan 2007 Posts: 1004
|
Posted: Fri Apr 25, 2008 2:52 am Post subject: |
|
|
Code: | modprobe -r snd-hda-intel
modprobe -r snd-usb-audio
# Load in desired order
modprobe snd-usb-audio
modprobe snd-hda-intel
alsactl restore (use -f option to specify /var/lib/wherever-gentoo-stores-asound.state) |
What do you do in the case of both devices being USB audio? |
|
Back to top |
|
 |
luismanson Tux's lil' helper


Joined: 04 Aug 2005 Posts: 123
|
|
Back to top |
|
 |
|