kernel: modules: break-out WM8960 codec module

Package codec module for WM8960 in its own package to be used by more
than one target.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2023-12-11 00:24:40 +00:00
parent 4b82a20e77
commit 25ddc6e437
2 changed files with 17 additions and 6 deletions

View File

@@ -254,6 +254,18 @@ endef
$(eval $(call KernelPackage,sound-soc-imx-sgtl5000))
define KernelPackage/sound-soc-wm8960
TITLE:=SoC WM8960 codec support
KCONFIG:=CONFIG_SND_SOC_WM8960
FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
DEPENDS:=+kmod-sound-soc-core +kmod-i2c-core +kmod-regmap-i2c
AUTOLOAD:=$(call AutoProbe,snd-soc-wm8960)
$(call AddDepends/sound)
endef
$(eval $(call KernelPackage,sound-soc-wm8960))
define KernelPackage/sound-soc-spdif
TITLE:=SoC S/PDIF codec support
KCONFIG:=CONFIG_SND_SOC_SPDIF