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_realtek.c | |
parent | ALSA: control - add generic LED trigger module as the new control layer (diff) | |
download | wireguard-linux-e65bf99718b538c2f34e9444dfe1087789b58f94.tar.xz wireguard-linux-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_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 316b9b4ccb32..2c35d2df09d6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -292,7 +292,7 @@ static void alc_fixup_gpio4(struct hda_codec *codec, static void alc_fixup_micmute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) { - if (action == HDA_FIXUP_ACT_PROBE) + if (action == HDA_FIXUP_ACT_PRE_PROBE) snd_hda_gen_add_micmute_led_cdev(codec, NULL); } |