mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ALSA: hda: generic: Remove obsolete call to ledtrig_audio_get
Since 64f67b5240
("leds: trigger: audio: Add an activate callback to
ensure the initial brightness is set") the audio triggers have an
activate callback which sets the LED brightness as soon as the
(default) trigger is bound to the LED device. So we can remove the
call to ledtrig_audio_get.
Positive side effect: We have no code dependency to ledtrig-audio any
longer, therefore, if built as module, it's no longer loaded if not
needed.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/3dc9167d-fb33-43a6-baa6-dbef8b5da7b9@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3787ffdd13
commit
19adbe96d3
@ -3946,7 +3946,6 @@ static int create_mute_led_cdev(struct hda_codec *codec,
|
||||
cdev->max_brightness = 1;
|
||||
cdev->default_trigger = micmute ? "audio-micmute" : "audio-mute";
|
||||
cdev->brightness_set_blocking = callback;
|
||||
cdev->brightness = ledtrig_audio_get(idx);
|
||||
cdev->flags = LED_CORE_SUSPENDRESUME;
|
||||
|
||||
err = led_classdev_register(&codec->core.dev, cdev);
|
||||
|
Loading…
Reference in New Issue
Block a user