kernel: add kmod-ledtrig-audio
authorTony Ambardar <itugrok@yahoo.com>
Wed, 17 Mar 2021 11:56:23 +0000 (04:56 -0700)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 19 Mar 2021 14:02:47 +0000 (14:02 +0000)
This allows LEDs to be controlled by audio drivers.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/kernel/linux/modules/leds.mk

index 2e5a56df1a69d11b996c2c6f2796c1fab274d55b..4dde833664b32bcfccc5eabaf20460b498a614a5 100644 (file)
@@ -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