blob: e778cb61d554dd2dadcf21fae2175073786ecad0 [file] [log] [blame]
developer2e0bf8a2023-12-14 11:41:49 +08001From 25ddc6e4372ab20c7d2fa45b98b4288bcad932ec Mon Sep 17 00:00:00 2001
2From: Daniel Golle <daniel@makrotopia.org>
3Date: Mon, 11 Dec 2023 00:24:40 +0000
4Subject: [PATCH 1/2] kernel: modules: break-out WM8960 codec module
5
6Package codec module for WM8960 in its own package to be used by more
7than one target.
8
9Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10---
11 package/kernel/linux/modules/sound.mk | 12 ++++++++++++
12 1 file changed, 12 insertions(+)
13
14diff --git a/package/kernel/linux/modules/sound.mk b/package/kernel/linux/modules/sound.mk
15index 2bfa146207..62a31bfb11 100644
16--- a/package/kernel/linux/modules/sound.mk
17+++ b/package/kernel/linux/modules/sound.mk
18@@ -254,6 +254,18 @@ endef
19 $(eval $(call KernelPackage,sound-soc-imx-sgtl5000))
20
21
22+define KernelPackage/sound-soc-wm8960
23+ TITLE:=SoC WM8960 codec support
24+ KCONFIG:=CONFIG_SND_SOC_WM8960
25+ FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
26+ DEPENDS:=+kmod-sound-soc-core +kmod-i2c-core +kmod-regmap-i2c
27+ AUTOLOAD:=$(call AutoProbe,snd-soc-wm8960)
28+ $(call AddDepends/sound)
29+endef
30+
31+$(eval $(call KernelPackage,sound-soc-wm8960))
32+
33+
34 define KernelPackage/sound-soc-spdif
35 TITLE:=SoC S/PDIF codec support
36 KCONFIG:=CONFIG_SND_SOC_SPDIF
37--
382.18.0
39