Ticket #10774: sound.mk

File sound.mk, 9.2 KB (added by rossb@…, 6 years ago)
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8SOUND_MENU:=Sound Support
9
10define KernelPackage/pcspkr
11  SUBMENU:=$(SOUND_MENU)
12  TITLE:=PC speaker support
13  KCONFIG:=CONFIG_INPUT_PCSPKR
14  FILES:=$(LINUX_DIR)/drivers/input/misc/pcspkr.ko
15  AUTOLOAD:=$(call AutoLoad,50,pcspkr)
16endef
17
18define KernelPackage/pcspkr/description
19 This enables sounds (tones) through the pc speaker
20endef
21
22$(eval $(call KernelPackage,pcspkr))
23
24
25# allow targets to override the soundcore stuff
26SOUNDCORE_LOAD ?= \
27        soundcore \
28        snd \
29        snd-page-alloc \
30        snd-hwdep \
31        snd-seq-device \
32        snd-rawmidi \
33        snd-timer \
34        snd-pcm \
35        snd-mixer-oss \
36        snd-pcm-oss
37
38SOUNDCORE_FILES ?= \
39        $(LINUX_DIR)/sound/soundcore.ko \
40        $(LINUX_DIR)/sound/core/snd.ko \
41        $(LINUX_DIR)/sound/core/snd-page-alloc.ko \
42        $(LINUX_DIR)/sound/core/snd-hwdep.ko \
43        $(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \
44        $(LINUX_DIR)/sound/core/snd-rawmidi.ko \
45        $(LINUX_DIR)/sound/core/snd-timer.ko \
46        $(LINUX_DIR)/sound/core/snd-pcm.ko \
47        $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
48        $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
49
50define KernelPackage/sound-core
51  SUBMENU:=$(SOUND_MENU)
52  TITLE:=Sound support
53  DEPENDS:=@AUDIO_SUPPORT
54  KCONFIG:= \
55        CONFIG_SOUND \
56        CONFIG_SND \
57        CONFIG_SND_HWDEP \
58        CONFIG_SND_RAWMIDI \
59        CONFIG_SND_TIMER \
60        CONFIG_SND_PCM \
61        CONFIG_SND_SEQUENCER \
62        CONFIG_SND_VIRMIDI \
63        CONFIG_SND_SEQ_DUMMY \
64        CONFIG_SND_SEQUENCER_OSS=y \
65        CONFIG_HOSTAUDIO \
66        CONFIG_SND_PCM_OSS \
67        CONFIG_SND_MIXER_OSS \
68        CONFIG_SOUND_OSS_CORE_PRECLAIM=y
69  FILES:=$(SOUNDCORE_FILES)
70  AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
71  $(call AddDepends/input)
72endef
73
74define KernelPackage/sound-core/uml
75  FILES:= \
76        $(LINUX_DIR)/sound/soundcore.ko \
77        $(LINUX_DIR)/arch/um/drivers/hostaudio.ko
78  AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
79endef
80
81define KernelPackage/sound-core/description
82 Kernel modules for sound support
83endef
84
85$(eval $(call KernelPackage,sound-core))
86
87
88define AddDepends/sound
89  SUBMENU:=$(SOUND_MENU)
90  DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
91endef
92
93
94define KernelPackage/ac97
95  TITLE:=ac97 controller
96  KCONFIG:=CONFIG_SND_AC97_CODEC
97  FILES:= \
98        $(LINUX_DIR)/sound/ac97_bus.ko \
99        $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko
100  AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec)
101  $(call AddDepends/sound)
102endef
103
104define KernelPackage/ac97/description
105 The ac97 controller
106endef
107
108$(eval $(call KernelPackage,ac97))
109
110
111define KernelPackage/sound-i8x0
112  TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
113  DEPENDS:=+kmod-ac97
114  KCONFIG:=CONFIG_SND_INTEL8X0
115  FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
116  AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
117  $(call AddDepends/sound)
118endef
119
120define KernelPackage/sound-i8x0/description
121 support for the integrated AC97 sound device on motherboards
122 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
123 the M5455 Audio Controller.
124endef
125
126$(eval $(call KernelPackage,sound-i8x0))
127
128
129define KernelPackage/sound-cs5535audio
130  TITLE:=CS5535 PCI Controller
131  DEPENDS:=+kmod-ac97
132  KCONFIG:=CONFIG_SND_CS5535AUDIO
133  FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
134  AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
135  $(call AddDepends/sound)
136endef
137
138define KernelPackage/sound-cs5535audio/description
139 support for the integrated AC97 sound device on olpc
140endef
141
142$(eval $(call KernelPackage,sound-cs5535audio))
143
144define KernelPackage/sound-soc-core
145  TITLE:=SoC sound support
146  KCONFIG:= \
147        CONFIG_SND_SOC \
148        CONFIG_SND_SOC_ALL_CODECS=n
149  FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
150  AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
151  $(call AddDepends/sound)
152endef
153
154$(eval $(call KernelPackage,sound-soc-core))
155
156define KernelPackage/sound-soc-omap
157  TITLE:=OMAP SoC sound support
158  KCONFIG:= \
159        CONFIG_SND_OMAP_SOC
160  FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap.ko
161  AUTOLOAD:=$(call AutoLoad,60,snd-soc-omap)
162  DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-core
163  $(call AddDepends/sound)
164endef
165
166$(eval $(call KernelPackage,sound-soc-omap))
167
168
169define KernelPackage/sound-soc-omap-mcbsp
170  TITLE:=OMAP SoC MCBSP support
171  KCONFIG:= \
172        CONFIG_SND_OMAP_SOC_MCBSP
173  FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap-mcbsp.ko
174  AUTOLOAD:=$(call AutoLoad,61,snd-soc-omap-mcbsp)
175  DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap
176  $(call AddDepends/sound)
177endef
178
179$(eval $(call KernelPackage,sound-soc-omap-mcbsp))
180
181
182define KernelPackage/sound-soc-n810
183  TITLE:=Nokia n810 SoC sound support
184  KCONFIG:= \
185        CONFIG_SND_OMAP_SOC_N810
186  FILES:= \
187        $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
188        $(LINUX_DIR)/sound/soc/omap/snd-soc-n810.ko
189  AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-n810)
190  DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap +kmod-sound-soc-omap-mcbsp
191  $(call AddDepends/sound)
192endef
193
194$(eval $(call KernelPackage,sound-soc-n810))
195
196define KernelPackage/snd-hda-intel
197  TITLE:=Intel HD Audio
198  KCONFIG:=CONFIG_SND_HDA_INTEL \
199           CONFIG_SND_HDA_INPUT_BEEP \
200           CONFIG_SND_HDA_INPUT_JACK
201  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-intel.ko \
202          $(LINUX_DIR)/sound/pci/hda/snd-hda-codec.ko
203  AUTOLOAD:=$(call AutoLoad,65,snd-hda-codec snd-hda-intel)
204  #DEPENDS:=
205  $(call AddDepends/sound)
206endef
207
208define KernelPackage/snd-hda-intel/description
209 Support for Intel "High Definition Audio" (Azalia) and its compatible devices.
210endef
211
212$(eval $(call KernelPackage,snd-hda-intel))
213
214define KernelPackage/snd-hda-codec-realtek
215  TITLE:=Build Realtek HD-audio codec support
216  KCONFIG:=CONFIG_SND_HDA_CODEC_REALTEK
217  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-realtek.ko
218  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-realtek)
219  DEPENDS:=+kmod-snd-hda-intel
220  $(call AddDepends/sound)
221endef
222
223$(eval $(call KernelPackage,snd-hda-codec-realtek))
224
225define KernelPackage/snd-hda-codec-analog
226  TITLE:=Build Analog Device HD-audio codec support
227  KCONFIG:=CONFIG_SND_HDA_CODEC_ANALOG
228  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-analog.ko
229  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-analog)
230  DEPENDS:=+kmod-snd-hda-intel
231  $(call AddDepends/sound)
232endef
233
234$(eval $(call KernelPackage,snd-hda-codec-analog))
235
236define KernelPackage/snd-hda-codec-idt
237  TITLE:=Build IDT/Sigmatel HD-audio codec support
238  KCONFIG:=CONFIG_SND_HDA_CODEC_SIGMATEL
239  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-idt.ko
240  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-idt)
241  DEPENDS:=+kmod-snd-hda-intel
242  $(call AddDepends/sound)
243endef
244
245$(eval $(call KernelPackage,snd-hda-codec-idt))
246
247define KernelPackage/snd-hda-codec-via
248  TITLE:=Build VIA HD-audio codec support
249  KCONFIG:=CONFIG_SND_HDA_CODEC_VIA
250  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-via.ko
251  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-via)
252  DEPENDS:=+kmod-snd-hda-intel
253  $(call AddDepends/sound)
254endef
255
256$(eval $(call KernelPackage,snd-hda-codec-via))
257
258define KernelPackage/snd-hda-codec-hdmi
259  TITLE:=Build HDMI/DisplayPort HD-audio codec support
260  KCONFIG:=CONFIG_SND_HDA_CODEC_HDMI
261  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-hdmi.ko
262  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-hdmi)
263  DEPENDS:=+kmod-snd-hda-intel
264  $(call AddDepends/sound)
265endef
266
267$(eval $(call KernelPackage,snd-hda-codec-hdmi))
268
269define KernelPackage/snd-hda-codec-cirrus
270  TITLE:=Build Cirrus Logic codec support
271  KCONFIG:=CONFIG_SND_HDA_CODEC_CIRRUS
272  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-cirrus.ko
273  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-cirrus)
274  DEPENDS:=+kmod-snd-hda-intel
275  $(call AddDepends/sound)
276endef
277
278$(eval $(call KernelPackage,snd-hda-codec-cirrus))
279
280define KernelPackage/snd-hda-codec-cirrus
281  TITLE:=Build Cirrus Logic codec support
282  KCONFIG:=CONFIG_SND_HDA_CODEC_CIRRUS
283  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-cirrus.ko
284  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-cirrus)
285  DEPENDS:=+kmod-snd-hda-intel
286  $(call AddDepends/sound)
287endef
288
289$(eval $(call KernelPackage,snd-hda-codec-cirrus))
290
291define KernelPackage/snd-hda-codec-conexant
292  TITLE:=Build Conexant HD-audio codec support
293  KCONFIG:=CONFIG_SND_HDA_CODEC_CONEXANT
294  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-conexant.ko
295  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-conexant)
296  DEPENDS:=+kmod-snd-hda-intel
297  $(call AddDepends/sound)
298endef
299
300$(eval $(call KernelPackage,snd-hda-codec-conexant))
301
302define KernelPackage/snd-hda-codec-ca0110
303  TITLE:=Build Creative CA0110-IBG HD-audio codec support
304  KCONFIG:=CONFIG_SND_HDA_CODEC_CA0110
305  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-ca0110.ko
306  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-ca0110)
307  DEPENDS:=+kmod-snd-hda-intel
308  $(call AddDepends/sound)
309endef
310
311$(eval $(call KernelPackage,snd-hda-codec-ca0110))
312
313define KernelPackage/snd-hda-codec-cmedia
314  TITLE:=Build C-Media HD-audio codec support
315  KCONFIG:=CONFIG_SND_HDA_CODEC_CMEDIA
316  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-cmedia.ko
317  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-cmedia)
318  DEPENDS:=+kmod-snd-hda-intel
319  $(call AddDepends/sound)
320endef
321
322$(eval $(call KernelPackage,snd-hda-codec-cmedia))
323
324define KernelPackage/snd-hda-codec-si3054
325  TITLE:=Build Silicon Labs 3054 HD-modem codec support
326  KCONFIG:=CONFIG_SND_HDA_CODEC_SI3054
327  FILES:= $(LINUX_DIR)/sound/pci/hda/snd-hda-codec-si3054.ko
328  AUTOLOAD:=$(call AutoLoad,70,snd-hda-codec-si3054)
329  DEPENDS:=+kmod-snd-hda-intel
330  $(call AddDepends/sound)
331endef
332
333$(eval $(call KernelPackage,snd-hda-codec-si3054))
334