Patch "ALSA: hda/realtek - Enable micmute LED on and HP system" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ALSA: hda/realtek - Enable micmute LED on and HP system

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-hda-realtek-enable-micmute-led-on-and-hp-system.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9940c6ab39d054d15ece5a4d7fc0f605834613e9
Author: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx>
Date:   Thu Apr 30 16:32:52 2020 +0800

    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@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200430083255.5093-2-kai.heng.feng@xxxxxxxxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d8ee1b1ee7e3d..893b9fde59ac0 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4326,7 +4326,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,




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux