[kernel] add lm92 kernel module
[openwrt/svn-archive/archive.git] / package / kernel / modules / sound.mk
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 SOUND_MENU:=Sound Support
9
10 # allow targets to override the soundcore stuff
11 SOUNDCORE_LOAD ?= \
12 soundcore \
13 snd \
14 snd-page-alloc \
15 snd-hwdep \
16 snd-seq-device \
17 snd-rawmidi \
18 snd-timer \
19 snd-pcm \
20 snd-mixer-oss \
21 snd-pcm-oss
22
23 SOUNDCORE_FILES ?= \
24 $(LINUX_DIR)/sound/soundcore.ko \
25 $(LINUX_DIR)/sound/core/snd.ko \
26 $(LINUX_DIR)/sound/core/snd-page-alloc.ko \
27 $(LINUX_DIR)/sound/core/snd-hwdep.ko \
28 $(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \
29 $(LINUX_DIR)/sound/core/snd-rawmidi.ko \
30 $(LINUX_DIR)/sound/core/snd-timer.ko \
31 $(LINUX_DIR)/sound/core/snd-pcm.ko \
32 $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
33 $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
34
35 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.3.0)),1)
36 SOUNDCORE_LOAD += \
37 snd-compress
38
39 SOUNDCORE_FILES += \
40 $(LINUX_DIR)/sound/core/snd-compress.ko
41 endif
42
43 define KernelPackage/sound-core
44 SUBMENU:=$(SOUND_MENU)
45 TITLE:=Sound support
46 DEPENDS:=@AUDIO_SUPPORT
47 KCONFIG:= \
48 CONFIG_SOUND \
49 CONFIG_SND \
50 CONFIG_SND_HWDEP \
51 CONFIG_SND_RAWMIDI \
52 CONFIG_SND_TIMER \
53 CONFIG_SND_PCM \
54 CONFIG_SND_SEQUENCER \
55 CONFIG_SND_VIRMIDI \
56 CONFIG_SND_SEQ_DUMMY \
57 CONFIG_SND_SEQUENCER_OSS=y \
58 CONFIG_HOSTAUDIO \
59 CONFIG_SND_PCM_OSS \
60 CONFIG_SND_MIXER_OSS \
61 CONFIG_SOUND_OSS_CORE_PRECLAIM=y \
62 CONFIG_SND_COMPRESS_OFFLOAD
63 FILES:=$(SOUNDCORE_FILES)
64 AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
65 $(call AddDepends/input)
66 endef
67
68 define KernelPackage/sound-core/uml
69 FILES:= \
70 $(LINUX_DIR)/sound/soundcore.ko \
71 $(LINUX_DIR)/arch/um/drivers/hostaudio.ko
72 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
73 endef
74
75 define KernelPackage/sound-core/description
76 Kernel modules for sound support
77 endef
78
79 $(eval $(call KernelPackage,sound-core))
80
81
82 define AddDepends/sound
83 SUBMENU:=$(SOUND_MENU)
84 DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
85 endef
86
87
88 define KernelPackage/ac97
89 TITLE:=ac97 controller
90 KCONFIG:=CONFIG_SND_AC97_CODEC
91 FILES:= \
92 $(LINUX_DIR)/sound/ac97_bus.ko \
93 $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko
94 AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec)
95 $(call AddDepends/sound)
96 endef
97
98 define KernelPackage/ac97/description
99 The ac97 controller
100 endef
101
102 $(eval $(call KernelPackage,ac97))
103
104
105 define KernelPackage/sound-seq
106 TITLE:=Sequencer support
107 FILES:= \
108 $(LINUX_DIR)/sound/core/seq/snd-seq.ko \
109 $(LINUX_DIR)/sound/core/seq/snd-seq-midi-event.ko \
110 $(LINUX_DIR)/sound/core/seq/snd-seq-midi.ko
111 AUTOLOAD:=$(call AutoLoad,35,snd-seq snd-seq-midi-event snd-seq-midi)
112 $(call AddDepends/sound)
113 endef
114
115 define KernelPackage/sound-seq/description
116 Kernel modules for sequencer support
117 endef
118
119 $(eval $(call KernelPackage,sound-seq))
120
121
122 define KernelPackage/sound-i8x0
123 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
124 DEPENDS:=+kmod-ac97
125 KCONFIG:=CONFIG_SND_INTEL8X0
126 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
127 AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
128 $(call AddDepends/sound)
129 endef
130
131 define KernelPackage/sound-i8x0/description
132 support for the integrated AC97 sound device on motherboards
133 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
134 the M5455 Audio Controller.
135 endef
136
137 $(eval $(call KernelPackage,sound-i8x0))
138
139
140 define KernelPackage/sound-cs5535audio
141 TITLE:=CS5535 PCI Controller
142 DEPENDS:=+kmod-ac97
143 KCONFIG:=CONFIG_SND_CS5535AUDIO
144 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
145 AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
146 $(call AddDepends/sound)
147 endef
148
149 define KernelPackage/sound-cs5535audio/description
150 support for the integrated AC97 sound device on olpc
151 endef
152
153 $(eval $(call KernelPackage,sound-cs5535audio))
154
155
156 define KernelPackage/sound-soc-core
157 TITLE:=SoC sound support
158 DEPENDS:=+kmod-regmap
159 KCONFIG:= \
160 CONFIG_SND_SOC \
161 CONFIG_SND_SOC_DMAENGINE_PCM=y \
162 CONFIG_SND_SOC_ALL_CODECS=n
163 FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
164 AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
165 $(call AddDepends/sound)
166 endef
167
168 $(eval $(call KernelPackage,sound-soc-core))
169
170
171 define KernelPackage/sound-soc-ac97
172 TITLE:=AC97 Codec support
173 KCONFIG:=CONFIG_SND_SOC_AC97_CODEC
174 FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-ac97.ko
175 AUTOLOAD:=$(call AutoLoad,57,snd-soc-ac97)
176 DEPENDS:=+kmod-ac97 +kmod-sound-soc-core
177 $(call AddDepends/sound)
178 endef
179
180 $(eval $(call KernelPackage,sound-soc-ac97))
181
182
183 define KernelPackage/sound-soc-gw_avila
184 TITLE:=Gateworks Avila SoC sound support
185 KCONFIG:= \
186 CONFIG_SND_GW_AVILA_SOC \
187 CONFIG_SND_GW_AVILA_SOC_PCM \
188 CONFIG_SND_GW_AVILA_SOC_HSS
189 FILES:= \
190 $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
191 $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila.ko \
192 $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-pcm.ko \
193 $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-hss.ko
194 AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-gw-avila snd-soc-gw-avila-pcm snd-soc-gw-avila-hss)
195 DEPENDS:=@TARGET_ixp4xx +kmod-sound-soc-core
196 $(call AddDepends/sound)
197 endef
198
199 $(eval $(call KernelPackage,sound-soc-gw_avila))
200
201
202 define KernelPackage/pcspkr
203 DEPENDS:=@!TARGET_x86
204 TITLE:=PC speaker support
205 KCONFIG:= \
206 CONFIG_INPUT_PCSPKR \
207 CONFIG_SND_PCSP
208 FILES:= \
209 $(LINUX_DIR)/drivers/input/misc/pcspkr.ko \
210 $(LINUX_DIR)/sound/drivers/pcsp/snd-pcsp.ko
211 AUTOLOAD:=$(call AutoLoad,50,pcspkr snd-pcsp)
212 $(call AddDepends/input)
213 $(call AddDepends/sound)
214 endef
215
216 define KernelPackage/pcspkr/description
217 This enables sounds (tones) through the pc speaker
218 endef
219
220 $(eval $(call KernelPackage,pcspkr))