mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 03:40:52 +04:00
kernel: sound: add support for Airoha AN7581 with Wolfson Audio WM8960
Support for sound on Airoha AN7581 is currently enabled as built-in driver in the Airoha kernel default config. But the majority of Airoha-based boards don't need sound support. Thus sound support should be optional. Follow the similar MediaTek MT7986 example and add kmod packages for the AN7581 SoC with the Wolfson Audio WM8960 codec. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Link: https://github.com/openwrt/openwrt/pull/24266 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
1 parent
49d2296988
commit
7aaf3cc208
1 file changed
+34
@@ -270,6 +270,40 @@ endef
|
||||
$(eval $(call KernelPackage,sound-soc-mt7986-wm8960))
|
||||
|
||||
|
||||
define KernelPackage/sound-soc-an7581
|
||||
TITLE:=Airoha AN7581 audio support
|
||||
KCONFIG:=CONFIG_SND_SOC_AN7581
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/sound/soc/mediatek/common/snd-soc-mtk-common.ko \
|
||||
$(LINUX_DIR)/sound/soc/mediatek/an7581/snd-soc-an7581-afe.ko
|
||||
AUTOLOAD:=$(call AutoLoad,56,snd-soc-mtk-common snd-soc-an7581-afe)
|
||||
DEPENDS:=@TARGET_airoha_an7581 +kmod-sound-soc-core
|
||||
$(call AddDepends/sound)
|
||||
endef
|
||||
|
||||
define KernelPackage/sound-soc-an7581/description
|
||||
Support for audio on systems using the Airoha AN7581 SoC.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,sound-soc-an7581))
|
||||
|
||||
|
||||
define KernelPackage/sound-soc-an7581-wm8960
|
||||
TITLE:=Airoha AN7581 audio support (Wolfson Audio WM8960 codec)
|
||||
KCONFIG:=CONFIG_SND_SOC_AN7581_WM8960
|
||||
FILES:=$(LINUX_DIR)/sound/soc/mediatek/an7581/an7581-wm8960.ko
|
||||
AUTOLOAD:=$(call AutoLoad,57,an7581-wm8960)
|
||||
DEPENDS:=@TARGET_airoha_an7581 +kmod-sound-soc-wm8960 +kmod-sound-soc-an7581
|
||||
$(call AddDepends/sound)
|
||||
endef
|
||||
|
||||
define KernelPackage/sound-soc-an7581-wm8960/description
|
||||
Support for use of the Wolfson Audio WM8960 codec with the Airoha AN7581 SoC.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,sound-soc-an7581-wm8960))
|
||||
|
||||
|
||||
define KernelPackage/sound-soc-imx-sgtl5000
|
||||
TITLE:=IMX SoC support for SGTL5000
|
||||
KCONFIG:=CONFIG_SND_SOC_IMX_SGTL5000
|
||||
|
||||
Reference in new issue
Block a user