ALSA: hda/realtek - Add LED class support for micmute LED
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 30 Apr 2020 13:52:07 +0000 (21:52 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Apr 2020 17:20:25 +0000 (19:20 +0200)
commit87dc36482cab3a4ea34f203fc3f4da35712eb783
treed6bf0313b264ed8db8907dfb0681d4769d10fb9d
parent3e0650ab26e2010ee312311612e40e076ed1feca
ALSA: hda/realtek - Add LED class support for micmute LED

Currently DMIC controls micmute LED via "audio mute LED trigger".

However, unlike Dell and Lenovo platforms, HP platforms don't provide a
way to control micmute LED via ACPI, it's controlled by HDA codec
instead.

So let's register an LED class for micmute so other subsystems like DMIC
can facilitate the codec-controlled LED.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200430135209.14703-1-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c