<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"><span>
<br>
> <a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixe" target="_blank">http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixe</a><br>
> > > r/paths/analog-output-headphones.conf<br>
> > ><br>
> > > pulseaudio mute external center/lfe controls when headphone jack is<br>
><br>
> plugged<br>
<br>
</span>That would be unwanted.<br></blockquote><div><br></div><div>This is common to all notebook using headphone jack and two other jacks to support surround51 or surround71 since pulseaudio mute the other retasked mio jack when headphone jack is plugged<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><br>
> > I used hdajackretask to override:<br>
> > PIN ID: 0x15 to "Line out (front)"<br></span></blockquote><div> <span><br><a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/patch/sound/pci/hda/patch_realtek.c?id=c3e837bbcc03e39991da5dd1f791c06cde9f7a45" target="_blank">https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/patch/sound/pci/hda/patch_realtek.c?id=c3e837bbcc03e39991da5dd1f791c06cde9f7a45</a><br></span><span><span><br></span>When the static model were used, the jack was configured as line out instead of headphone jack and there is no headphone playback volume<br><br>-static const struct hda_verb alc888_acer_aspire_4930g_verbs[] = {<br>-/* Enable unsolicited event for HP jack */<br>- {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_HP_EVENT | AC_USRSP_EN},<br>-/* Connect HP out to front */<br>- {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},<br>- {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},<br>- {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},<br>- {0x15, AC_VERB_SET_EAPD_BTLENABLE, 2},<br><br>-static const struct snd_kcontrol_new alc888_acer_aspire_4930g_mixer[] = {<br>- HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),<br>- HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),<br><br></span></div><div><span>The jack is configured as headphone jack after the auto parser is used <br></span></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span></span><div><div><span>
<br>
</span><span>> Pulseaudio don't know node 0x15 is headphone / Line Out (External speaker)<br>
><br>
> select speaker profile mute the headphone playback switch<br>
<br>
</span>Doesn't HP mean HeadPhone? Isn't solution to my problem obvious, namely add<br>
Line out capability to 0x15?<br>
<br>
</div></div></blockquote></div><br></div><div class="gmail_extra">Are there any side effect if you change the headphone jack to Line Out jack as the jack no longer enable HP amp ?<br><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">use add_out_jack_modes for create Headphone/Line Out jack mode control to change Headphone to Line Out and vice versa<br></div><div class="gmail_extra"><br><br>diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c<br>index 3d2597b..f25cd23 100644<br>--- a/sound/pci/hda/hda_generic.c<br>+++ b/sound/pci/hda/hda_generic.c<br>@@ -180,10 +180,10 @@ static void parse_user_hints(struct hda_codec *codec)<br> /* the following two are just for compatibility */<br> val = snd_hda_get_bool_hint(codec, "add_out_jack_modes");<br> if (val >= 0)<br>- spec->add_jack_modes = !!val;<br>+ spec->add_out_jack_modes = !!val;<br> val = snd_hda_get_bool_hint(codec, "add_in_jack_modes");<br> if (val >= 0)<br> spec->add_jack_modes = !!val;<br>@@ -2640,7 +2642,7 @@ static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin,<br> static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin)<br> {<br> struct hda_gen_spec *spec = codec->spec;<br>- if (spec->add_jack_modes) {<br>+ if (spec->add_out_jack_modes || spec->add_jack_modes) {<br> unsigned int pincap = snd_hda_query_pin_caps(codec, pin);<br> if ((pincap & AC_PINCAP_OUT) && (pincap & AC_PINCAP_HP_DRV))<br> return 2;<br>@@ -4892,7 +4895,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,<br> return err;<br> }<br> <br>- if (spec->add_jack_modes) {<br>+ if (spec->add_out_jack_modes || spec->add_jack_modes) {<br> if (cfg->line_out_type != AUTO_PIN_SPEAKER_OUT) {<br> err = create_out_jack_modes(codec, cfg->line_outs,<br> cfg->line_out_pins);<br>diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h<br>index 56e4139..8d7568b 100644<br>--- a/sound/pci/hda/hda_generic.h<br>+++ b/sound/pci/hda/hda_generic.h<br>@@ -227,6 +227,8 @@ struct hda_gen_spec {<br> unsigned int prefer_hp_amp:1; /* enable HP amp for speaker if any */<br> unsigned int add_stereo_mix_input:2; /* add aamix as a capture src */<br> unsigned int add_jack_modes:1; /* add i/o jack mode enum ctls */<br>+ unsigned int add_out_jack_modes:1; <br> unsigned int power_down_unused:1; /* power down unused widgets */<br> unsigned int dac_min_mute:1; /* minimal = mute for DACs */<br> <br><br></div></div>