<div dir="ltr"><div><div><div>If it can be of any help, I found that using Jack for everything is much easier than juggling with ALSA card numbering and priorities and stuff.<br></div>I have qjackctl in my ~/.xinitrc, and it's set up to start jack automatically (with the last preset used).<br>When I use the USB audio interface, I simply stop jack, load the proper preset, and start jack again.<br></div><div>I never thought of automating the selection, to be honest; I use different USB devices,  and selecting the right one manually is quick enough.</div><br><div>I have no need for Pulseaudio, I tried it for a while but it was only an annoyance for me.<br></div>I set up ~/.asoundrc to use the jack plugin by default, so non-jack software can be routed through Jack (Firefox, for example):<br></div><br>## ALSA JACK PCM PLUGIN<br>## <a href="http://jackaudio.org/faq/routing_alsa.html">http://jackaudio.org/faq/routing_alsa.html</a><br>## <a href="http://www.alsa-project.org/main/index.php/Asoundrc">http://www.alsa-project.org/main/index.php/Asoundrc</a><br>pcm.jackplug {<br>    type plug<br>    slave { pcm "rawjack" }<br>    hint { description "JACK Audio Connection Kit" }<br>}<br>pcm.rawjack {<br>    type jack<br>    playback_ports {<br>        0 system:playback_1<br>        1 system:playback_2<br>    }<br>    capture_ports {<br>        0 system:capture_1<br>        1 system:capture_2<br>    }<br>}<br>pcm.!default { type plug; slave { pcm "rawjack" } }<br><br><div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">-- Emanuele Rusconi<br></div></div>
</div></div>