aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 73b175944a07..512582b1f10a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3403,7 +3403,8 @@ static unsigned int led_power_filter(struct hda_codec *codec,
3403{ 3403{
3404 struct alc_spec *spec = codec->spec; 3404 struct alc_spec *spec = codec->spec;
3405 3405
3406 if (power_state != AC_PWRST_D3 || nid != spec->mute_led_nid) 3406 if (power_state != AC_PWRST_D3 || nid == 0 ||
3407 (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid))
3407 return power_state; 3408 return power_state;
3408 3409
3409 /* Set pin ctl again, it might have just been set to 0 */ 3410 /* Set pin ctl again, it might have just been set to 0 */
@@ -3563,6 +3564,7 @@ static void alc269_fixup_hp_gpio_mic1_led(struct hda_codec *codec,
3563 spec->gpio_led = 0; 3564 spec->gpio_led = 0;
3564 spec->cap_mute_led_nid = 0x18; 3565 spec->cap_mute_led_nid = 0x18;
3565 snd_hda_add_verbs(codec, gpio_init); 3566 snd_hda_add_verbs(codec, gpio_init);
3567 codec->power_filter = led_power_filter;
3566 } 3568 }
3567} 3569}
3568 3570