2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 SOUND_MENU
:=Sound Support
10 # allow targets to override the soundcore stuff
24 $(LINUX_DIR
)/sound
/soundcore.ko \
25 $(LINUX_DIR
)/sound
/core
/snd.ko \
26 $(LINUX_DIR
)/sound
/core
/snd-hwdep.ko \
27 $(LINUX_DIR
)/sound
/core
/snd-seq-device.ko \
28 $(LINUX_DIR
)/sound
/core
/snd-rawmidi.ko \
29 $(LINUX_DIR
)/sound
/core
/snd-timer.ko \
30 $(LINUX_DIR
)/sound
/core
/snd-pcm.ko \
31 $(LINUX_DIR
)/sound
/core
/oss
/snd-mixer-oss.ko \
32 $(LINUX_DIR
)/sound
/core
/oss
/snd-pcm-oss.ko \
33 $(LINUX_DIR
)/sound
/core
/snd-compress.ko
36 $(if
$(CONFIG_SND_DMAENGINE_PCM
),snd-pcm-dmaengine
)
39 $(if
$(CONFIG_SND_DMAENGINE_PCM
),$(LINUX_DIR
)/sound
/core
/snd-pcm-dmaengine.ko
)
41 define KernelPackage
/sound-core
42 SUBMENU
:=$(SOUND_MENU
)
44 DEPENDS
:=@AUDIO_SUPPORT
+kmod-input-core
52 CONFIG_SND_PCM_TIMER
=y \
53 CONFIG_SND_SEQUENCER \
55 CONFIG_SND_SEQ_DUMMY \
56 CONFIG_SND_SEQUENCER_OSS
=y \
59 CONFIG_SND_MIXER_OSS \
60 CONFIG_SOUND_OSS_CORE_PRECLAIM
=y \
61 CONFIG_SND_COMPRESS_OFFLOAD
62 FILES
:=$(SOUNDCORE_FILES
)
63 AUTOLOAD
:=$(call AutoLoad
,30,$(SOUNDCORE_LOAD
))
66 define KernelPackage
/sound-core
/uml
68 $(LINUX_DIR
)/sound
/soundcore.ko \
69 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.ko
70 AUTOLOAD
+=$(call AutoLoad
,30,soundcore hostaudio
)
73 define KernelPackage
/sound-core
/description
74 Kernel modules for sound support
77 $(eval
$(call KernelPackage
,sound-core
))
80 define AddDepends
/sound
81 SUBMENU
:=$(SOUND_MENU
)
82 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
86 define KernelPackage
/ac97
87 TITLE
:=ac97 controller
88 KCONFIG
:=CONFIG_SND_AC97_CODEC
90 $(LINUX_DIR
)/sound
/ac97_bus.ko \
91 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.ko
92 AUTOLOAD
:=$(call AutoLoad
,35,ac97_bus snd-ac97-codec
)
93 $(call AddDepends
/sound
)
96 define KernelPackage
/ac97
/description
100 $(eval
$(call KernelPackage
,ac97
))
103 define KernelPackage
/sound-mpu401
104 TITLE
:=MPU-401 uart driver
105 KCONFIG
:=CONFIG_SND_MPU401_UART
107 $(LINUX_DIR
)/sound
/drivers
/mpu401
/snd-mpu401-uart.ko
108 AUTOLOAD
:=$(call AutoLoad
,35,snd-mpu401-uart
)
109 $(call AddDepends
/sound
)
112 define KernelPackage
/sound-mpu401
/description
113 support for MIDI ports compatible with the Roland MPU-401
114 interface in UART mode.
117 $(eval
$(call KernelPackage
,sound-mpu401
))
120 define KernelPackage
/sound-seq
121 TITLE
:=Sequencer support
123 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq.ko \
124 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi-event.ko \
125 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi.ko
126 AUTOLOAD
:=$(call AutoLoad
,35,snd-seq snd-seq-midi-event snd-seq-midi
)
127 $(call AddDepends
/sound
)
130 define KernelPackage
/sound-seq
/description
131 Kernel modules for sequencer support
134 $(eval
$(call KernelPackage
,sound-seq
))
137 define KernelPackage
/sound-ens1371
138 TITLE
:=(Creative
) Ensoniq AudioPCI
1371
139 KCONFIG
:=CONFIG_SND_ENS1371
140 DEPENDS
:=@PCI_SUPPORT
+kmod-ac97
141 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-ens1371.ko
142 AUTOLOAD
:=$(call AutoLoad
,36,snd-ens1371
)
143 $(call AddDepends
/sound
)
146 define KernelPackage
/sound-ens1371
/description
147 support for
(Creative
) Ensoniq AudioPCI
1371 chips
150 $(eval
$(call KernelPackage
,sound-ens1371
))
153 define KernelPackage
/sound-i8x0
154 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
156 KCONFIG
:=CONFIG_SND_INTEL8X0
157 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-intel8x0.ko
158 AUTOLOAD
:=$(call AutoLoad
,36,snd-intel8x0
)
159 $(call AddDepends
/sound
)
162 define KernelPackage
/sound-i8x0
/description
163 support for the integrated AC97 sound device on motherboards
164 with Intel
/SiS
/nVidia
/AMD chipsets
, or ALi chipsets using
165 the M5455 Audio Controller.
168 $(eval
$(call KernelPackage
,sound-i8x0
))
171 define KernelPackage
/sound-via82xx
172 TITLE
:=VIA
82xx AC97 Controller
173 DEPENDS
:=+kmod-ac97
+kmod-sound-mpu401
174 KCONFIG
:=CONFIG_SND_VIA82XX
175 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-via82xx.ko
176 AUTOLOAD
:=$(call AutoLoad
,36,snd-via82xx
)
177 $(call AddDepends
/sound
)
180 define KernelPackage
/sound-via82xx
/description
181 support for the integrated AC97 sound device on motherboards
185 $(eval
$(call KernelPackage
,sound-via82xx
))
188 define KernelPackage
/sound-soc-core
189 TITLE
:=SoC sound support
190 DEPENDS
:=+kmod-regmap-core
+kmod-ac97
193 CONFIG_SND_SOC_ADI
=n \
194 CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM
=y \
195 CONFIG_SND_SOC_ALL_CODECS
=n
196 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
197 AUTOLOAD
:=$(call AutoLoad
,55,snd-soc-core
)
198 $(call AddDepends
/sound
)
201 $(eval
$(call KernelPackage
,sound-soc-core
))
204 define KernelPackage
/sound-soc-ac97
205 TITLE
:=AC97 Codec support
206 KCONFIG
:=CONFIG_SND_SOC_AC97_CODEC
207 FILES
:=$(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-ac97.ko
208 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-ac97
)
209 DEPENDS
:=+kmod-ac97
+kmod-sound-soc-core
210 $(call AddDepends
/sound
)
213 $(eval
$(call KernelPackage
,sound-soc-ac97
))
216 define KernelPackage
/sound-soc-imx
217 TITLE
:=IMX SoC support
220 CONFIG_SND_SOC_IMX_AUDMUX \
221 CONFIG_SND_SOC_FSL_SSI \
222 CONFIG_SND_SOC_IMX_PCM_DMA
224 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-audmux.ko \
225 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-fsl-ssi.ko \
226 $(LINUX_DIR
)/sound
/soc
/fsl
/imx-pcm-dma.ko
227 AUTOLOAD
:=$(call AutoLoad
,56,snd-soc-imx-audmux snd-soc-fsl-ssi snd-soc-imx-pcm
)
228 DEPENDS
:=@TARGET_imx
+kmod-sound-soc-core
229 $(call AddDepends
/sound
)
232 define KernelPackage
/sound-soc-imx
/description
233 Support for i.MX Platform sound
(ssi
/audmux
/pcm
)
236 $(eval
$(call KernelPackage
,sound-soc-imx
))
239 define KernelPackage
/sound-soc-imx-sgtl5000
240 TITLE
:=IMX SoC support for SGTL5000
241 KCONFIG
:=CONFIG_SND_SOC_IMX_SGTL5000
243 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-sgtl5000.ko \
244 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-sgtl5000.ko
245 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-sgtl5000 snd-soc-imx-sgtl5000
)
246 DEPENDS
:=@TARGET_imx
+kmod-sound-soc-imx
+kmod-regmap-i2c
247 $(call AddDepends
/sound
)
250 define KernelPackage
/sound-soc-imx-sgtl5000
/description
251 Support for i.MX Platform sound SGTL5000 codec
254 $(eval
$(call KernelPackage
,sound-soc-imx-sgtl5000
))
257 define KernelPackage
/sound-soc-wm8960
258 TITLE
:=SoC WM8960 codec support
259 KCONFIG
:=CONFIG_SND_SOC_WM8960
260 FILES
:=$(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-wm8960.ko
261 DEPENDS
:=+kmod-sound-soc-core
+kmod-i2c-core
+kmod-regmap-i2c
262 AUTOLOAD
:=$(call AutoProbe
,snd-soc-wm8960
)
263 $(call AddDepends
/sound
)
266 $(eval
$(call KernelPackage
,sound-soc-wm8960
))
269 define KernelPackage
/sound-soc-spdif
270 TITLE
:=SoC S
/PDIF codec support
271 KCONFIG
:=CONFIG_SND_SOC_SPDIF
273 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-spdif-tx.ko \
274 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-spdif-rx.ko
275 DEPENDS
:=+kmod-sound-soc-core
276 AUTOLOAD
:=$(call AutoProbe
,snd-soc-spdif-tx snd-soc-spdif-rx
)
277 $(call AddDepends
/sound
)
280 $(eval
$(call KernelPackage
,sound-soc-spdif
))
283 define KernelPackage
/pcspkr
284 DEPENDS
:=@TARGET_x86
+kmod-input-core
285 TITLE
:=PC speaker support
289 $(LINUX_DIR
)/sound
/drivers
/pcsp
/snd-pcsp.ko
290 AUTOLOAD
:=$(call AutoLoad
,50,snd-pcsp
)
291 $(call AddDepends
/sound
)
294 define KernelPackage
/pcspkr
/description
295 This enables sounds
(tones
) through the
pc speaker
298 $(eval
$(call KernelPackage
,pcspkr
))
300 define KernelPackage
/sound-dummy
301 $(call AddDepends
/sound
)
302 TITLE
:=Null sound output driver
(sink
)
306 $(LINUX_DIR
)/sound
/drivers
/snd-dummy.ko
307 AUTOLOAD
:=$(call AutoLoad
,32,snd-dummy
)
310 define KernelPackage
/sound-dummy
/description
311 Dummy sound device for Alsa when no hardware present
314 $(eval
$(call KernelPackage
,sound-dummy
))
316 define KernelPackage
/sound-hda-core
317 SUBMENU
:=$(SOUND_MENU
)
318 TITLE
:=HD Audio Sound Core Support
319 DEPENDS
:=+kmod-ledtrig-audio
321 CONFIG_SND_HDA_CORE \
322 CONFIG_SND_HDA_HWDEP
=y \
323 CONFIG_SND_HDA_RECONFIG
=n \
324 CONFIG_SND_HDA_INPUT_BEEP
=n \
325 CONFIG_SND_HDA_PATCH_LOADER
=n \
326 CONFIG_SND_HDA_GENERIC
328 $(LINUX_DIR
)/sound
/hda
/snd-hda-core.ko \
329 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec.ko \
330 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-generic.ko
331 AUTOLOAD
:=$(call AutoProbe
,snd-hda-core snd-hda-codec snd-hda-codec-generic
)
332 $(call AddDepends
/sound
,+kmod-regmap-core
)
335 define KernelPackage
/sound-hda-core
/description
336 Kernel modules for HD Audio sound support
339 $(eval
$(call KernelPackage
,sound-hda-core
))
341 define KernelPackage
/sound-hda-codec-realtek
342 SUBMENU
:=$(SOUND_MENU
)
343 TITLE
:= HD Audio Realtek Codec
345 CONFIG_SND_HDA_CODEC_REALTEK
347 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-realtek.ko
348 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-realtek
)
349 $(call AddDepends
/sound
,kmod-sound-hda-core
)
352 define KernelPackage
/sound-hda-codec-realtek
/description
353 Kernel modules for Intel HDA Realtek codec support
356 $(eval
$(call KernelPackage
,sound-hda-codec-realtek
))
358 define KernelPackage
/sound-hda-codec-cmedia
359 SUBMENU
:=$(SOUND_MENU
)
360 TITLE
:=HD Audio C-Media Codec
362 CONFIG_SND_HDA_CODEC_CMEDIA
364 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cmedia.ko
365 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cmedia
)
366 $(call AddDepends
/sound
,kmod-sound-hda-core
)
369 define KernelPackage
/sound-hda-codec-cmedia
/description
370 Kernel modules for HD Audio C-Media codec support
373 $(eval
$(call KernelPackage
,sound-hda-codec-cmedia
))
375 define KernelPackage
/sound-hda-codec-analog
376 SUBMENU
:=$(SOUND_MENU
)
377 TITLE
:=HD Audio Analog Devices Codec
379 CONFIG_SND_HDA_CODEC_ANALOG
381 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-analog.ko
382 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-analog
)
383 $(call AddDepends
/sound
,kmod-sound-hda-core
)
386 define KernelPackage
/sound-hda-codec-analog
/description
387 Kernel modules for HD Audio Analog Devices codec support
390 $(eval
$(call KernelPackage
,sound-hda-codec-analog
))
392 define KernelPackage
/sound-hda-codec-idt
393 SUBMENU
:=$(SOUND_MENU
)
394 TITLE
:=HD Audio Sigmatel IDT Codec
396 CONFIG_SND_HDA_CODEC_SIGMATEL
398 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-idt.ko
399 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-idt
)
400 $(call AddDepends
/sound
,kmod-sound-hda-core
)
403 define KernelPackage
/sound-hda-codec-idt
/description
404 Kernel modules for HD Audio Sigmatel IDT codec support
407 $(eval
$(call KernelPackage
,sound-hda-codec-idt
))
409 define KernelPackage
/sound-hda-codec-si3054
410 SUBMENU
:=$(SOUND_MENU
)
411 TITLE
:=HD Audio Silicon Labs
3054 Codec
413 CONFIG_SND_HDA_CODEC_SI3054
415 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-si3054.ko
416 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-si3054
)
417 $(call AddDepends
/sound
,kmod-sound-hda-core
)
420 define KernelPackage
/sound-hda-codec-si3054
/description
421 Kernel modules for HD Audio Silicon Labs
3054 codec support
424 $(eval
$(call KernelPackage
,sound-hda-codec-si3054
))
426 define KernelPackage
/sound-hda-codec-cirrus
427 SUBMENU
:=$(SOUND_MENU
)
428 TITLE
:=HD Audio Cirrus Logic Codec
430 CONFIG_SND_HDA_CODEC_CIRRUS
432 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cirrus.ko
433 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cirrus
)
434 $(call AddDepends
/sound
,kmod-sound-hda-core
)
437 define KernelPackage
/sound-hda-codec-cirrus
/description
438 Kernel modules for HD Audio Cirrus Logic codec support
441 $(eval
$(call KernelPackage
,sound-hda-codec-cirrus
))
443 define KernelPackage
/sound-hda-codec-ca0110
444 SUBMENU
:=$(SOUND_MENU
)
445 TITLE
:=HD Audio Creative CA0110 Codec
447 CONFIG_SND_HDA_CODEC_CA0110
449 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0110.ko
450 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0110
)
451 $(call AddDepends
/sound
,kmod-sound-hda-core
)
454 define KernelPackage
/sound-hda-codec-ca0110
/description
455 Kernel modules for HD Audio Creative CA0110 codec support
458 $(eval
$(call KernelPackage
,sound-hda-codec-ca0110
))
460 define KernelPackage
/sound-hda-codec-ca0132
461 SUBMENU
:=$(SOUND_MENU
)
462 TITLE
:=HD Audio Creative CA0132 Codec
464 CONFIG_SND_HDA_CODEC_CA0132 \
465 CONFIG_SND_HDA_CODEC_CA0132_DSP
=n
467 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0132.ko
468 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0132
)
469 $(call AddDepends
/sound
,kmod-sound-hda-core
)
472 define KernelPackage
/sound-hda-codec-ca0132
/description
473 Kernel modules for HD Audio Creative CA0132 codec support
476 $(eval
$(call KernelPackage
,sound-hda-codec-ca0132
))
478 define KernelPackage
/sound-hda-codec-conexant
479 SUBMENU
:=$(SOUND_MENU
)
480 TITLE
:=HD Audio Conexant Codec
482 CONFIG_SND_HDA_CODEC_CONEXANT
484 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-conexant.ko
485 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-conexant
)
486 $(call AddDepends
/sound
,kmod-sound-hda-core
)
489 define KernelPackage
/sound-hda-codec-conexant
/description
490 Kernel modules for HD Audio Conexant codec support
493 $(eval
$(call KernelPackage
,sound-hda-codec-conexant
))
495 define KernelPackage
/sound-hda-codec-via
496 SUBMENU
:=$(SOUND_MENU
)
497 TITLE
:=HD Audio Via Codec
499 CONFIG_SND_HDA_CODEC_VIA
501 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-via.ko
502 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-via
)
503 $(call AddDepends
/sound
,kmod-sound-hda-core
)
506 define KernelPackage
/sound-hda-codec-via
/description
507 Kernel modules for HD Audio VIA codec support
510 $(eval
$(call KernelPackage
,sound-hda-codec-via
))
512 define KernelPackage
/sound-hda-codec-hdmi
513 SUBMENU
:=$(SOUND_MENU
)
514 TITLE
:=HD Audio HDMI
/DisplayPort Codec
516 CONFIG_SND_HDA_CODEC_HDMI
518 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-hdmi.ko
519 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-hdmi
)
520 $(call AddDepends
/sound
,kmod-sound-hda-core
)
523 define KernelPackage
/sound-hda-codec-hdmi
/description
524 Kernel modules for HD Audio HDMI codec support
527 $(eval
$(call KernelPackage
,sound-hda-codec-hdmi
))
529 define KernelPackage
/sound-hda-intel
530 SUBMENU
:=$(SOUND_MENU
)
531 TITLE
:=HD Audio Intel Driver
537 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-intel.ko \
538 $(LINUX_DIR
)/sound
/hda
/snd-intel-dspcfg.ko
539 AUTOLOAD
:=$(call AutoProbe
,snd-hda-intel
)
540 $(call AddDepends
/sound
,kmod-sound-hda-core
)
543 define KernelPackage
/sound-hda-intel
/description
544 Kernel modules for HD Audio Intel driver support
547 $(eval
$(call KernelPackage
,sound-hda-intel
))