[openwrt/openwrt] kernel: add kmod-ledtrig-audio

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 19 14:03:01 GMT 2021


ldir pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ad11fc8c236fca5283ed500d87504543f2768312

commit ad11fc8c236fca5283ed500d87504543f2768312
Author: Tony Ambardar <itugrok at yahoo.com>
AuthorDate: Wed Mar 17 04:56:23 2021 -0700

    kernel: add kmod-ledtrig-audio
    
    This allows LEDs to be controlled by audio drivers.
    
    Signed-off-by: Tony Ambardar <itugrok at yahoo.com>
---
 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



More information about the lede-commits mailing list