developer | 2e0bf8a | 2023-12-14 11:41:49 +0800 | [diff] [blame] | 1 | From 25ddc6e4372ab20c7d2fa45b98b4288bcad932ec Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Golle <daniel@makrotopia.org> |
| 3 | Date: Mon, 11 Dec 2023 00:24:40 +0000 |
| 4 | Subject: [PATCH 1/2] kernel: modules: break-out WM8960 codec module |
| 5 | |
| 6 | Package codec module for WM8960 in its own package to be used by more |
| 7 | than one target. |
| 8 | |
| 9 | Signed-off-by: Daniel Golle <daniel@makrotopia.org> |
| 10 | --- |
| 11 | package/kernel/linux/modules/sound.mk | 12 ++++++++++++ |
| 12 | 1 file changed, 12 insertions(+) |
| 13 | |
| 14 | diff --git a/package/kernel/linux/modules/sound.mk b/package/kernel/linux/modules/sound.mk |
| 15 | index 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 | -- |
| 38 | 2.18.0 |
| 39 | |