From: Hui Wang <hui.wang@canonical.com>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>, tiwai@suse.com
Cc: "moderated list:SOUND" <alsa-devel@alsa-project.org>,
"Kailang Yang" <kailang@realtek.com>,
"Thomas Hebb" <tommyhebb@gmail.com>,
"open list" <linux-kernel@vger.kernel.org>,
"Huacai Chen" <chenhc@lemote.com>,
"Jian-Hong Pan" <jian-hong@endlessm.com>,
"Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Subject: Re: [PATCH] ALSA: hda/realtek: Enable front panel headset LED on Lenovo ThinkStation P520
Date: Mon, 14 Sep 2020 16:04:10 +0800 [thread overview]
Message-ID: <c4a9ed79-1c9d-8fbc-8c3b-eab191bd56bd@canonical.com> (raw)
In-Reply-To: <20200914070231.13192-1-kai.heng.feng@canonical.com>
Thanks Kaiheng, and we just had one P520 in the Beijing office and I
also worked on this issue happenly. Does the led change according to
jack plugging in or plugging out with your patch? I also prepared a
patchset but my patchset has more code than yours, please take a look. :-)
Thanks.
Hui.
On 2020/9/14 下午3:02, Kai-Heng Feng wrote:
> On Lenovo P520, the front panel headset LED isn't lit up right now.
>
> Realtek states that the LED needs to be enabled by ALC233's GPIO2, so
> let's do it accordingly to light the LED up.
>
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
> sound/pci/hda/patch_realtek.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index c521a1f17096..ba941bd0b792 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -6017,6 +6017,7 @@ static void alc_fixup_thinkpad_acpi(struct hda_codec *codec,
> #include "hp_x360_helper.c"
>
> enum {
> + ALC269_FIXUP_GPIO2,
> ALC269_FIXUP_SONY_VAIO,
> ALC275_FIXUP_SONY_VAIO_GPIO2,
> ALC269_FIXUP_DELL_M101Z,
> @@ -6194,6 +6195,10 @@ enum {
> };
>
> static const struct hda_fixup alc269_fixups[] = {
> + [ALC269_FIXUP_GPIO2] = {
> + .type = HDA_FIXUP_FUNC,
> + .v.func = alc_fixup_gpio2,
> + },
> [ALC269_FIXUP_SONY_VAIO] = {
> .type = HDA_FIXUP_PINCTLS,
> .v.pins = (const struct hda_pintbl[]) {
> @@ -7013,6 +7018,8 @@ static const struct hda_fixup alc269_fixups[] = {
> [ALC233_FIXUP_LENOVO_MULTI_CODECS] = {
> .type = HDA_FIXUP_FUNC,
> .v.func = alc233_alc662_fixup_lenovo_dual_codecs,
> + .chained = true,
> + .chain_id = ALC269_FIXUP_GPIO2
> },
> [ALC233_FIXUP_ACER_HEADSET_MIC] = {
> .type = HDA_FIXUP_VERBS,
next prev parent reply other threads:[~2020-09-14 8:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 7:02 Kai-Heng Feng
2020-09-14 8:04 ` Hui Wang [this message]
2020-09-14 8:07 ` Kai-Heng Feng
2020-09-14 8:21 ` Hui Wang
2020-09-15 0:33 ` Hui Wang
2020-09-21 8:27 ` 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=c4a9ed79-1c9d-8fbc-8c3b-eab191bd56bd@canonical.com \
--to=hui.wang@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=chenhc@lemote.com \
--cc=jian-hong@endlessm.com \
--cc=kai.heng.feng@canonical.com \
--cc=kailang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mirq-linux@rere.qmqm.pl \
--cc=tiwai@suse.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®