This 3-pin jack was labeled "Headphone Jack", but it could also be
used as a mic jack just by switching "Input Source". Therefore we need
to call the jack something else, to make sure PulseAudio can use the
speaker together with the external mic. (PulseAudio might mute the
speaker if it detects a headphone being plugged in.)
This 3-pin jack was labeled "Headphone Jack", but it could also be
used as a mic jack just by switching "Input Source". Therefore we need
to call the jack something else, to make sure PulseAudio can use the
speaker together with the external mic. (PulseAudio might mute the
speaker if it detects a headphone being plugged in.)
Signed-off-by: David Henningsson <email address hidden> pci/hda/ patch_realtek. c | 22 +++++++ +++++++ ++++++- -
---
sound/
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/sound/ pci/hda/ patch_realtek. c b/sound/ pci/hda/ patch_realtek. c pci/hda/ patch_realtek. c pci/hda/ patch_realtek. c controls( struct hda_codec *codec)
index 6174d4a..7189e07 100644
--- a/sound/
+++ b/sound/
@@ -2001,13 +2001,31 @@ static int __alc_build_
return 0;
}
-static int alc_build_ controls( struct hda_codec *codec) jacks(struct hda_codec *codec) shared_ mic_hp) { inputs[ 1].pin; jack_add_ kctl(codec, nid, "Headphone Mic", 0); jack_detect_ enable( codec, nid, 0); jack_add_ kctls(codec, &spec->autocfg); controls( struct hda_codec *codec) controls( codec); jack_add_ kctls(codec, &spec->autocfg); jacks(codec) ; fixup(codec, ALC_FIXUP_ ACT_BUILD) ;
+static int alc_build_
{
struct alc_spec *spec = codec->spec;
+
+ if (spec->
+ int err;
+ int nid = spec->autocfg.
+ err = snd_hda_
+ if (err < 0)
+ return err;
+ err = snd_hda_
+ if (err < 0)
+ return err;
+ }
+
+ return snd_hda_
+}
+
+static int alc_build_
+{
int err = __alc_build_
if (err < 0)
return err;
- err = snd_hda_
+
+ err = alc_build_
if (err < 0)
return err;
alc_apply_
--
1.7.9.5