blob: c3dd932f2b918ac3861bcef3646d9c799cd301c5 [file] [log] [blame]
developer62f8ef52023-12-14 11:41:49 +08001From d61b4ecbf109c7f702cafc0307db6b35e92c46b4 Mon Sep 17 00:00:00 2001
2From: Daniel Golle <daniel@makrotopia.org>
3Date: Thu, 28 Sep 2023 19:13:23 +0100
4Subject: [PATCH 2/2] kernel: modules: package MT7986 audio drivers
5
6Packages the audio drivers for the MediaTek MT7986 SoC used with
7Wolfson WM8960 codec.
8
9Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10---
11 package/kernel/linux/modules/sound.mk | 34 +++++++++++++++++++++++++++
12 1 file changed, 34 insertions(+)
13
14diff --git a/package/kernel/linux/modules/sound.mk b/package/kernel/linux/modules/sound.mk
15index 62a31bfb11..623f65ac59 100644
16--- a/package/kernel/linux/modules/sound.mk
17+++ b/package/kernel/linux/modules/sound.mk
18@@ -236,6 +236,40 @@ endef
19 $(eval $(call KernelPackage,sound-soc-imx))
20
21
22+define KernelPackage/sound-soc-mt7986
23+ TITLE:=MediaTek MT7986 Audio support
24+ KCONFIG:=CONFIG_SND_SOC_MT7986 CONFIG_SND_SOC_MT7986_WM8960
25+ FILES:= \
26+ $(LINUX_DIR)/sound/soc/mediatek/common/snd-soc-mtk-common.ko \
27+ $(LINUX_DIR)/sound/soc/mediatek/mt7986/snd-soc-mt7986-afe.ko
28+ AUTOLOAD:=$(call AutoLoad,56,snd-soc-mtk-common snd-soc-mt7986-afe)
29+ DEPENDS:=+kmod-sound-soc-core
30+ $(call AddDepends/sound)
31+endef
32+
33+define KernelPackage/sound-soc-mt7986/description
34+ Support for audio on systems using the MediaTek MT7986 SoC.
35+endef
36+
37+$(eval $(call KernelPackage,sound-soc-mt7986))
38+
39+
40+define KernelPackage/sound-soc-mt7986-wm8960
41+ TITLE:=MediaTek MT7986 Audio support
42+ KCONFIG:=CONFIG_SND_SOC_MT7986_WM8960
43+ FILES:=$(LINUX_DIR)/sound/soc/mediatek/mt7986/mt7986-wm8960.ko
44+ AUTOLOAD:=$(call AutoLoad,57,mt7986-wm8960)
45+ DEPENDS:=+kmod-sound-soc-wm8960 +kmod-sound-soc-mt7986
46+ $(call AddDepends/sound)
47+endef
48+
49+define KernelPackage/sound-soc-mt7986-wm8960/description
50+ Support for use of the Wolfson Audio WM8960 codec with the MediaTek MT7986 SoC.
51+endef
52+
53+$(eval $(call KernelPackage,sound-soc-mt7986-wm8960))
54+
55+
56 define KernelPackage/sound-soc-imx-sgtl5000
57 TITLE:=IMX SoC support for SGTL5000
58 KCONFIG:=CONFIG_SND_SOC_IMX_SGTL5000
59--
602.18.0
61