Re: [Alsa-user] Identical USB cards to fixed card numbers

2010-01-20 Thread Diego Tognola
Unfortunately there are no serial numbers, so my rules are based on the path given by the kernetl. Here's my current script: #!/bin/bash kernelStr=$1 devicePathStr=$2 # TEST DATA - PCM # kernelStr="pcmC1D0pc" # devicePathStr=/devices/pci:00/:00:1d.0/usb2/2-1/2-1:1.0/sound/card1/pcmC1D0

Re: [Alsa-user] Identical USB cards to fixed card numbers

2010-01-20 Thread Jaroslav Kysela
On Thu, 21 Jan 2010, Diego Tognola wrote: > Thanks Clemens, > > I tried /dev/snd as well but maybe my 'test' is invalid ? > > My expectations was that if I have rules for USB1-> card1, USB2->card2 > and USB3->card3 setup, then reboot with the audio card on USB2 > unplugged, then I should not see

Re: [Alsa-user] Identical USB cards to fixed card numbers

2010-01-20 Thread Diego Tognola
Thanks Clemens, I tried /dev/snd as well but maybe my 'test' is invalid ? My expectations was that if I have rules for USB1-> card1, USB2->card2 and USB3->card3 setup, then reboot with the audio card on USB2 unplugged, then I should not see a card2 in /dev/snd or cat /proc/asound/cards ? What

Re: [Alsa-user] Identical USB cards to fixed card numbers

2010-01-20 Thread Klaus Schulz
Hi guys. Could you please post the rule, as soon as you've figured how it works. This information is missing in the Wiki. Would be nice to update the Wiki accordingly. ( I could do that) Cheers On Wed, Jan 20, 2010 at 1:50 PM, Clemens Ladisch wrote: > Diego Tognola wrote: > > I'm trying to a

Re: [Alsa-user] Identical USB cards to fixed card numbers

2010-01-20 Thread Clemens Ladisch
Diego Tognola wrote: > I'm trying to assign identical USB cards (3 x M-Audio Mobile Pre) to > fixed card numbers, based on their USB port. So far, I've created a > udev rule that maps the kernel and device name to /dev/dsp[cardnumber]. > > I know that this rule is working, as changes are reflected