<div dir="ltr"><br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div>> The logic is about<br>
>><br>
>>   1) when should the dialog show up<br>
><br>
><br>
> a) when user plug speaker into input jack or mic jack into output jacks<br>
> b) when user plug headphone into line out jacks or speaker into headphone<br>
> jacks<br>
><br>
> dialog should not be popped up when user plugged the correct jacks<br>
<br>
</div>Does the typical Intel hardware expose the necessary information for<br>
this? What to do if the hardware does not expose this information?<br></blockquote><div><br><a href="http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=28&Level=5&Conn=4&ProdID=42" target="_blank">http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=28&Level=5&Conn=4&ProdID=42</a><br>

<br>Realtek's proprietary impedance sensing and jack detect techniques allow
 device loads on inputs and outputs to be auto-detected. All analog IO 
are input and output capable, and headphone amplifiers are also 
integrated at each analog output. <br><br></div><div><br>codecs/stac9227-intel-d946gzis-mobo:  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense<br><br></div><div>There are a fews codecs in hda-emu/codecs with Pin cap : Trigger and ImpSense<br>

<br><br></div><div>For the alsa driver , there are specific controls for these kind of multi function jacks which allow user to switch the function of the jack<br><br></div><div>"Headphone Mic Jack Mode" headphone and mic<br>
</div>
<div>"Headphone Jack Mode" headphone and line out<br></div><div>"Line Out Jack Mode" line out and headphone<br></div><div>"Mic Jack Mode"  - mic and Line in<br></div><div>"Channel Mode" - input jacks/headphone jacks and surround output jacks<br>
</div><div><br></div><div>e.g. your Gigabyte H87N wifi need retasking of one input jack to support 7.1<br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
And in fact - if the "speaker/headphone" decision is based on the<br>
resistance of the plugged-in thing, are you sure that all amplified<br>
speakers have resistance drastically different from both headphones<br>
and microphones? I don't have any amplified speakers with a 3.5 mm<br>
jack, so can't test this myself.<br>
<span><font color="#888888"><br></font></span></blockquote><br></div>Table 1. Impedence sense  of STAC9227 datasheet <br>The impedance sense table reflects both standard Line Out and Headphone<br>output drivers. Please reference the HD Audio Universal Jack Application Note on the SigmaTel Extranet for more information.<br>

</div></div>