ALSA: hda/conexant: Add quirk for mute LED control on HP ZBook G5
authorTakashi Iwai <tiwai@suse.de>
Sat, 6 Mar 2021 09:50:18 +0000 (10:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:26 +0000 (17:06 +0100)
commit064ac8ed90a3f100f46b1c200da4122486609ff5
treed417f267bef995d1657866b0a4c1b56e1b722d35
parent4dc34571e973d5c8caffd4d398ab1d11c5b3ac91
ALSA: hda/conexant: Add quirk for mute LED control on HP ZBook G5

commit 56b26497bb4b7ff970612dc25a8a008c34463f7b upstream.

The mute and mic-mute LEDs on HP ZBook Studio G5 are controlled via
GPIO bits 0x10 and 0x20, respectively, and we need the extra setup for
those.

As the similar code is already present for other HP models but with
different GPIO pins, this patch factors out the common helper code and
applies those GPIO values for each model.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=211893
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210306095018.11746-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_conexant.c