diff options
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index dba297288398..053107786f33 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -3371,8 +3371,9 @@ static void alc269_fixup_mic_mute_hook(void *private_data, int enabled) | |||
3371 | 3371 | ||
3372 | if (spec->mute_led_polarity) | 3372 | if (spec->mute_led_polarity) |
3373 | enabled = !enabled; | 3373 | enabled = !enabled; |
3374 | pinval = AC_PINCTL_IN_EN | | 3374 | pinval = snd_hda_codec_get_pin_target(codec, spec->mute_led_nid); |
3375 | (enabled ? AC_PINCTL_VREF_HIZ : AC_PINCTL_VREF_80); | 3375 | pinval &= ~AC_PINCTL_VREFEN; |
3376 | pinval |= enabled ? AC_PINCTL_VREF_HIZ : AC_PINCTL_VREF_80; | ||
3376 | if (spec->mute_led_nid) | 3377 | if (spec->mute_led_nid) |
3377 | snd_hda_set_pin_ctl_cache(codec, spec->mute_led_nid, pinval); | 3378 | snd_hda_set_pin_ctl_cache(codec, spec->mute_led_nid, pinval); |
3378 | } | 3379 | } |