<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">PA or not, this is somewhat getting back to the original question: how can we get a reliable index assignment on startup with several soundcards.<br><br>I'm not using PA, but mostly because I noticed that it uses (much) more CPU with many desktop applications, due to resampling I was told.<br>I have an internal HDA, an nvidia graphics chip, a nanokontrol and a UA-25. <br>The latter both use snd-usb, though one obviously cannot produce sound.<br>The nvidia chip seems to expose an audio device (?) handled by a snd-hda-intel module, as does the snd-hda-intel soundchip. Although the first one cannot produce sound.<br>So I would like the following order to be maintained to have desktop applications adress a working soundcard and to have the UA-25 always at the same index for JACK.<br><br>&nbsp;0 [Intel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]:
 HDA-Intel - HDA Intel<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HDA Intel at 0xfbff8000 irq 32<br>&nbsp;1 [NVidia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]: HDA-Intel - HDA NVidia<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HDA NVidia at 0xfde7c000 irq 16<br>&nbsp;2 [UA25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]: USB-Audio - UA-25<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EDIROL UA-25 at usb-0000:00:1d.0-1, full speed<br>&nbsp;3 [nanoKONTROL&nbsp;&nbsp;&nbsp; ]: USB-Audio - nanoKONTROL<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KORG INC. nanoKONTROL at usb-0000:00:1d.0-2, full
 speed<br><br>The way I found after some trials with module inits was:<br>1) in /etc/modprobe.conf:<br>options snd-hda-intel index=0<br>options snd-usb-audio index=2<br><br>This fortunately always puts the UA-25 at index 2. However, the first option does not work, since the nanokontrol seems to get recognized before the HDA device and it is often sitting on index 0.<br>So I found that adding <br>snd_hda_intel<br>to /etc/modprobe.preload does the job, this way the intel module appears before the usb module...<br><br>Now my question is: is there any better way to do this? Is there a way to distinguish further than only by the module name for the index? How could this be solved more generally?<br><br>I guess PulseAudio has the goal to handle such issues, and once it gets there without side effects, this seems an important goal. But if I understand right, it does it by id attribution in a layer on top of this. If it's only that index shuffling, why can't
 alsa or the kernel be more predictable? BTW when I tried PA here together with JACK, the device reservation worked very well. <br><br>Frank<br><br></td></tr></table><br>