<div>On Thursday, December 15, 2011 09:00:33 am Colin Guthrie wrote:</div><div>&gt; &#39;Twas brillig, and Jeffrey Barish at 15/12/11 15:30 did gyre and gimble:</div><div>&gt; &gt; On Thu 15 06:48:25 Colin Guthrie wrote:</div>

<div>&gt; &gt;&gt; &#39;Twas brillig, and Dalleau, Frederic at 15/12/11 09:57 did gyre and gimble:</div><div>&gt; &gt;&gt;&gt; Hi Jeffrey,</div><div>&gt; &gt;&gt;&gt; </div><div>&gt; &gt;&gt;&gt; Maybe module-switch-on-connect can help you</div>

<div>&gt; &gt;&gt;&gt; <a href="http://pulseaudio.org/wiki/Modules#module-switch-on-connect" target="_blank">http://pulseaudio.org/wiki/Modules#module-switch-on-connect</a></div><div>&gt; &gt;&gt;&gt; </div><div>&gt; &gt;&gt;&gt; In combination with module-default-device-restore, you should always</div>

<div>&gt; &gt;&gt;&gt; have the default sink point to the latest connected device.</div><div>&gt; &gt;&gt; </div><div>&gt; &gt;&gt; Yup, this is the short term solution.</div><div>&gt; &gt;&gt; </div><div>&gt; &gt;&gt; In the future (next 6 months hopefully) then the priority list routing</div>

<div>&gt; &gt;&gt; system should make this a bit easier to configure.</div><div>&gt; &gt;&gt; </div><div>&gt; &gt;&gt; </div><div>&gt; &gt;&gt; Col</div><div>&gt; &gt; </div><div>&gt; &gt; module-switch-on-connect looks perfect, but I don&#39;t seem to have it.  I</div>

<div>&gt; &gt; am running version 0.9.21-63-gd3efa-dirty (on Ubuntu Server 10.10). </div><div>&gt; &gt; What do I need to do to get module-switch-on-connect?</div><div>&gt; </div><div>&gt; You need to update to PA 1.0+ (we recommend PA 1.1. It should be quite</div>

<div>&gt; easy to build for older distros as only one additional dep in json-c.</div><div>&gt; </div><div>&gt; All the best.</div><div>&gt; </div><div>&gt; Col</div><div><br></div>The version of pulseaudio available at the Ubuntu repository recently went to 1:0.9.22, so it appears that I can now try using this feature.  Before I install pulseaudio, however, I am wondering what happens when I disconnect the USB DAC.  Here&#39;s the scenario about which I am wondering: I start with nothing connected.  Sound comes out the internal DAC.  I connect a USB DAC.  module-switch-on-connect detects the connection of a new device and reroutes sound to the USB DAC.  Good, so far.  Now I disconnect the USB DAC.  From the name of the module -- &quot;module-switch-on-<i>connect</i>&quot; -- it isn&#39;t clear to me what happens.  I hope that the module also switches on <i>dis</i>connect so that the sound will revert to the internal DAC.  I do not anticipate connecting any other audio sinks, so I can probably manage for now, at least, without a more general priority scheme -- depending on the answer to my question, of course.<br clear="all">

<div><br></div>-- <br>Jeffrey Barish<br>