diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-03-17 18:29:43 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-03-30 15:35:15 +0200 |
commit | e65bf99718b538c2f34e9444dfe1087789b58f94 (patch) | |
tree | d738d596ea75f8350b503dd9212c1cc4801826be /sound/pci/hda/patch_ca0132.c | |
parent | 22d8de62f11b287b279f1d4473a78c7d5e53e7bc (diff) | |
download | linux-stable-e65bf99718b538c2f34e9444dfe1087789b58f94.tar.gz linux-stable-e65bf99718b538c2f34e9444dfe1087789b58f94.tar.bz2 linux-stable-e65bf99718b538c2f34e9444dfe1087789b58f94.zip |
ALSA: HDA - remove the custom implementation for the audio LED trigger
With the new snd-ctl-led module, we have a generic way
to trigger audio LEDs based on the sound control changes.
Remove the custom implementation from the HDA driver.
Move the LED initialization before snd_hda_gen_parse_auto_config()
call in all drivers to create marked controls there.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210317172945.842280-5-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index b2b620f6c832..49b4fdd2feab 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -7041,11 +7041,11 @@ static int ca0132_build_controls(struct hda_codec *codec) spec->tlv); snd_hda_add_vmaster(codec, "Master Playback Volume", spec->tlv, ca0132_alt_follower_pfxs, - "Playback Volume"); + "Playback Volume", 0); err = __snd_hda_add_vmaster(codec, "Master Playback Switch", NULL, ca0132_alt_follower_pfxs, "Playback Switch", - true, &spec->vmaster_mute.sw_kctl); + true, 0, &spec->vmaster_mute.sw_kctl); if (err < 0) return err; } |