ALSA: hda: generic: Remove obsolete call to ledtrig_audio_get
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 13 Jan 2024 16:08:54 +0000 (17:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jan 2024 11:43:08 +0000 (12:43 +0100)
commit19adbe96d3e3c2188ad5838b936550e073cba54d
tree76bab91ef8ba2a7e92d587a3dad4a5f19b6f12fe
parent3787ffdd13de81ba406e5b42c6c24f823395ba5e
ALSA: hda: generic: Remove obsolete call to ledtrig_audio_get

Since 64f67b5240db ("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>
sound/pci/hda/hda_generic.c