Le Wed, 11 Jul 2007 16:18:20 +0200,
Thomas Heinz <[EMAIL PROTECTED]> a écrit :

> Hi
> 
> I experience a problem with respect to the loading order of kernel modules. 
> Here a transcript to illustrate the issue:
> 
> # lsmod | grep snd | awk '{print $1}' | xargs rmmod
> # modprobe snd_hda_intel
> # modprobe snd_emu10k1_synth
> # asfxload <somefile>
> No Emux synth hwdep device is found
> 
> However, if I change the order, it works:
> 
> # lsmod | grep snd | awk '{print $1}' | xargs rmmod
> # modprobe snd_emu10k1_synth
> # modprobe snd_hda_intel
> # asfxload <somefile>
> 
> The problem occured since udev loads the modules in the "wrong" order but 
> why is the first loading order wrong? If it is not, do you know what 
> causes the problem?
> 
> I am using linux-2.6.20 (gentoo-r8).
> 
> Thanks for your help.
> 
> 
 You must have a file called /etc/modules.d/alsa

You must be sure to define the card_index and for each sound card, and the
cards_limits option. As example:

alias snd-card-0 snd-emu10k1
options snd-emu10k1 index=0
alias snd-card-1 snd-usb-audio
options snd-usb-audio index=1
options snd cards_limit=2

After, run 'update-modules' and '/etc/init.d/alsasound restart'

With those options, udev will know in which order to load the sound card. It is
a file alsa-configuration.txt with the kernel sources or the alsa driver
package that explain more.

Dominique 

> Best wishes,
> 
> Thomas
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Alsa-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/alsa-user


-- 
Dominique Michel

--
N.B.: Tous les emails que je reçois sont filtrés par spamassassin avant de me
parvenir.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to