On Friday 07 April 2006 15:19, Joel Roth wrote:
> It seems like this is a FAQ, but having read and tried
> various methods from the Alsa wiki, I find myself unable to
> influence the order of my sound cards. Which will be card 0
> and which card 1 after reboot is not determinate.
> I attempted to make static assignments.
>
> Here is a report on all I've tried.
>
> I am running a 2.6.15 kernel using udev
> to populate the /dev directory. I have two sound cards,
> corresponding to the snd-ice1712 and snd-via82xx drivers.
> The drivers are compiled as modules, and load
> automagically.  My system is Debian-based, most packages
> from the 'etch' (testing) distribution, with a few from
> 'sid' (unstable).
>
> In this configuration, drivers listed in /etc/modules are
> loaded in one step during boot ("Loading Modules"), then
> further drivers are loaded in a second step, ("Discovering
> Hardware").
>
>
> The assignments were inspected by the following commands:
>
> $ cat /proc/asound/cards
> $ cat /proc/asound/modules
>
> The multiple soundcards page of the Alsa wiki
> (http://alsa.opensrc.org/MultipleCards) and other references
> suggest several methods to accomplish this:
>
> 1. Passing arguments to the drivers
>
> In my case /etc/modules.conf is generated from
> alsa-base and other files in /etc/modutils by running
> update-modules.
>
> I made the following additions to /etc/modutils/alsa-base,
>
> options snd-via82xx index=0
> options snd-ice1712 index=1
>
> run update-modules, and rebooted.
>
> Result: no impact on assignments
>
> 2. By use of aliases in /etc/modules.conf (in my case, by
> modifying /etc/modutils/alsa-base)
>
> --
> alias snd-card-0 snd-via82xx
> alias snd-card-1 snd-ice1712
> --
>
> Then update-modules and reboot.
>
> Result: no impact on assignments
>
> 3. Controlling the order of module loading by entering the
> following module names in /etc/modules, then update-modules
> and reboot.
>
> -----
> snd-via82xx
> snd-ice1712
> -----
>
> Result: The first time I tried this, I thought I had
> found a solution, but after another reboot the cards came up
> in the opposite order.

Hi Joel. With Debian Sarge, and Debian Sarge/Etch I normally put the aliases, 
and options in /etc/modutils/sound. I only have 1 soundcard, but also a usb 
midi keyboard which shows up as card 1 if the alias, and option for it isn't 
set up correctly. This is due to the usb being started early in the bootup 
process.

On one of my 2 Sarge installs, I still had a problem, so put the aliases, and 
options in /etc/modprobe.d/sound, and this worked ok.

Something to perhaps be aware of is, extra spaces at the end of each line. On 
one of my Fedora core installs the cards got mixed up again. I removed the 4 
lines, redid them being carefull to press enter right at the end of each 
line, and everything was ok again. Someone suggested it might have happened 
due to updates to the system. I know this may sound a bit odd, but there were 
definately 2 extra spaces at the end of one of the lines. This was verified 
when I backspaced at the start of one of the lines. The line moved up, but 
was left starting 2 spaces in from the beginning of the line. 

I'd first try removing the 4 lines, rewriting them, and then run 
update-modules.

All the best. Nigel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to