From ad11fc8c236fca5283ed500d87504543f2768312 Mon Sep 17 00:00:00 2001 From: Tony Ambardar Date: Wed, 17 Mar 2021 04:56:23 -0700 Subject: [PATCH] kernel: add kmod-ledtrig-audio This allows LEDs to be controlled by audio drivers. Signed-off-by: Tony Ambardar --- package/kernel/linux/modules/leds.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 2e5a56df1a..4dde833664 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -38,6 +38,21 @@ endef $(eval $(call KernelPackage,ledtrig-activity)) +define KernelPackage/ledtrig-audio + SUBMENU:=$(LEDS_MENU) + TITLE:=LED Audio Mute Trigger + KCONFIG:=CONFIG_LEDS_TRIGGER_AUDIO + FILES:=$(LED_TRIGGER_DIR)/ledtrig-audio.ko + AUTOLOAD:=$(call AutoLoad,50,ledtrig-audio) +endef + +define KernelPackage/ledtrig-audio/description + Kernel module that allows LEDs to be controlled by audio drivers + to follow audio mute and mic-mute changes. +endef + +$(eval $(call KernelPackage,ledtrig-audio)) + define KernelPackage/ledtrig-gpio SUBMENU:=$(LEDS_MENU) TITLE:=LED GPIO Trigger -- 2.30.2