2
0

modules.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. SOUND_MENU:=Sound Support
  2. define KernelPackage/sound-soc-jz4740
  3. SUBMENU:=$(SOUND_MENU)
  4. DEPENDS:=kmod-sound-soc-core @TARGET_xburst @BROKEN
  5. TITLE:=JZ4740 SoC sound support
  6. KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S
  7. FILES:= \
  8. $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740.ko \
  9. $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740-i2s.ko
  10. AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740 snd-soc-jz4740-i2s)
  11. endef
  12. define KernelPackage/sound-soc-jz4740-codec
  13. SUBMENU:=$(SOUND_MENU)
  14. DEPENDS:=kmod-sound-soc-core @TARGET_xburst @BROKEN
  15. TITLE:=JZ4740 SoC internal codec support
  16. KCONFIG:=CONFIG_SND_SOC_JZ4740_CODEC
  17. FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jz4740-codec.ko
  18. AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740-codec)
  19. endef
  20. define KernelPackage/sound-soc-xburst/default
  21. SUBMENU:=$(SOUND_MENU)
  22. DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jz4740-codec @TARGET_xburst_$(if $(4),$(4),$(3)) @BROKEN
  23. TITLE:=$(1) sound support
  24. KCONFIG:=CONFIG_SND_JZ4740_SOC_$(2)
  25. FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-$(3).ko
  26. AUTOLOAD:=$(call AutoLoad,65,snd-soc-$(3))
  27. endef
  28. define KernelPackage/sound-soc-qilb60
  29. $(call KernelPackage/sound-soc-xburst/default,QI NanoNote,QI_LB60,qi-lb60,qi_lb60)
  30. endef
  31. $(eval $(call KernelPackage,sound-soc-jz4740))
  32. $(eval $(call KernelPackage,sound-soc-jz4740-codec))
  33. $(eval $(call KernelPackage,sound-soc-qilb60))