I have a system with 2 identical USB sound cards:

athena:/proc/asound# cat cards
 0 [Audio          ]: USB-Audio - USB Audio
                      C-Media INC. USB Audio at usb-0000:00:1d.2-1, full 
speed
 1 [Audio_1        ]: USB-Audio - USB Audio
                      C-Media INC. USB Audio at usb-0000:00:1d.3-1, full 
speed

The problem is that I can't tell which is which.  Every time the system 
boots the cards move around.

Since they're identical I can't tell them by usbid:
athena:/proc/asound# cat card[01]/usbid
0d8c:0001
0d8c:0001

I wrote a script to tell them apart by usbbus, but it seems that the bus 
numbers themselves keep changing.

athena:/proc/asound# cat card[01]/usbbus
003/002
004/002

The only thing that seems constant is /proc/asound/cards, but alas it's 
not in a format that can be easily parsed by a script.

Is there some machine readable way to tell these cards apart?

--Yan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to