aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/patch_realtek.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 2c5c8ad84783..0b3e7a18ca78 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5441,6 +5441,13 @@ static void alc_fixup_headset_jack(struct hda_codec *codec,
5441 } 5441 }
5442} 5442}
5443 5443
5444static void alc_fixup_disable_mic_vref(struct hda_codec *codec,
5445 const struct hda_fixup *fix, int action)
5446{
5447 if (action == HDA_FIXUP_ACT_PRE_PROBE)
5448 snd_hda_codec_set_pin_target(codec, 0x19, PIN_VREFHIZ);
5449}
5450
5444/* for hda_fixup_thinkpad_acpi() */ 5451/* for hda_fixup_thinkpad_acpi() */
5445#include "thinkpad_helper.c" 5452#include "thinkpad_helper.c"
5446 5453
@@ -5550,6 +5557,7 @@ enum {
5550 ALC293_FIXUP_LENOVO_SPK_NOISE, 5557 ALC293_FIXUP_LENOVO_SPK_NOISE,
5551 ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY, 5558 ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY,
5552 ALC255_FIXUP_DELL_SPK_NOISE, 5559 ALC255_FIXUP_DELL_SPK_NOISE,
5560 ALC225_FIXUP_DISABLE_MIC_VREF,
5553 ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, 5561 ALC225_FIXUP_DELL1_MIC_NO_PRESENCE,
5554 ALC295_FIXUP_DISABLE_DAC3, 5562 ALC295_FIXUP_DISABLE_DAC3,
5555 ALC280_FIXUP_HP_HEADSET_MIC, 5563 ALC280_FIXUP_HP_HEADSET_MIC,
@@ -6269,6 +6277,12 @@ static const struct hda_fixup alc269_fixups[] = {
6269 .chained = true, 6277 .chained = true,
6270 .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE 6278 .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE
6271 }, 6279 },
6280 [ALC225_FIXUP_DISABLE_MIC_VREF] = {
6281 .type = HDA_FIXUP_FUNC,
6282 .v.func = alc_fixup_disable_mic_vref,
6283 .chained = true,
6284 .chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE
6285 },
6272 [ALC225_FIXUP_DELL1_MIC_NO_PRESENCE] = { 6286 [ALC225_FIXUP_DELL1_MIC_NO_PRESENCE] = {
6273 .type = HDA_FIXUP_VERBS, 6287 .type = HDA_FIXUP_VERBS,
6274 .v.verbs = (const struct hda_verb[]) { 6288 .v.verbs = (const struct hda_verb[]) {
@@ -6278,7 +6292,7 @@ static const struct hda_fixup alc269_fixups[] = {
6278 {} 6292 {}
6279 }, 6293 },
6280 .chained = true, 6294 .chained = true,
6281 .chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE 6295 .chain_id = ALC225_FIXUP_DISABLE_MIC_VREF
6282 }, 6296 },
6283 [ALC280_FIXUP_HP_HEADSET_MIC] = { 6297 [ALC280_FIXUP_HP_HEADSET_MIC] = {
6284 .type = HDA_FIXUP_FUNC, 6298 .type = HDA_FIXUP_FUNC,