On Sat, Dec 02, 2006 at 12:56:59AM +0100, Jan 'RedBully' Seiffert wrote: > OK, then maybe someone knows how to get ALSA-Devices in an persistent > ordering with udev-rules? > I was unable to find it out by my self, the documentation is a little > sparse on this IMHO...
Just figure out something unique for your sound devices, and create some rules like the other persistent rule generators do. PCI device id perhaps? If you have problems with this, try asking on the linux-hotplug-devel mailing list. The people there can help you out. It would be good to have some rules for sound devices like this, as you aren't the first to ask about it. > udev-coldplug bite me with my 2 soundcards (one onboard, one PCI). They > are randomly ordered on every reboot. I don't care which /dev/snd/* > names they get, ALSA uses them, the times of 'cat /dev/urandom > > /dev/dsp' are long gone. I *care* about, which device is snd-card-0 and > 1, which is hw0 and hw1, and which device gets bound to 'default'. Yeah, I have a box around here like that too :( > Interestingly with the old coldplug the devices always had the same > order and (by accident? or /etc/modules.d/alsa?) the right. PCI device order is usually quite stable, unless you start to use PCI hotplug, or change cards, or update your BIOS. If you did any of that, then it would start to get unpredictable. thanks, greg k-h -- gentoo-dev@gentoo.org mailing list