mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
ALSA: hda/realtek - Enable micmute LED on and HP system
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>
This commit is contained in:
parent
dbd1317978
commit
3e0650ab26
@ -4134,7 +4134,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,
|
||||
|
Loading…
Reference in New Issue
Block a user