From: Kai-Heng Feng <kai.heng.feng@canonical.com> To: tiwai@suse.com Cc: "Kai-Heng Feng" <kai.heng.feng@canonical.com>, "Jaroslav Kysela" <perex@perex.cz>, "Kailang Yang" <kailang@realtek.com>, "Hui Wang" <hui.wang@canonical.com>, "Jian-Hong Pan" <jian-hong@endlessm.com>, "Tomas Espeleta" <tomas.espeleta@gmail.com>, "Thomas Hebb" <tommyhebb@gmail.com>, "Michał Mirosław" <mirq-linux@rere.qmqm.pl>, alsa-devel@alsa-project.org (moderated list:SOUND), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/3] ALSA: hda/realtek - Enable micmute LED on and HP system Date: Thu, 30 Apr 2020 16:32:52 +0800 [thread overview] Message-ID: <20200430083255.5093-2-kai.heng.feng@canonical.com> (raw) In-Reply-To: <20200430083255.5093-1-kai.heng.feng@canonical.com> 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> --- sound/pci/hda/patch_realtek.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3150a61befc5..6f164ccddde3 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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, -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Kai-Heng Feng <kai.heng.feng@canonical.com> To: tiwai@suse.com Cc: "moderated list:SOUND" <alsa-devel@alsa-project.org>, "Kailang Yang" <kailang@realtek.com>, "Tomas Espeleta" <tomas.espeleta@gmail.com>, "Thomas Hebb" <tommyhebb@gmail.com>, "open list" <linux-kernel@vger.kernel.org>, "Hui Wang" <hui.wang@canonical.com>, "Kai-Heng Feng" <kai.heng.feng@canonical.com>, "Jian-Hong Pan" <jian-hong@endlessm.com>, "Michał Mirosław" <mirq-linux@rere.qmqm.pl> Subject: [PATCH 2/3] ALSA: hda/realtek - Enable micmute LED on and HP system Date: Thu, 30 Apr 2020 16:32:52 +0800 [thread overview] Message-ID: <20200430083255.5093-2-kai.heng.feng@canonical.com> (raw) In-Reply-To: <20200430083255.5093-1-kai.heng.feng@canonical.com> 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> --- sound/pci/hda/patch_realtek.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3150a61befc5..6f164ccddde3 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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, -- 2.17.1
next prev parent reply other threads:[~2020-04-30 8:33 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-30 8:32 [PATCH 1/3] ALSA: hda/realtek - Introduce polarity for micmute LED GPIO Kai-Heng Feng 2020-04-30 8:32 ` Kai-Heng Feng 2020-04-30 8:32 ` Kai-Heng Feng [this message] 2020-04-30 8:32 ` [PATCH 2/3] ALSA: hda/realtek - Enable micmute LED on and HP system Kai-Heng Feng 2020-04-30 17:22 ` Takashi Iwai 2020-04-30 17:22 ` Takashi Iwai 2020-04-30 8:32 ` [PATCH 3/3] ALSA: hda/realtek - Add LED class support for micmute LED Kai-Heng Feng 2020-04-30 8:32 ` Kai-Heng Feng 2020-04-30 11:26 ` Takashi Iwai 2020-04-30 11:26 ` Takashi Iwai 2020-04-30 13:52 ` [PATCH v2 " Kai-Heng Feng 2020-04-30 13:52 ` Kai-Heng Feng 2020-04-30 17:22 ` Takashi Iwai 2020-04-30 17:22 ` Takashi Iwai 2020-05-01 8:11 ` [PATCH " kbuild test robot 2020-04-30 17:21 ` [PATCH 1/3] ALSA: hda/realtek - Introduce polarity for micmute LED GPIO Takashi Iwai 2020-04-30 17:21 ` Takashi Iwai
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200430083255.5093-2-kai.heng.feng@canonical.com \ --to=kai.heng.feng@canonical.com \ --cc=alsa-devel@alsa-project.org \ --cc=hui.wang@canonical.com \ --cc=jian-hong@endlessm.com \ --cc=kailang@realtek.com \ --cc=linux-kernel@vger.kernel.org \ --cc=mirq-linux@rere.qmqm.pl \ --cc=perex@perex.cz \ --cc=tiwai@suse.com \ --cc=tomas.espeleta@gmail.com \ --cc=tommyhebb@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.