target/linux/xburst/modules.mk |
6 | 6 | SUBMENU:=$(SOUND_MENU) |
7 | 7 | DEPENDS:=kmod-sound-soc-core @TARGET_xburst |
8 | 8 | TITLE:=JZ4740 SoC sound support |
9 | | KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S @TARGET_xburst |
| 9 | KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S |
10 | 10 | FILES:= \ |
11 | 11 | $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740.ko \ |
12 | 12 | $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740-i2s.ko |
13 | 13 | AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740 snd-soc-jz4740-i2s) |
14 | 14 | endef |
15 | 15 | |
16 | | define KernelPackage/sound-soc-jzcodec |
| 16 | ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1) |
| 17 | define KernelPackage/sound-soc-jz4740-codec |
| 18 | SUBMENU:=$(SOUND_MENU) |
| 19 | DEPENDS:=kmod-sound-soc-core @TARGET_xburst |
| 20 | TITLE:=JZ4740 SoC internal codec support |
| 21 | KCONFIG:=CONFIG_SND_SOC_JZ4740_CODEC |
| 22 | FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jz4740-codec.ko |
| 23 | AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740-codec) |
| 24 | endef |
| 25 | else |
| 26 | define KernelPackage/sound-soc-jz4740-codec |
17 | 27 | SUBMENU:=$(SOUND_MENU) |
18 | 28 | DEPENDS:=kmod-sound-soc-core @TARGET_xburst |
19 | 29 | TITLE:=JZ4740 SoC internal codec support |
... | ... | |
21 | 31 | FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jzcodec.ko |
22 | 32 | AUTOLOAD:=$(call AutoLoad,60,snd-soc-jzcodec) |
23 | 33 | endef |
| 34 | endif |
24 | 35 | |
25 | 36 | define KernelPackage/sound-soc-xburst/default |
26 | 37 | SUBMENU:=$(SOUND_MENU) |
27 | | DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jzcodec @TARGET_xburst_$(if $(4),$(4),$(3)) |
| 38 | DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jz4740-codec @TARGET_xburst_$(if $(4),$(4),$(3)) |
28 | 39 | TITLE:=$(1) sound support |
29 | 40 | KCONFIG:=CONFIG_SND_JZ4740_SOC_$(2) |
30 | 41 | FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-$(3).ko |
... | ... | |
44 | 55 | endef |
45 | 56 | |
46 | 57 | $(eval $(call KernelPackage,sound-soc-jz4740)) |
47 | | $(eval $(call KernelPackage,sound-soc-jzcodec)) |
| 58 | $(eval $(call KernelPackage,sound-soc-jz4740-codec)) |
48 | 59 | $(eval $(call KernelPackage,sound-soc-qilb60)) |
49 | 60 | $(eval $(call KernelPackage,sound-soc-n516)) |
50 | 61 | $(eval $(call KernelPackage,sound-soc-n526)) |