]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda/realtek: Use the new vmaster mute LED helper
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:08:38 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Jun 2020 11:23:49 +0000 (13:23 +0200)
commit8d3d1ece311837591341544e458b2dd9628fe6e0
tree39172249b58dbee0a33f6f5226c76b0e73dfcb57
parent15509b6344726de22bdbfff88b65341dd0dd33af
ALSA: hda/realtek: Use the new vmaster mute LED helper

Convert the mute LED handling in Realtek codec to the new vmaster mute
helper.  A point to be cautiously handled is that the value passed to
the callback is inverted; the vmaster passes "enabled" (0 = mute),
while LED classdev passes "brightness" (1 = mute).

The code in Thinkpad helper is also converted.   In that case, just
call the new function and remove the open-code.

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