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)
committerTakashi Iwai <tiwai@suse.de>
Sat, 6 Mar 2021 09:51:14 +0000 (10:51 +0100)
commit56b26497bb4b7ff970612dc25a8a008c34463f7b
treeae832d43fde40b6e94000bd0592f0c4ee6d63d20
parent06abcb18b3a021ba1a3f2020cbefb3ed04e59e72
ALSA: hda/conexant: Add quirk for mute LED control on HP ZBook G5

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>
sound/pci/hda/patch_conexant.c