sonofzev@xxxxxxxxxxxx wrote: > > On Wed Jan 21 17:59 , Yan Seiner sent: > > >> sonofzev@xxxxxxxxxxxx wrote: >> >>> Thanks Yan >>> >>> I did actually read this in my research. The documentation was a little too brief for me to extrapolate out for my needs. It may actually fix another problem I have with the default card but not this issue, which is to setup all MIDI devices in a specific order to make life easy. >>> >>> I need all MIDI devices in my setup and I can't intuitively see how this will set the order in which the MIDI ports appear in ALSA (and hence jack midi as a flow on). >>> >>> I will try and work it out.. but I just can't see it from this yet. >>> >>> >> Oh well, this won't let you set your cards in order. The only way you >> can do that is via udev. >> >> That wiki entry will allow you to set ALSA_CARD so that you use a >> specific card of your choosing, no matter where it ends up at.... >> >> udev really isn't that hard; what you want is to create a symlink >> incorporating the physical path: >> >> KERNEL=="dsp*", \ >> SYMLINK+="sound/$env{PHYSDEVPATH}/dsp" >> >> I think that will work. >> >> Of course you end up with ridiculous device names like >> >> /dev/sound/devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1.4/1-1.4.4/1-1.4.4.4/1-1.4.4.4.1/1-1.4.4.4.1:1.0/dsp >> >> (OK, that usb sound card is at the end of a daisy chain of 4 USB hubs, >> but you get the idea.) >> >> You get names that don't change, but are not intuitive by any stretch of >> the imagination. >> >> --Yan >> >> ) >> > > Cool, > > That sets up the device locations in /dev according to their bus location so I'm assuming this sets up the order to be fixed.... > It would be nice to setup them up in a preference order, however, this will probably do. > > I'll try this tonight after work > Once you get that to work, you can figure out how to match on physical addresses, and create symlinks that make more sense. udev is very zen-like; it's utterly incomprehensible until one day the ghost of Alan Turing whacks you on the back of the head with an old 8K core board and you shout, "God, why didn't I see that before!" --Yan ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user