<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; I want to configure it with ALSA and then switch the device with some<br>

&gt; key on the remote. Does someone make something like this?<br>
<br>
</div>I do not believe ALSA is capable of this.  You have actually found one<br>
of the rare circumstances where it does actually make sense to use<br>
PulseAudio.<br>
<div><div></div><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><div>What about creating a script that alters the content of the .asoundrc file to change the default audio output to the headset (and vice versa) and then force alsa to reload (i.e. sudo alsa force-reload, in this case you would need to alter the sudoers file to allow that command to be executed without a password).  Provided your Mythtv uses &quot;default&quot; as its audio output, and it tolerates alsa vanishing and reappearing this might just work if you execute the script with irexec.</div>
<div>Might be worth a try</div><div><br></div><div>Cheers</div><div>Wayne</div>