<div>On Fri, May 7, 2010 at 4:17 PM, Geoff King <span dir="ltr">&lt;<a href="mailto:gsking1@gmail.com">gsking1@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
I have problem that I&#39;ve been trying to figure out with no luck.  The<br>audio interface keeps changing for example:<br><br>Today:  Maudio 24/96 is hw:1 and Midisport 4x4 Anniv is hw:0.<br>Yesterday before reboot: Maudio 24/96 is hw:0 and Midisport 4x4 Anniv is hw:1<br>
etc, back and forth, each reboot...</blockquote><div><br></div></div>Consider setting up /etc/modprobe.d/*.conf file to ensure a consistent ordering of all your USB devices.<div><br></div><div><div>for example, I use:</div>
<div><div>-rw-r--r-- 1 root root 1760 2010-03-12 11:32 /etc/modprobe.d/snd_usb_audio.conf</div></div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## NPM: force ALSA USB sound device id&#39;s s.t. cat /proc/asound/cards  gives</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  0 [Headset        ]: USB-Audio - Logitech USB Headset</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       Logitech Logitech USB Headset at usb-0000:00:12.0-2, full speed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  1 [SB             ]: HDA-Intel - HDA ATI SB</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       HDA ATI SB at 0xfb9f4000 irq 16</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  2 [M66            ]: ICE1712 - M Audio Delta 66</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       M Audio Delta 66 at 0xe880, irq 21</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  3 [MT4            ]: USB-Audio - MT4</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       Emagic MT4 at usb-0000:00:12.1-1, full speed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  4 [BCD3000        ]: USB-Audio - BCD3000</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       Behringer BCD3000 at usb-0000:00:13.1-2, full speed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##  5 [UM2            ]: USB-Audio - UM-2</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##                       EDIROL UM-2 at usb-0000:00:12.1-3, full speed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## (see <a href="http://ccrma.stanford.edu/planetccrma/software/installplaneteleven.html">http://ccrma.stanford.edu/planetccrma/software/installplaneteleven.html</a> )</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## (see <a href="http://alsa.opensrc.org/index.php/MultipleUSBAudioDevices">http://alsa.opensrc.org/index.php/MultipleUSBAudioDevices</a> )</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
alias snd-card-0 snd-usb-audio ## --&gt; Headset</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##    snd-card-1               ## --&gt; SB</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##    snd-card-2               ## --&gt; M66</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
alias snd-card-3 snd-usb-audio ## --&gt; MT4</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
alias snd-card-4 snd-usb-audio ## --&gt; BCD3000</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
alias snd-card-5 snd-usb-audio ## --&gt; UM-2</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
alias snd-card-6 snd-usb-audio ## --&gt; LPK25</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## lsusb gives following devices w/ vid/pid&#39;s:</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## Headset: Bus 003 Device 003: ID 046d:0a0c Logitech, Inc. </blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## MT4:     Bus 004 Device 002: ID 086a:0003 Emagic Soft- und Hardware GmbH MT4</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## UM-2:    Bus 004 Device 005: ID 0582:0005 Roland Corp. Edirol UM-2 MIDI Adapter</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## BCD3000: Bus 006 Device 005: ID 1397:00bf</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
## LPK25:   Bus 005 Device 003: ID 09e8:0076 AKAI  Professional M.I. Corp. </blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
##</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
options snd-usb-audio index=0,3,4,5,6 vid=0x046d,0x086a,0x1397,0x0582,0x09e8 pid=0x0a0c,0x0003,0x00bf,0x0005,0x0076</blockquote></div><div><br></div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
I usually use qjackctl and have to keep changing the presets with settings which is annoying.</blockquote><div> </div>You can also use &quot;Symbolic&quot; names for ALSA devices which will make them not depend on a particular device number, e.g. </div>
<div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
&gt; aplay -l | grep M66</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
card 2: M66 [M Audio Delta 66], device 0: ICE1712 multi [ICE1712 multi]</blockquote></div><div><br></div><div>So use &quot;M66&quot; as the ALSA name, for jack, e.g. &#39;/usr/bin/jackd -dalsa -dhw:M66 ...&#39;</div><div>
<br></div><div>Niels</div><div><a href="http://nielsmayer.com">http://nielsmayer.com</a></div><div><br></div><div>PS: you may want to leave device 0 unreserved. That way when you plug in a new USB device (before you&#39;ve added it to /etc/modprobe.d) it won&#39;t get assigned to card0 automatically. That&#39;s what would happen by default (a bug IMHO) and prevent whatever you had setup previously as card0 from iniitializing. </div>
<div>Then when jack or alsa attempts to use the card, it fails. In fact, plugging in a new unrecognized usb device, then starting up qjackctl can cause qjackctl to place some bad values in ~/.config/<a href="http://rncbc.org/QjackCtl.conf">rncbc.org/QjackCtl.conf</a> and the next thing you know your audio is all horked up (even after removing the offending USB device and rebooting) until you delete the QjackCtl.conf and set it up from scratch.</div>
<div><br></div></div>