]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: hda: generic: Add vmaster mute LED helper
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:08:37 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:23:38 +0000 (13:23 +0200)
commit15509b6344726de22bdbfff88b65341dd0dd33af
tree52106f9e882474becd5c0f5ecdcf6ed46d3a6f8f
parentfe1a162191a59cbfd3f917e92cdb2d5de996a8a0
ALSA: hda: generic: Add vmaster mute LED helper

Like mic-mute LED handling, add a new helper to deal with the master
mute LED with LED classdev.  Unlike the mic-mute case, the playback
master mute is hooked on vmaster, and we suppose no nested hooks
allowed there.

The classdev creation code is factored out to a common function that
is called from both mute and mic-mute LED helpers.

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