Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 soundcards random order?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
luismanson
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2005
Posts: 123

PostPosted: Thu Apr 24, 2008 2:19 am    Post subject: 2 soundcards random order? Reply with quote

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


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Apr 24, 2008 2:41 am    Post subject: Reply with quote

Did you run alsaconf...maybe you can set the default sound card with that ?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 24, 2008 2:57 am    Post subject: Reply with quote

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


Joined: 04 Aug 2005
Posts: 123

PostPosted: Thu Apr 24, 2008 12:45 pm    Post subject: Reply with quote

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


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Thu Apr 24, 2008 2:04 pm    Post subject: Reply with quote

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


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 24, 2008 2:44 pm    Post subject: Reply with quote

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


Joined: 04 Aug 2005
Posts: 123

PostPosted: Thu Apr 24, 2008 10:10 pm    Post subject: Reply with quote

damn, i dindt want to do that, thanks :)
_________________
La wiki para usuarios novatos en GNU/Linux!
Back to top
View user's profile Send private message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Fri Apr 25, 2008 2:52 am    Post subject: Reply with quote

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


Joined: 04 Aug 2005
Posts: 123

PostPosted: Sun Apr 27, 2008 10:25 pm    Post subject: Reply with quote

specify IDs i think
_________________
La wiki para usuarios novatos en GNU/Linux!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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