X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ed4ac39c98380530535a930249fe7849dfe9a866..4e7ffa2545fbd0158d71e27ad313e0a5ee3f39b3:/target/linux/xburst/modules.mk diff --git a/target/linux/xburst/modules.mk b/target/linux/xburst/modules.mk index 84dbb7c42..bb8d1f59c 100644 --- a/target/linux/xburst/modules.mk +++ b/target/linux/xburst/modules.mk @@ -6,32 +6,43 @@ 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.$(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-i2s) + $(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_JZCODEC - FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jzcodec.$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,40,snd-soc-jzcodec) + 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 + KCONFIG:=CONFIG_SND_SOC_JZCODEC CONFIG_SND_SOC_JZ4740_CODEC + 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).$(LINUX_KMOD_SUFFIX) - AUTOLOAD:=$(call AutoLoad,45,snd-soc-$(3)) + FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-$(3).ko + AUTOLOAD:=$(call AutoLoad,65,snd-soc-$(3)) endef -define KernelPackage/sound-soc-qi_lb60 +define KernelPackage/sound-soc-qilb60 $(call KernelPackage/sound-soc-xburst/default,QI NanoNote,QI_LB60,qi-lb60,qi_lb60) endef @@ -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-qi_lb60)) +$(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))