<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"><div><div>
>> > can you try the patch which add "channel mode" control which allow you<br>
>> > to<br>
>> > switch from 6ch to 8ch<br>
>><br>
>> I have tested the patch. In 8ch mode, it works without any overrides<br>
>> in the sense that the side channels go to the blue jack if I choose<br>
>> 8ch mode. In the 6ch mode, the line input also works (tested by using<br>
>> headphones as a very bad microphone-like source).<br>
>><br>
>> Here is alsa-info in the 6ch mode:<br>
>><br>
>> <a href="http://www.alsa-project.org/db/?f=d152698d4b2d9589d4c5f14e0c8e6d4978c8fbd0" target="_blank">http://www.alsa-project.org/db/?f=d152698d4b2d9589d4c5f14e0c8e6d4978c8fbd0</a><br>
>><br>
>> And in 8ch mode:<br>
>><br>
>> <a href="http://www.alsa-project.org/db/?f=4d5d14fbb559819fd82e7731e656be7efcfab439" target="_blank">http://www.alsa-project.org/db/?f=4d5d14fbb559819fd82e7731e656be7efcfab439</a><br>
>><br>
>> Pulseaudio is not smart enough to decide by itself that it can toggle<br>
>> the control and add 7.1 profiles. If I toggle the control manually and<br>
>> restart pulseaudio, they appear.<br>
>><br>
>> If the role of the "Line jack" control is still unclear, just say so<br>
>> and tell me what to do to figure it out.<br>
>><br>
<br>
</div></div>I will test everything later today, when I return home. However, I<br>
have questions about the tests.<br>
<div><br>
> In 8ch mode, do the "Line jack" return true when you plugged "Side Speaker"<br>
> ?<br>
<br>
</div>Do I understand correctly that I need to look at "amixer -c1 contents" output?<br>
<div><br>
> Should changes in "channel mode" , "Headphone Mic jack mode" or "Mic Jack<br>
> Mode" trigger an event so that pulseaudio server probe the sound card again<br>
> ?<br>
<br>
</div>How can I verify this? Is it enough to look at pulseaudio -vvv output?<br>
<div><div><br></div></div></blockquote></div><br></div><div class="gmail_extra">if your computer chassis does not have front audio panel and you want to use headphone with line out jacks the rear panel <br><br></div><div class="gmail_extra">
just use early patching to add hints <br><br></div><div class="gmail_extra">add_out_jack_modes=1 <br><br></div><div class="gmail_extra">or<br><br></div><div class="gmail_extra">add the following line to patch_realtek.c<br>
<br></div><div class="gmail_extra">spec->gen.add_jack_modes = 1<br><br></div><div class="gmail_extra">this create "Line Out Jack Mode" control on those line out jacks and "Headphone Jack Mode" on headphone jacks which pincap support OUT and HP,<br>
<br></div><div class="gmail_extra">your headphone plugged into Line Out jack still be regarded as Line Out and use Front Playback Volume <br><br><a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/profile-sets/default.conf?id=ecf3ab2b5788c85c237eeb6429bd1d525b9ac0cc">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/profile-sets/default.conf?id=ecf3ab2b5788c85c237eeb6429bd1d525b9ac0cc</a><br>
</div><div class="gmail_extra"><br><a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-lineout.conf">http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-lineout.conf</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">as add_out_jack_modes is depreciated , you will have "Front Mic Jack Mode" , "Rear Mic Jack Mode" and "Line Jack Mode" controls<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">The function of these kind of controls are to change the function of the corresponding jacks<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
the function of the "channel mode" control have one more function in addition to change the input jacks to surround output jacks ,is to change playback mode from stereo to support multi-channels playback <br><br>
</div><div class="gmail_extra">however "channel mode" change to "8ch" does not imply "Line in" jack must be retasked (e.g. both rear mic and line in are retaskable)<br>
</div><div class="gmail_extra"><br><br>for those 3stack desktop Line In is retasked as output but for those 5 stack desktop , Line In is still input jacks when "channel mode" is "6ch"<br><br></div><div class="gmail_extra">
the possible way is to check the pin ctls and vref of the node is match with the name of the jack detection control, also the driver might set pin ctl to zero to mute the output<br>
</div>
<div class="gmail_extra"><br><pre>Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Control: name="Side Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Line Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Line Jack", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x03 0x03]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x00003736: IN OUT Detect Trigger
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x0181305f: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
DefAssociation = 0x5, Sequence = 0xf
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=04, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26</pre><br></div></div>