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.
--
Joel Roth
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user