From: Greg Kroah-Hartman Date: Mon, 14 Jan 2019 10:50:44 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v4.20.3~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a25131c75a8ad1f81f47145c6bd9f3dfd99af155;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: alsa-hda-realtek-disable-headset-mic-vref-for-headset-mode-of-alc225.patch --- diff --git a/queue-4.4/alsa-hda-realtek-disable-headset-mic-vref-for-headset-mode-of-alc225.patch b/queue-4.4/alsa-hda-realtek-disable-headset-mic-vref-for-headset-mode-of-alc225.patch new file mode 100644 index 00000000000..78121eda23b --- /dev/null +++ b/queue-4.4/alsa-hda-realtek-disable-headset-mic-vref-for-headset-mode-of-alc225.patch @@ -0,0 +1,69 @@ +From d1dd42110d2727e81b9265841a62bc84c454c3a2 Mon Sep 17 00:00:00 2001 +From: Kailang Yang +Date: Wed, 9 Jan 2019 17:05:24 +0800 +Subject: ALSA: hda/realtek - Disable headset Mic VREF for headset mode of ALC225 + +From: Kailang Yang + +commit d1dd42110d2727e81b9265841a62bc84c454c3a2 upstream. + +Disable Headset Mic VREF for headset mode of ALC225. +This will be controlled by coef bits of headset mode functions. + +[ Fixed a compile warning and code simplification -- tiwai ] + +Signed-off-by: Kailang Yang +Cc: +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/pci/hda/patch_realtek.c | 16 +++++++++++++++- + 1 file changed, 15 insertions(+), 1 deletion(-) + +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -4792,6 +4792,13 @@ static void alc280_fixup_hp_9480m(struct + } + } + ++static void alc_fixup_disable_mic_vref(struct hda_codec *codec, ++ const struct hda_fixup *fix, int action) ++{ ++ if (action == HDA_FIXUP_ACT_PRE_PROBE) ++ snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ); ++} ++ + /* for hda_fixup_thinkpad_acpi() */ + #include "thinkpad_helper.c" + +@@ -4891,6 +4898,7 @@ enum { + ALC293_FIXUP_LENOVO_SPK_NOISE, + ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY, + ALC255_FIXUP_DELL_SPK_NOISE, ++ ALC225_FIXUP_DISABLE_MIC_VREF, + ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, + ALC295_FIXUP_DISABLE_DAC3, + ALC280_FIXUP_HP_HEADSET_MIC, +@@ -5546,6 +5554,12 @@ static const struct hda_fixup alc269_fix + .chained = true, + .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE + }, ++ [ALC225_FIXUP_DISABLE_MIC_VREF] = { ++ .type = HDA_FIXUP_FUNC, ++ .v.func = alc_fixup_disable_mic_vref, ++ .chained = true, ++ .chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ++ }, + [ALC225_FIXUP_DELL1_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { +@@ -5555,7 +5569,7 @@ static const struct hda_fixup alc269_fix + {} + }, + .chained = true, +- .chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE ++ .chain_id = ALC225_FIXUP_DISABLE_MIC_VREF + }, + [ALC280_FIXUP_HP_HEADSET_MIC] = { + .type = HDA_FIXUP_FUNC, diff --git a/queue-4.4/series b/queue-4.4/series new file mode 100644 index 00000000000..1a112bbcb1e --- /dev/null +++ b/queue-4.4/series @@ -0,0 +1 @@ +alsa-hda-realtek-disable-headset-mic-vref-for-headset-mode-of-alc225.patch