OSDN Git Service

ALSA: hda/realtek: Convert to cdev-variant of mic-mute LED controls
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:08:32 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:22:50 +0000 (13:22 +0200)
commit8a503555be4647bfa5312db4dd622a357492beb7
tree0f12cb9d5f07c2cfa3e592c239c8f6867a68ebea
parent7cdf8c49b1df0a385db06c4f9a5ba1b16510fdcc
ALSA: hda/realtek: Convert to cdev-variant of mic-mute LED controls

This patch converts the remaining user of
snd_hda_gen_add_micmute_led() in Realtek codec driver into the new
snd_hda_gen_add_micmute_led_cdev().

The Thinkpad helper code is updated accordingly, too.

Also, the usage of snd_hda_gen_fixup_micmute_led() is replaced with
either the local alc_fixup_micmute_led() or the explicit call of
snd_hda_gen_add_micmute_led_cdev() with NULL callback.

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