ALSA: hda: generic: Always call led-trigger for mic mute LED
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:08:30 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:22:27 +0000 (13:22 +0200)
commitbf61c42a446f58eb61b7af05e9ff0b79aba348b6
tree47cc23d2b8bebd36a40d624e72b51d10fbd4df14
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
ALSA: hda: generic: Always call led-trigger for mic mute LED

Instead of adding a special hook to trigger the mic-mute LED device,
call it always from the common callback function.  It won't hurt even
if no corresponding led cdev is present.

This is basically a preliminary change for the later patches to
convert the all mic-mute LED handling to LED class cdev.

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