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
/seq
/snd-seq-device.ko@lt4.13 \
28 $(LINUX_DIR
)/sound
/core
/snd-seq-device.ko@ge4.13 \
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 $(LINUX_DIR
)/sound
/core
/snd-compress.ko
37 $(if
$(CONFIG_SND_DMAENGINE_PCM
),snd-pcm-dmaengine
)
40 $(if
$(CONFIG_SND_DMAENGINE_PCM
),$(LINUX_DIR
)/sound
/core
/snd-pcm-dmaengine.ko
)
42 define KernelPackage
/sound-core
43 SUBMENU
:=$(SOUND_MENU
)
45 DEPENDS
:=@AUDIO_SUPPORT
+kmod-input-core
53 CONFIG_SND_PCM_TIMER
=y \
54 CONFIG_SND_SEQUENCER \
56 CONFIG_SND_SEQ_DUMMY \
57 CONFIG_SND_SEQUENCER_OSS
=y \
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
))
67 define KernelPackage
/sound-core
/uml
69 $(LINUX_DIR
)/sound
/soundcore.ko \
70 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.ko
71 AUTOLOAD
+=$(call AutoLoad
,30,soundcore hostaudio
)
74 define KernelPackage
/sound-core
/description
75 Kernel modules for sound support
78 $(eval
$(call KernelPackage
,sound-core
))
81 define AddDepends
/sound
82 SUBMENU
:=$(SOUND_MENU
)
83 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
87 define KernelPackage
/ac97
88 TITLE
:=ac97 controller
89 KCONFIG
:=CONFIG_SND_AC97_CODEC
91 $(LINUX_DIR
)/sound
/ac97_bus.ko \
92 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.ko
93 AUTOLOAD
:=$(call AutoLoad
,35,ac97_bus snd-ac97-codec
)
94 $(call AddDepends
/sound
)
97 define KernelPackage
/ac97
/description
101 $(eval
$(call KernelPackage
,ac97
))
104 define KernelPackage
/sound-mpu401
105 TITLE
:=MPU-401 uart driver
106 KCONFIG
:=CONFIG_SND_MPU401_UART
108 $(LINUX_DIR
)/sound
/drivers
/mpu401
/snd-mpu401-uart.ko
109 AUTOLOAD
:=$(call AutoLoad
,35,snd-mpu401-uart
)
110 $(call AddDepends
/sound
)
113 define KernelPackage
/sound-mpu401
/description
114 support for MIDI ports compatible with the Roland MPU-401
115 interface in UART mode.
118 $(eval
$(call KernelPackage
,sound-mpu401
))
121 define KernelPackage
/sound-seq
122 TITLE
:=Sequencer support
124 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq.ko \
125 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi-event.ko \
126 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi.ko
127 AUTOLOAD
:=$(call AutoLoad
,35,snd-seq snd-seq-midi-event snd-seq-midi
)
128 $(call AddDepends
/sound
)
131 define KernelPackage
/sound-seq
/description
132 Kernel modules for sequencer support
135 $(eval
$(call KernelPackage
,sound-seq
))
138 define KernelPackage
/sound-ens1371
139 TITLE
:=(Creative
) Ensoniq AudioPCI
1371
140 KCONFIG
:=CONFIG_SND_ENS1371
141 DEPENDS
:=@PCI_SUPPORT
+kmod-ac97
142 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-ens1371.ko
143 AUTOLOAD
:=$(call AutoLoad
,36,snd-ens1371
)
144 $(call AddDepends
/sound
)
147 define KernelPackage
/sound-ens1371
/description
148 support for
(Creative
) Ensoniq AudioPCI
1371 chips
151 $(eval
$(call KernelPackage
,sound-ens1371
))
154 define KernelPackage
/sound-i8x0
155 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
157 KCONFIG
:=CONFIG_SND_INTEL8X0
158 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-intel8x0.ko
159 AUTOLOAD
:=$(call AutoLoad
,36,snd-intel8x0
)
160 $(call AddDepends
/sound
)
163 define KernelPackage
/sound-i8x0
/description
164 support for the integrated AC97 sound device on motherboards
165 with Intel
/SiS
/nVidia
/AMD chipsets
, or ALi chipsets using
166 the M5455 Audio Controller.
169 $(eval
$(call KernelPackage
,sound-i8x0
))
172 define KernelPackage
/sound-via82xx
173 TITLE
:=VIA
82xx AC97 Controller
174 DEPENDS
:=+kmod-ac97
+kmod-sound-mpu401
175 KCONFIG
:=CONFIG_SND_VIA82XX
176 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-via82xx.ko
177 AUTOLOAD
:=$(call AutoLoad
,36,snd-via82xx
)
178 $(call AddDepends
/sound
)
181 define KernelPackage
/sound-via82xx
/description
182 support for the integrated AC97 sound device on motherboards
186 $(eval
$(call KernelPackage
,sound-via82xx
))
189 define KernelPackage
/sound-soc-core
190 TITLE
:=SoC sound support
191 DEPENDS
:=+kmod-regmap-core
+kmod-ac97
194 CONFIG_SND_SOC_ADI
=n \
195 CONFIG_SND_SOC_DMAENGINE_PCM
=y \
196 CONFIG_SND_SOC_ALL_CODECS
=n
197 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
198 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
199 $(call AddDepends
/sound
)
202 $(eval
$(call KernelPackage
,sound-soc-core
))
205 define KernelPackage
/sound-soc-ac97
206 TITLE
:=AC97 Codec support
207 KCONFIG
:=CONFIG_SND_SOC_AC97_CODEC
208 FILES
:=$(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-ac97.ko
209 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-ac97
)
210 DEPENDS
:=+kmod-ac97
+kmod-sound-soc-core
211 $(call AddDepends
/sound
)
214 $(eval
$(call KernelPackage
,sound-soc-ac97
))
217 define KernelPackage
/sound-soc-imx
218 TITLE
:=IMX SoC support
221 CONFIG_SND_SOC_IMX_AUDMUX \
222 CONFIG_SND_SOC_FSL_SSI \
223 CONFIG_SND_SOC_IMX_PCM_DMA
225 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-audmux.ko \
226 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-fsl-ssi.ko \
227 $(LINUX_DIR
)/sound
/soc
/fsl
/imx-pcm-dma.ko
228 AUTOLOAD
:=$(call AutoLoad
,56,snd-soc-imx-audmux snd-soc-fsl-ssi snd-soc-imx-pcm
)
229 DEPENDS
:=@TARGET_imx6
+kmod-sound-soc-core
230 $(call AddDepends
/sound
)
233 define KernelPackage
/sound-soc-imx
/description
234 Support for i.MX6 Platform sound
(ssi
/audmux
/pcm
)
237 $(eval
$(call KernelPackage
,sound-soc-imx
))
240 define KernelPackage
/sound-soc-imx-sgtl5000
241 TITLE
:=IMX SoC support for SGTL5000
242 KCONFIG
:=CONFIG_SND_SOC_IMX_SGTL5000
244 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-sgtl5000.ko \
245 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-sgtl5000.ko
246 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-sgtl5000 snd-soc-imx-sgtl5000
)
247 DEPENDS
:=@TARGET_imx6
+kmod-sound-soc-imx
248 $(call AddDepends
/sound
)
251 define KernelPackage
/sound-soc-imx-sgtl5000
/description
252 Support for i.MX6 Platform sound SGTL5000 codec
255 $(eval
$(call KernelPackage
,sound-soc-imx-sgtl5000
))
258 define KernelPackage
/sound-soc-gw_avila
259 TITLE
:=Gateworks Avila SoC sound support
261 CONFIG_SND_GW_AVILA_SOC \
262 CONFIG_SND_GW_AVILA_SOC_PCM \
263 CONFIG_SND_GW_AVILA_SOC_HSS
265 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-tlv320aic3x.ko \
266 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila.ko \
267 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila-pcm.ko \
268 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila-hss.ko
269 AUTOLOAD
:=$(call AutoLoad
,65,snd-soc-tlv320aic3x snd-soc-gw-avila snd-soc-gw-avila-pcm snd-soc-gw-avila-hss
)
270 DEPENDS
:=@TARGET_ixp4xx
+kmod-sound-soc-core
271 $(call AddDepends
/sound
)
274 $(eval
$(call KernelPackage
,sound-soc-gw_avila
))
277 define KernelPackage
/pcspkr
278 DEPENDS
:=@TARGET_x86
+kmod-input-core
279 TITLE
:=PC speaker support
283 $(LINUX_DIR
)/sound
/drivers
/pcsp
/snd-pcsp.ko
284 AUTOLOAD
:=$(call AutoLoad
,50,snd-pcsp
)
285 $(call AddDepends
/sound
)
288 define KernelPackage
/pcspkr
/description
289 This enables sounds
(tones
) through the
pc speaker
292 $(eval
$(call KernelPackage
,pcspkr
))
294 define KernelPackage
/sound-dummy
295 $(call AddDepends
/sound
)
296 TITLE
:=Null sound output driver
(sink
)
300 $(LINUX_DIR
)/sound
/drivers
/snd-dummy.ko
301 AUTOLOAD
:=$(call AutoLoad
,32,snd-dummy
)
304 define KernelPackage
/sound_dummy
/description
305 Dummy sound device for Alsa when no hardware present
308 $(eval
$(call KernelPackage
,sound-dummy
))
310 define KernelPackage
/sound-hda-core
311 SUBMENU
:=$(SOUND_MENU
)
312 TITLE
:=HD Audio Sound Core Support
314 CONFIG_SND_HDA_CORE@ge4.1 \
315 CONFIG_SND_HDA_HWDEP
=y \
316 CONFIG_SND_HDA_RECONFIG
=n \
317 CONFIG_SND_HDA_INPUT_BEEP
=n \
318 CONFIG_SND_HDA_PATCH_LOADER
=n \
319 CONFIG_SND_HDA_GENERIC
321 $(LINUX_DIR
)/sound
/hda
/snd-hda-core.ko@ge4.1 \
322 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec.ko \
323 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-generic.ko
324 AUTOLOAD
:=$(call AutoProbe
,snd-hda-core@ge4.1 snd-hda-codec snd-hda-codec-generic
)
325 $(call AddDepends
/sound
,+kmod-regmap-core
)
328 define KernelPackage
/sound-hda-core
/description
329 Kernel modules for HD Audio sound support
332 $(eval
$(call KernelPackage
,sound-hda-core
))
334 define KernelPackage
/sound-hda-codec-realtek
335 SUBMENU
:=$(SOUND_MENU
)
336 TITLE
:= HD Audio Realtek Codec
338 CONFIG_SND_HDA_CODEC_REALTEK
340 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-realtek.ko
341 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-realtek
)
342 $(call AddDepends
/sound
,kmod-sound-hda-core
)
345 define KernelPackage
/sound-hda-codec-realtek
/description
346 Kernel modules for Intel HDA Realtek codec support
349 $(eval
$(call KernelPackage
,sound-hda-codec-realtek
))
351 define KernelPackage
/sound-hda-codec-cmedia
352 SUBMENU
:=$(SOUND_MENU
)
353 TITLE
:=HD Audio C-Media Codec
355 CONFIG_SND_HDA_CODEC_CMEDIA
357 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cmedia.ko
358 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cmedia
)
359 $(call AddDepends
/sound
,kmod-sound-hda-core
)
362 define KernelPackage
/sound-hda-codec-cmedia
/description
363 Kernel modules for HD Audio C-Media codec support
366 $(eval
$(call KernelPackage
,sound-hda-codec-cmedia
))
368 define KernelPackage
/sound-hda-codec-analog
369 SUBMENU
:=$(SOUND_MENU
)
370 TITLE
:=HD Audio Analog Devices Codec
372 CONFIG_SND_HDA_CODEC_ANALOG
374 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-analog.ko
375 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-analog
)
376 $(call AddDepends
/sound
,kmod-sound-hda-core
)
379 define KernelPackage
/sound-hda-codec-analog
/description
380 Kernel modules for HD Audio Analog Devices codec support
383 $(eval
$(call KernelPackage
,sound-hda-codec-analog
))
385 define KernelPackage
/sound-hda-codec-idt
386 SUBMENU
:=$(SOUND_MENU
)
387 TITLE
:=HD Audio Sigmatel IDT Codec
389 CONFIG_SND_HDA_CODEC_SIGMATEL
391 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-idt.ko
392 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-idt
)
393 $(call AddDepends
/sound
,kmod-sound-hda-core
)
396 define KernelPackage
/sound-hda-codec-idt
/description
397 Kernel modules for HD Audio Sigmatel IDT codec support
400 $(eval
$(call KernelPackage
,sound-hda-codec-idt
))
402 define KernelPackage
/sound-hda-codec-si3054
403 SUBMENU
:=$(SOUND_MENU
)
404 TITLE
:=HD Audio Silicon Labs
3054 Codec
406 CONFIG_SND_HDA_CODEC_SI3054
408 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-si3054.ko
409 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-si3054
)
410 $(call AddDepends
/sound
,kmod-sound-hda-core
)
413 define KernelPackage
/sound-hda-codec-si3054
/description
414 Kernel modules for HD Audio Silicon Labs
3054 codec support
417 $(eval
$(call KernelPackage
,sound-hda-codec-si3054
))
419 define KernelPackage
/sound-hda-codec-cirrus
420 SUBMENU
:=$(SOUND_MENU
)
421 TITLE
:=HD Audio Cirrus Logic Codec
423 CONFIG_SND_HDA_CODEC_CIRRUS
425 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cirrus.ko
426 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cirrus
)
427 $(call AddDepends
/sound
,kmod-sound-hda-core
)
430 define KernelPackage
/sound-hda-codec-cirrus
/description
431 Kernel modules for HD Audio Cirrus Logic codec support
434 $(eval
$(call KernelPackage
,sound-hda-codec-cirrus
))
436 define KernelPackage
/sound-hda-codec-ca0110
437 SUBMENU
:=$(SOUND_MENU
)
438 TITLE
:=HD Audio Creative CA0110 Codec
440 CONFIG_SND_HDA_CODEC_CA0110
442 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0110.ko
443 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0110
)
444 $(call AddDepends
/sound
,kmod-sound-hda-core
)
447 define KernelPackage
/sound-hda-codec-ca0110
/description
448 Kernel modules for HD Audio Creative CA0110 codec support
451 $(eval
$(call KernelPackage
,sound-hda-codec-ca0110
))
453 define KernelPackage
/sound-hda-codec-ca0132
454 SUBMENU
:=$(SOUND_MENU
)
455 TITLE
:=HD Audio Creative CA0132 Codec
457 CONFIG_SND_HDA_CODEC_CA0132 \
458 CONFIG_SND_HDA_CODEC_CA0132_DSP
=n
460 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0132.ko
461 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0132
)
462 $(call AddDepends
/sound
,kmod-sound-hda-core
)
465 define KernelPackage
/sound-hda-codec-ca0132
/description
466 Kernel modules for HD Audio Creative CA0132 codec support
469 $(eval
$(call KernelPackage
,sound-hda-codec-ca0132
))
471 define KernelPackage
/sound-hda-codec-conexant
472 SUBMENU
:=$(SOUND_MENU
)
473 TITLE
:=HD Audio Conexant Codec
475 CONFIG_SND_HDA_CODEC_CONEXANT
477 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-conexant.ko
478 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-conexant
)
479 $(call AddDepends
/sound
,kmod-sound-hda-core
)
482 define KernelPackage
/sound-hda-codec-conexant
/description
483 Kernel modules for HD Audio Conexant codec support
486 $(eval
$(call KernelPackage
,sound-hda-codec-conexant
))
488 define KernelPackage
/sound-hda-codec-via
489 SUBMENU
:=$(SOUND_MENU
)
490 TITLE
:=HD Audio Via Codec
492 CONFIG_SND_HDA_CODEC_VIA
494 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-via.ko
495 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-via
)
496 $(call AddDepends
/sound
,kmod-sound-hda-core
)
499 define KernelPackage
/sound-hda-codec-via
/description
500 Kernel modules for HD Audio VIA codec support
503 $(eval
$(call KernelPackage
,sound-hda-codec-via
))
505 define KernelPackage
/sound-hda-codec-hdmi
506 SUBMENU
:=$(SOUND_MENU
)
507 TITLE
:=HD Audio HDMI
/DisplayPort Codec
509 CONFIG_SND_HDA_CODEC_HDMI
511 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-hdmi.ko
512 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-hdmi
)
513 $(call AddDepends
/sound
,kmod-sound-hda-core
)
516 define KernelPackage
/sound-hda-codec-hdmi
/description
517 Kernel modules for HD Audio HDMI codec support
520 $(eval
$(call KernelPackage
,sound-hda-codec-hdmi
))
522 define KernelPackage
/sound-hda-intel
523 SUBMENU
:=$(SOUND_MENU
)
524 TITLE
:=HD Audio Intel Driver
529 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-intel.ko \
530 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-controller.ko@lt4.4
531 AUTOLOAD
:=$(call AutoProbe
,snd-hda-controller@lt4.4 snd-hda-intel
)
532 $(call AddDepends
/sound
,kmod-sound-hda-core
)
535 define KernelPackage
/sound-hda-intel
/description
536 Kernel modules for HD Audio Intel driver support
539 $(eval
$(call KernelPackage
,sound-hda-intel
))