From: Tony Ambardar Date: Wed, 17 Mar 2021 11:56:23 +0000 (-0700) Subject: kernel: add kmod-ledtrig-audio X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad11fc8c236fca5283ed500d87504543f2768312;p=openwrt%2Fstaging%2Fmkresin.git kernel: add kmod-ledtrig-audio This allows LEDs to be controlled by audio drivers. Signed-off-by: Tony Ambardar --- 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