<p></p>
<p>>> >><br>
>> >> ><br>
>> >> > On a machine without fixed connecting audio devices like internal<br>
>> >> > microphone or internal speaker, and when there is no external audio<br>
>> >> > devices plugging in, the default source/sink is alsa_input/alsa_output<br>
>> >> > and there is no input devices/output devices listed in the gnome<br>
>> >> > sound-setting.<br>
>><br>
>> <a href="https://launchpadlibrarian.net/184055917/PulseList.txt">https://launchpadlibrarian.net/184055917/PulseList.txt</a><br>
>><br>
>> Seem line in is active port when all ports are not available<br>
>> Pulseaudio won't switch away from line in but gnome won't show line in since it is not plugged<br>
>><br>
>> ports:<br>
>> analog-input-microphone-front: Front Microphone (priority 8500, latency offset 0 usec, available: no)<br>
>> properties:<br>
>> device.icon_name = "audio-input-microphone"<br>
>> analog-input-microphone-rear: Rear Microphone (priority 8200, latency offset 0 usec, available: no)<br>
>> properties:<br>
>> device.icon_name = "audio-input-microphone"<br>
>> analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)<br>
>> properties:<br>
>><br>
>> active port: <analog-input-linein><br>
><br>
> Yes, in this situation, the default-source->active_port->available=no, if you use this module and pass "only_from_unavailable=yes", when connect bluetooth headset, the default source will automatically switch to bluez-source.<br>
><br>
> In this situation, if you plug something in the line-in jack, the default-source->active_port-available=yes, and if you pass "only_from_unavailable=yes", the default source will not switch.<br>
>><br>
>> <a href="https://launchpadlibrarian.net/184417469/alsa2.txt">https://launchpadlibrarian.net/184417469/alsa2.txt</a><br>
>><br>
>><br></p>
<p>>I do not have the hda-jack-sense-test command.</p>
<p>>I was not aware that I was overriding the pcm.default. Is it worth changing this to see if the bug goes away? How would I do that?</p>
<p>Seem upgrade does not remove previous conf </p>
<p>System wide config file (/etc/asound.conf)</p>
<p>###################### /etc/asound.conf ##################################<br>
pcm.!default {<br>
type plug<br>
slave.pcm "asymed"<br>
}</p>
<p>pcm.asymed {<br>
type asym<br>
playback.pcm "swmixer"<br>
capture.pcm "mixin"<br>
}</p>
<p>pcm.dsp0 {<br>
type plug<br>
slave.pcm "asymed"<br>
}</p>
<p>pcm.swmixer {<br>
type dmix<br>
ipc_key 1234<br>
slowptr yes<br>
slave {<br>
pcm "hw:0,0"<br>
period_time 0<br>
period_size 1024<br>
buffer_size 4096<br>
rate 48000<br>
}<br>
}</p>
<p>ctl.dmixer {<br>
type hw<br>
card 0<br>
}</p>
<p>pcm.mixin {<br>
type dsnoop<br>
ipc_key 5978293 # must be unique for all dmix plugins!!!!<br>
ipc_key_add_uid yes<br>
slave {<br>
pcm "hw:0,0"<br>
channels 2<br>
period_size 1024<br>
buffer_size 4096<br>
rate 48000<br>
periods 0<br>
period_time 0<br>
}<br>
bindings {<br>
0 0<br>
0 1<br>
}<br>
}<br><br><br></p>
<p>> Do I need to build my own version of the kernel to disable jack detection?<br></p>
<p><a href="https://launchpad.net/~diwic/+archive/ubuntu/hda">https://launchpad.net/~diwic/+archive/ubuntu/hda</a></p>
<p>Install snd-hda-tools and run hda-jack-sense-test to find out whether rear Mic Jack , line in and front Mic report correct Jack state when you plugged and unplugged</p>
<p>If it work in windows, you may need to file an upstream bug report </p>
<p>If rear Mic Jack cannot report correct Jack state, </p>
<p>The workaround is disable Jack detection of rear Mic jack by hda-jack-retask<br>
</p>