diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-08-04 13:31:45 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-08-04 13:31:45 +0000 |
commit | 75a7e3e55a0b2d2c0206d48eb17c3356abbf0402 (patch) | |
tree | 0949924311a9dfec6d8be4935a4a560035f804c1 /target/linux/xburst | |
parent | 8ea976509c6c0cbc88c266eeabe163acd11990a8 (diff) | |
download | mtk-20170518-75a7e3e55a0b2d2c0206d48eb17c3356abbf0402.zip mtk-20170518-75a7e3e55a0b2d2c0206d48eb17c3356abbf0402.tar.gz mtk-20170518-75a7e3e55a0b2d2c0206d48eb17c3356abbf0402.tar.bz2 |
Adjust codec driver module name for 2.6.35
SVN-Revision: 22483
Diffstat (limited to 'target/linux/xburst')
-rw-r--r-- | target/linux/xburst/config-2.6.35 | 1 | ||||
-rw-r--r-- | target/linux/xburst/modules.mk | 19 | ||||
-rw-r--r-- | target/linux/xburst/n516/target.mk | 2 | ||||
-rw-r--r-- | target/linux/xburst/n526/target.mk | 2 | ||||
-rw-r--r-- | target/linux/xburst/qi_lb60/target.mk | 2 |
5 files changed, 18 insertions, 8 deletions
diff --git a/target/linux/xburst/config-2.6.35 b/target/linux/xburst/config-2.6.35 index 19805e0..507468f 100644 --- a/target/linux/xburst/config-2.6.35 +++ b/target/linux/xburst/config-2.6.35 @@ -295,7 +295,6 @@ CONFIG_SCSI_MOD=y # CONFIG_SIBYTE_SENTOSA is not set # CONFIG_SIBYTE_SWARM is not set # CONFIG_SND_SOC_ALL_CODECS is not set -# CONFIG_SND_SOC_JZCODEC is not set # CONFIG_SND_SOC_JZ4740 is not set # CONFIG_SND_JZ4740_SOC_N516 is not set # CONFIG_SND_JZ4740_SOC_N526 is not set diff --git a/target/linux/xburst/modules.mk b/target/linux/xburst/modules.mk index 104ad22..bb8d1f5 100644 --- a/target/linux/xburst/modules.mk +++ b/target/linux/xburst/modules.mk @@ -6,14 +6,24 @@ 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 + KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S FILES:= \ $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740.ko \ $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740-i2s.ko AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740 snd-soc-jz4740-i2s) endef -define KernelPackage/sound-soc-jzcodec +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) +define KernelPackage/sound-soc-jz4740-codec + SUBMENU:=$(SOUND_MENU) + DEPENDS:=kmod-sound-soc-core @TARGET_xburst + TITLE:=JZ4740 SoC internal codec support + KCONFIG:=CONFIG_SND_SOC_JZ4740_CODEC + FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jz4740-codec.ko + AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740-codec) +endef +else +define KernelPackage/sound-soc-jz4740-codec SUBMENU:=$(SOUND_MENU) DEPENDS:=kmod-sound-soc-core @TARGET_xburst TITLE:=JZ4740 SoC internal codec support @@ -21,10 +31,11 @@ define KernelPackage/sound-soc-jzcodec FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jzcodec.ko AUTOLOAD:=$(call AutoLoad,60,snd-soc-jzcodec) endef +endif define KernelPackage/sound-soc-xburst/default SUBMENU:=$(SOUND_MENU) - DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jzcodec @TARGET_xburst_$(if $(4),$(4),$(3)) + DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jz4740-codec @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).ko @@ -44,7 +55,7 @@ $(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-jz4740-codec)) $(eval $(call KernelPackage,sound-soc-qilb60)) $(eval $(call KernelPackage,sound-soc-n516)) $(eval $(call KernelPackage,sound-soc-n526)) diff --git a/target/linux/xburst/n516/target.mk b/target/linux/xburst/n516/target.mk index b265d9a..4035af2 100644 --- a/target/linux/xburst/n516/target.mk +++ b/target/linux/xburst/n516/target.mk @@ -3,6 +3,6 @@ DEFAULT_PACKAGES += \ kmod-sound-core \ kmod-sound-soc-core \ kmod-sound-soc-jz4740 \ - kmod-sound-soc-jzcodec \ + kmod-sound-soc-jz4740-codec \ kmod-sound-soc-n516 \ diff --git a/target/linux/xburst/n526/target.mk b/target/linux/xburst/n526/target.mk index afff49c..e7bcc77 100644 --- a/target/linux/xburst/n526/target.mk +++ b/target/linux/xburst/n526/target.mk @@ -3,5 +3,5 @@ DEFAULT_PACKAGES += \ kmod-sound-core \ kmod-sound-soc-core \ kmod-sound-soc-jz4740 \ - kmod-sound-soc-jzcodec \ + kmod-sound-soc-jz4740-codec \ kmod-sound-soc-n516 \ diff --git a/target/linux/xburst/qi_lb60/target.mk b/target/linux/xburst/qi_lb60/target.mk index 0b2f578..7477225 100644 --- a/target/linux/xburst/qi_lb60/target.mk +++ b/target/linux/xburst/qi_lb60/target.mk @@ -3,6 +3,6 @@ DEFAULT_PACKAGES += \ kmod-sound-core \ kmod-sound-soc-core \ kmod-sound-soc-jz4740 \ - kmod-sound-soc-jzcodec \ + kmod-sound-soc-jz4740-codec \ kmod-sound-soc-qilb60 \ |