summaryrefslogtreecommitdiff
path: root/target/linux/xburst/modules.mk
blob: bb8d1f59c7ee0bdb969cd3cf9cd0c190d3cd1572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61


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
  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

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
  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-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
  AUTOLOAD:=$(call AutoLoad,65,snd-soc-$(3))
endef

define KernelPackage/sound-soc-qilb60
$(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-jz4740-codec))
$(eval $(call KernelPackage,sound-soc-qilb60))
$(eval $(call KernelPackage,sound-soc-n516))
$(eval $(call KernelPackage,sound-soc-n526))