diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2020-04-30 16:32:52 +0800 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2020-06-30 23:17:03 -0400 |
commit | 0255fb2f1a1248a81b7e65df4039a9b01b9345e9 (patch) | |
tree | 9e5196887688fc465526a90b3e4eaf83db951274 /sound/pci | |
parent | 2a3e71fa1654a2fc976720fd448520900ba26acb (diff) | |
download | linux-stable-0255fb2f1a1248a81b7e65df4039a9b01b9345e9.tar.gz linux-stable-0255fb2f1a1248a81b7e65df4039a9b01b9345e9.tar.bz2 linux-stable-0255fb2f1a1248a81b7e65df4039a9b01b9345e9.zip |
ALSA: hda/realtek - Enable micmute LED on and HP system
[ Upstream commit 3e0650ab26e2010ee312311612e40e076ed1feca ]
Though the system uses DMIC, headset mic still uses the HDA, let's use
GPIO 0x1 to control the micmute LED.
The micmute LED GPIO has a different polarity to the mute LED GPIO, we
can use the newly added micmute_led_polarity to indicate that.
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200430083255.5093-2-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3103f990299c..54887a87bddb 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3921,7 +3921,11 @@ static void alc269_fixup_hp_gpio_led(struct hda_codec *codec, static void alc285_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) { - alc_fixup_hp_gpio_led(codec, action, 0x04, 0x00); + struct alc_spec *spec = codec->spec; + + spec->micmute_led_polarity = 1; + + alc_fixup_hp_gpio_led(codec, action, 0x04, 0x01); } static void alc286_fixup_hp_gpio_led(struct hda_codec *codec, |