lkml.org 
[lkml]   [2020]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 372/388] ALSA: hda/realtek: Enable front panel headset LED on Lenovo ThinkStation P520
    Date
    From: Kai-Heng Feng <kai.heng.feng@canonical.com>

    commit f73bbf639b32acb6b409e188fdde5644b301978f upstream.

    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>
    Acked-by: Hui Wang <hui.wang@canonical.com>
    Cc: <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20200914070231.13192-1-kai.heng.feng@canonical.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/pci/hda/patch_realtek.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- a/sound/pci/hda/patch_realtek.c
    +++ b/sound/pci/hda/patch_realtek.c
    @@ -6036,6 +6036,7 @@ static void alc_fixup_thinkpad_acpi(stru
    #include "hp_x360_helper.c"

    enum {
    + ALC269_FIXUP_GPIO2,
    ALC269_FIXUP_SONY_VAIO,
    ALC275_FIXUP_SONY_VAIO_GPIO2,
    ALC269_FIXUP_DELL_M101Z,
    @@ -6217,6 +6218,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[]) {
    @@ -7036,6 +7041,8 @@ static const struct hda_fixup alc269_fix
    [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,

    \
     
     \ /
      Last update: 2020-09-29 13:46    [W:4.056 / U:0.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site