summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-06-18 13:08:39 +0200
committerTakashi Iwai <tiwai@suse.de>2020-06-18 13:23:58 +0200
commit929f718cb3901ad50f4bc9ddbca73b03345cca48 (patch)
treeaa79d62890f70c1376f91cf6251a40fc5702bf99 /sound/pci/hda/patch_sigmatel.c
parentALSA: hda/realtek: Use the new vmaster mute LED helper (diff)
downloadlinux-929f718cb3901ad50f4bc9ddbca73b03345cca48.tar.xz
linux-929f718cb3901ad50f4bc9ddbca73b03345cca48.zip
ALSA: hda/conexant: Use the new vmaster mute LED helper
Convert the mute LED handling in Conexant 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). Also the assignment of the default vmaster hook is moved at a later point after the mute hook is set up. This assures no nested hook. Finally, since we enable the mute-LED kcontrols always in the helper side, the extra vmaster_mute_enum flag set up is dropped. Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Link: https://lore.kernel.org/r/20200618110842.27238-11-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
0 files changed, 0 insertions, 0 deletions