View previous topic :: View next topic |
Author |
Message |
TlighT n00b
Joined: 15 Dec 2003 Posts: 32
|
Posted: Sat Dec 20, 2003 10:07 am Post subject: Two soundcards,alsa modules loaded in the wrong order SOLVED |
|
|
I have a soundcard and a midi module connected to my system:- a SB-Live using snd-emu10k1
- and a Roland XV-5050 using snd-usb-audio
A problem arises when I turn on my Roland before starting Linux. The Roland is then discovered during the devfs stage, which is before the autoload/alsa stage, when the emu10k1 module is loaded. This screws up the oss emulation which, I believe, need the emu10k1 module loaded before the usb-audio module. When I turn my Roland on after Linux (and emu10k1) have loaded, everything is ok.
Other than always turn the Roland off before starting Linux, is there anything else I can do about this?
Last edited by TlighT on Sat Dec 20, 2003 11:05 am; edited 1 time in total |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Sat Dec 20, 2003 10:35 am Post subject: |
|
|
Do you mean that it does not function correctly, or simply that the wrong one is the "primary" audio device? If you just need to make sure the the right device is also sound card 0, you can set the "index" parameter for the modules in /etc/modules.d/alsa. Here's mine for reference:
Code: | alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-cs46xx
alias snd-card-1 snd-via82xx
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
options snd-cs46xx mmap_valid=1 index=0
options snd-via82xx index=1 dxs_support=2 index=1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd cards_limit=2 |
|
|
Back to top |
|
|
TlighT n00b
Joined: 15 Dec 2003 Posts: 32
|
Posted: Sat Dec 20, 2003 11:00 am Post subject: |
|
|
Thanks, adding indexes solved it. I always assumed assigning the cards to the right "slots" alone would be sufficient to load them in the right order, but I guess that's not the case. |
|
Back to top |
|
|
CheshireCat Guru
Joined: 25 Aug 2002 Posts: 572
|
Posted: Sat Dec 20, 2003 11:15 am Post subject: |
|
|
The aliases are for module autoloading. If you have the device files created, but the drivers are not loaded, the aliases define which module will be loaded when an attempt is made to access the device. You can do a similar thing with devfs, although I believe in that case the aliases are based on path instead of device major/minor numbers. Just FYI in case you were curious |
|
Back to top |
|
|
|