aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/xburst/modules.mk
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-03-11 02:00:59 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-03-11 02:00:59 +0000
commit256f938e5a93c219ee8301bf6da615a37b50bfc6 (patch)
treedd098644dd1362ad3e043bcb4519c205d602e2c1 /target/linux/xburst/modules.mk
parent371f987651889e84a1e1fe920eb0694059214eef (diff)
downloadupstream-256f938e5a93c219ee8301bf6da615a37b50bfc6.tar.gz
upstream-256f938e5a93c219ee8301bf6da615a37b50bfc6.tar.bz2
upstream-256f938e5a93c219ee8301bf6da615a37b50bfc6.zip
Add kernel sound packages
SVN-Revision: 20132
Diffstat (limited to 'target/linux/xburst/modules.mk')
-rw-r--r--target/linux/xburst/modules.mk53
1 files changed, 49 insertions, 4 deletions
diff --git a/target/linux/xburst/modules.mk b/target/linux/xburst/modules.mk
index c8476fe51f..6ad4b87aed 100644
--- a/target/linux/xburst/modules.mk
+++ b/target/linux/xburst/modules.mk
@@ -1,4 +1,49 @@
-ifeq ($(CONFIG_TARGET_xburst),y)
- SOUNDCORE_FILES =
- SOUNDCORE_LOAD =
-endif
+
+
+SOUND_MENU:=Sound Support
+
+define KernelPackage/sound-soc-jz4740
+ SUBMENU:=$(SOUND_MENU)
+ DEPENDS:=kmod-sound-soc-core @TARGET_xburst
+ TITLE:=JZ4740 SoC sound support
+ KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S @TARGET_xburst
+ FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740-i2s.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,40,snd-soc-jz4740 snd-soc-jz4740-pcm)
+endef
+
+define KernelPackage/sound-soc-jzcodec
+ SUBMENU:=$(SOUND_MENU)
+ DEPENDS:=kmod-sound-soc-core @TARGET_xburst
+ TITLE:=JZ4740 SoC internal codec support
+ KCONFIG:=CONFIG_SND_SOC_JZCODEC
+ FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jzcodec.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,40,snd-soc-jzcodec)
+endef
+
+define KernelPackage/sound-soc-xburst/default
+ SUBMENU:=$(SOUND_MENU)
+ DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jzcodec @TARGET_xburst_$(if $(4),$(4),$(3))
+ TITLE:=$(1) sound support
+ KCONFIG:=CONFIG_SND_JZ4740_SOC_$(2)
+ FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-$(3).$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,45,snd-soc-$(3))
+endef
+
+define KernelPackage/sound-soc-qi_lb60
+$(call KernelPackage/sound-soc-xburst/default,QI NanoNote,QI_LB60,qi-lb60,qi_lb60)
+endef
+
+define KernelPackage/sound-soc-n516
+$(call KernelPackage/sound-soc-xburst/default,Hanvon N516,N516,n516)
+endef
+
+define KernelPackage/sound-soc-n526
+$(call KernelPackage/sound-soc-xburst/default,Hanvon N526,N526,n526)
+endef
+
+$(eval $(call KernelPackage,sound-soc-jz4740))
+$(eval $(call KernelPackage,sound-soc-jzcodec))
+$(eval $(call KernelPackage,sound-soc-qi_lb60))
+$(eval $(call KernelPackage,sound-soc-n516))
+$(eval $(call KernelPackage,sound-soc-n526))