Re: [LAU] Many identical cards - how to keep them straight

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Tuesday, March 11, 2008 - 5:19 pm

Paul Davis writes:

> The usual ALSA mechanism relies on PCI id and other stuff that,

If you're using udev, you can distinguish between the cards using the
device path, since that'll include the PCI slot number (which
shouldn't change unless you're hotplugging PCI devices, I assume).

There's a script to do it for USB devices here:
http://alsa.opensrc.org/index.php/Udev

I've adapted it to just match regexps against the device path, so you
can use it for PCI devices too. It seems to work for me, but I haven't
tested it thoroughly. (In particular, I'm sitting a few miles away
from the machine I'm testing on, so I haven't actually tried *doing*
anything with the sound devices yet...)

The script I'm using is here:
http://offog.org/darcs/misccode/alsa-name

--
Adam Sampson
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Many identical cards - how to keep them straight, Mark Knecht, (Sun Mar 9, 10:44 pm)
Re: [LAU] Many identical cards - how to keep them straight, Arnold Krille, (Mon Mar 10, 10:23 am)
Re: [LAU] Many identical cards - how to keep them straight, Adam Sampson, (Tue Mar 11, 5:19 pm)
Re: [LAU] Many identical cards - how to keep them straight, Pieter Palmers, (Mon Mar 10, 3:23 pm)
Re: [LAU] Many identical cards - how to keep them straight, Arnold Krille, (Mon Mar 10, 12:32 pm)