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 \
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_SEQUENCER \
54 CONFIG_SND_SEQ_DUMMY \
55 CONFIG_SND_SEQUENCER_OSS
=y \
58 CONFIG_SND_MIXER_OSS \
59 CONFIG_SOUND_OSS_CORE_PRECLAIM
=y \
60 CONFIG_SND_COMPRESS_OFFLOAD
61 FILES
:=$(SOUNDCORE_FILES
)
62 AUTOLOAD
:=$(call AutoLoad
,30,$(SOUNDCORE_LOAD
))
65 define KernelPackage
/sound-core
/uml
67 $(LINUX_DIR
)/sound
/soundcore.ko \
68 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.ko
69 AUTOLOAD
:=$(call AutoLoad
,30,soundcore hostaudio
)
72 define KernelPackage
/sound-core
/description
73 Kernel modules for sound support
76 $(eval
$(call KernelPackage
,sound-core
))
79 define AddDepends
/sound
80 SUBMENU
:=$(SOUND_MENU
)
81 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
85 define KernelPackage
/ac97
86 TITLE
:=ac97 controller
87 KCONFIG
:=CONFIG_SND_AC97_CODEC
89 $(LINUX_DIR
)/sound
/ac97_bus.ko \
90 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.ko
91 AUTOLOAD
:=$(call AutoLoad
,35,ac97_bus snd-ac97-codec
)
92 $(call AddDepends
/sound
)
95 define KernelPackage
/ac97
/description
99 $(eval
$(call KernelPackage
,ac97
))
102 define KernelPackage
/sound-mpu401
103 TITLE
:=MPU-401 uart driver
104 KCONFIG
:=CONFIG_SND_MPU401_UART
106 $(LINUX_DIR
)/sound
/drivers
/mpu401
/snd-mpu401-uart.ko
107 AUTOLOAD
:=$(call AutoLoad
,35,snd-mpu401-uart
)
108 $(call AddDepends
/sound
)
111 define KernelPackage
/sound-mpu401
/description
112 support for MIDI ports compatible with the Roland MPU-401
113 interface in UART mode.
116 $(eval
$(call KernelPackage
,sound-mpu401
))
119 define KernelPackage
/sound-seq
120 TITLE
:=Sequencer support
122 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq.ko \
123 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi-event.ko \
124 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-midi.ko
125 AUTOLOAD
:=$(call AutoLoad
,35,snd-seq snd-seq-midi-event snd-seq-midi
)
126 $(call AddDepends
/sound
)
129 define KernelPackage
/sound-seq
/description
130 Kernel modules for sequencer support
133 $(eval
$(call KernelPackage
,sound-seq
))
136 define KernelPackage
/sound-i8x0
137 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
139 KCONFIG
:=CONFIG_SND_INTEL8X0
140 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-intel8x0.ko
141 AUTOLOAD
:=$(call AutoLoad
,36,snd-intel8x0
)
142 $(call AddDepends
/sound
)
145 define KernelPackage
/sound-i8x0
/description
146 support for the integrated AC97 sound device on motherboards
147 with Intel
/SiS
/nVidia
/AMD chipsets
, or ALi chipsets using
148 the M5455 Audio Controller.
151 $(eval
$(call KernelPackage
,sound-i8x0
))
154 define KernelPackage
/sound-via82xx
155 TITLE
:=VIA
82xx AC97 Controller
156 DEPENDS
:=+kmod-ac97
+kmod-sound-mpu401
157 KCONFIG
:=CONFIG_SND_VIA82XX
158 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-via82xx.ko
159 AUTOLOAD
:=$(call AutoLoad
,36,snd-via82xx
)
160 $(call AddDepends
/sound
)
163 define KernelPackage
/sound-via82xx
/description
164 support for the integrated AC97 sound device on motherboards
168 $(eval
$(call KernelPackage
,sound-via82xx
))
171 define KernelPackage
/sound-soc-core
172 TITLE
:=SoC sound support
173 DEPENDS
:=+kmod-regmap
+kmod-ac97
176 CONFIG_SND_SOC_DMAENGINE_PCM
=y \
177 CONFIG_SND_SOC_ALL_CODECS
=n
178 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
179 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
180 $(call AddDepends
/sound
)
183 $(eval
$(call KernelPackage
,sound-soc-core
))
186 define KernelPackage
/sound-soc-ac97
187 TITLE
:=AC97 Codec support
188 KCONFIG
:=CONFIG_SND_SOC_AC97_CODEC
189 FILES
:=$(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-ac97.ko
190 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-ac97
)
191 DEPENDS
:=+kmod-ac97
+kmod-sound-soc-core
192 $(call AddDepends
/sound
)
195 $(eval
$(call KernelPackage
,sound-soc-ac97
))
198 define KernelPackage
/sound-soc-imx
199 TITLE
:=IMX SoC support
202 CONFIG_SND_SOC_IMX_AUDMUX \
203 CONFIG_SND_SOC_FSL_SSI \
204 CONFIG_SND_SOC_IMX_PCM_DMA
206 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-audmux.ko \
207 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-fsl-ssi.ko \
208 $(LINUX_DIR
)/sound
/soc
/fsl
/imx-pcm-dma.ko
209 AUTOLOAD
:=$(call AutoLoad
,56,snd-soc-imx-audmux snd-soc-fsl-ssi snd-soc-imx-pcm
)
210 DEPENDS
:=@TARGET_imx6
+kmod-sound-soc-core
211 $(call AddDepends
/sound
)
214 define KernelPackage
/sound-soc-imx
/description
215 Support for i.MX6 Platform sound
(ssi
/audmux
/pcm
)
218 $(eval
$(call KernelPackage
,sound-soc-imx
))
221 define KernelPackage
/sound-soc-imx-sgtl5000
222 TITLE
:=IMX SoC support for SGTL5000
223 KCONFIG
:=CONFIG_SND_SOC_IMX_SGTL5000
225 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-sgtl5000.ko \
226 $(LINUX_DIR
)/sound
/soc
/fsl
/snd-soc-imx-sgtl5000.ko
227 AUTOLOAD
:=$(call AutoLoad
,57,snd-soc-sgtl5000 snd-soc-imx-sgtl5000
)
228 DEPENDS
:=@TARGET_imx6
+kmod-sound-soc-imx
229 $(call AddDepends
/sound
)
232 define KernelPackage
/sound-soc-imx-sgtl5000
/description
233 Support for i.MX6 Platform sound SGTL5000 codec
236 $(eval
$(call KernelPackage
,sound-soc-imx-sgtl5000
))
239 define KernelPackage
/sound-soc-gw_avila
240 TITLE
:=Gateworks Avila SoC sound support
242 CONFIG_SND_GW_AVILA_SOC \
243 CONFIG_SND_GW_AVILA_SOC_PCM \
244 CONFIG_SND_GW_AVILA_SOC_HSS
246 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-tlv320aic3x.ko \
247 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila.ko \
248 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila-pcm.ko \
249 $(LINUX_DIR
)/sound
/soc
/gw-avila
/snd-soc-gw-avila-hss.ko
250 AUTOLOAD
:=$(call AutoLoad
,65,snd-soc-tlv320aic3x snd-soc-gw-avila snd-soc-gw-avila-pcm snd-soc-gw-avila-hss
)
251 DEPENDS
:=@TARGET_ixp4xx
+kmod-sound-soc-core
252 $(call AddDepends
/sound
)
255 $(eval
$(call KernelPackage
,sound-soc-gw_avila
))
258 define KernelPackage
/pcspkr
259 DEPENDS
:=@TARGET_x86
+kmod-input-core
260 TITLE
:=PC speaker support
264 $(LINUX_DIR
)/sound
/drivers
/pcsp
/snd-pcsp.ko
265 AUTOLOAD
:=$(call AutoLoad
,50,snd-pcsp
)
266 $(call AddDepends
/sound
)
269 define KernelPackage
/pcspkr
/description
270 This enables sounds
(tones
) through the
pc speaker
273 $(eval
$(call KernelPackage
,pcspkr
))
275 define KernelPackage
/sound-dummy
276 $(call AddDepends
/sound
)
277 TITLE
:=Null sound output driver
(sink
)
281 $(LINUX_DIR
)/sound
/drivers
/snd-dummy.ko
282 AUTOLOAD
:=$(call AutoLoad
,32,snd-dummy
)
285 define KernelPackage
/sound_dummy
/description
286 Dummy sound device for Alsa when no hardware present
289 $(eval
$(call KernelPackage
,sound-dummy
))
291 define KernelPackage
/sound-hda-core
292 SUBMENU
:=$(SOUND_MENU
)
293 TITLE
:=HD Audio Sound Core Support
295 CONFIG_SND_HDA_CORE \
296 CONFIG_SND_HDA_HWDEP
=y \
297 CONFIG_SND_HDA_RECONFIG
=n \
298 CONFIG_SND_HDA_INPUT_BEEP
=n \
299 CONFIG_SND_HDA_PATCH_LOADER
=n \
300 CONFIG_SND_HDA_GENERIC
302 $(LINUX_DIR
)/sound
/hda
/snd-hda-core.ko \
303 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec.ko \
304 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-generic.ko
305 AUTOLOAD
:=$(call AutoProbe
,snd-hda-core snd-hda-codec snd-hda-codec-generic
)
306 $(call AddDepends
/sound
,kmod-regmap
)
309 define KernelPackage
/sound-hda-core
/description
310 Kernel modules for HD Audio sound support
313 $(eval
$(call KernelPackage
,sound-hda-core
))
315 define KernelPackage
/sound-hda-codec-realtek
316 SUBMENU
:=$(SOUND_MENU
)
317 TITLE
:= HD Audio Realtek Codec
319 CONFIG_SND_HDA_CODEC_REALTEK
321 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-realtek.ko
322 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-realtek
)
323 $(call AddDepends
/sound
,kmod-sound-hda-core
)
326 define KernelPackage
/sound-hda-codec-realtek
/description
327 Kernel modules for Intel HDA Realtek codec support
330 $(eval
$(call KernelPackage
,sound-hda-codec-realtek
))
332 define KernelPackage
/sound-hda-codec-cmedia
333 SUBMENU
:=$(SOUND_MENU
)
334 TITLE
:=HD Audio C-Media Codec
336 CONFIG_SND_HDA_CODEC_CMEDIA
338 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cmedia.ko
339 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cmedia
)
340 $(call AddDepends
/sound
,kmod-sound-hda-core
)
343 define KernelPackage
/sound-hda-codec-cmedia
/description
344 Kernel modules for HD Audio C-Media codec support
347 $(eval
$(call KernelPackage
,sound-hda-codec-cmedia
))
349 define KernelPackage
/sound-hda-codec-analog
350 SUBMENU
:=$(SOUND_MENU
)
351 TITLE
:=HD Audio Analog Devices Codec
353 CONFIG_SND_HDA_CODEC_ANALOG
355 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-analog.ko
356 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-analog
)
357 $(call AddDepends
/sound
,kmod-sound-hda-core
)
360 define KernelPackage
/sound-hda-codec-analog
/description
361 Kernel modules for HD Audio Analog Devices codec support
364 $(eval
$(call KernelPackage
,sound-hda-codec-analog
))
366 define KernelPackage
/sound-hda-codec-idt
367 SUBMENU
:=$(SOUND_MENU
)
368 TITLE
:=HD Audio Sigmatel IDT Codec
370 CONFIG_SND_HDA_CODEC_SIGMATEL
372 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-idt.ko
373 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-idt
)
374 $(call AddDepends
/sound
,kmod-sound-hda-core
)
377 define KernelPackage
/sound-hda-codec-idt
/description
378 Kernel modules for HD Audio Sigmatel IDT codec support
381 $(eval
$(call KernelPackage
,sound-hda-codec-idt
))
383 define KernelPackage
/sound-hda-codec-si3054
384 SUBMENU
:=$(SOUND_MENU
)
385 TITLE
:=HD Audio Silicon Labs
3054 Codec
387 CONFIG_SND_HDA_CODEC_SI3054
389 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-si3054.ko
390 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-si3054
)
391 $(call AddDepends
/sound
,kmod-sound-hda-core
)
394 define KernelPackage
/sound-hda-codec-si3054
/description
395 Kernel modules for HD Audio Silicon Labs
3054 codec support
398 $(eval
$(call KernelPackage
,sound-hda-codec-si3054
))
400 define KernelPackage
/sound-hda-codec-cirrus
401 SUBMENU
:=$(SOUND_MENU
)
402 TITLE
:=HD Audio Cirrus Logic Codec
404 CONFIG_SND_HDA_CODEC_CIRRUS
406 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-cirrus.ko
407 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-cirrus
)
408 $(call AddDepends
/sound
,kmod-sound-hda-core
)
411 define KernelPackage
/sound-hda-codec-cirrus
/description
412 Kernel modules for HD Audio Cirrus Logic codec support
415 $(eval
$(call KernelPackage
,sound-hda-codec-cirrus
))
417 define KernelPackage
/sound-hda-codec-ca0110
418 SUBMENU
:=$(SOUND_MENU
)
419 TITLE
:=HD Audio Creative CA0110 Codec
421 CONFIG_SND_HDA_CODEC_CA0110
423 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0110.ko
424 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0110
)
425 $(call AddDepends
/sound
,kmod-sound-hda-core
)
428 define KernelPackage
/sound-hda-codec-ca0110
/description
429 Kernel modules for HD Audio Creative CA0110 codec support
432 $(eval
$(call KernelPackage
,sound-hda-codec-ca0110
))
434 define KernelPackage
/sound-hda-codec-ca0132
435 SUBMENU
:=$(SOUND_MENU
)
436 TITLE
:=HD Audio Creative CA0132 Codec
438 CONFIG_SND_HDA_CODEC_CA0132 \
439 CONFIG_SND_HDA_CODEC_CA0132_DSP
=n
441 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-ca0132.ko
442 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-ca0132
)
443 $(call AddDepends
/sound
,kmod-sound-hda-core
)
446 define KernelPackage
/sound-hda-codec-ca0132
/description
447 Kernel modules for HD Audio Creative CA0132 codec support
450 $(eval
$(call KernelPackage
,sound-hda-codec-ca0132
))
452 define KernelPackage
/sound-hda-codec-conexant
453 SUBMENU
:=$(SOUND_MENU
)
454 TITLE
:=HD Audio Conexant Codec
456 CONFIG_SND_HDA_CODEC_CONEXANT
458 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-conexant.ko
459 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-conexant
)
460 $(call AddDepends
/sound
,kmod-sound-hda-core
)
463 define KernelPackage
/sound-hda-codec-conexant
/description
464 Kernel modules for HD Audio Conexant codec support
467 $(eval
$(call KernelPackage
,sound-hda-codec-conexant
))
469 define KernelPackage
/sound-hda-codec-via
470 SUBMENU
:=$(SOUND_MENU
)
471 TITLE
:=HD Audio Via Codec
473 CONFIG_SND_HDA_CODEC_VIA
475 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-via.ko
476 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-via
)
477 $(call AddDepends
/sound
,kmod-sound-hda-core
)
480 define KernelPackage
/sound-hda-codec-via
/description
481 Kernel modules for HD Audio VIA codec support
484 $(eval
$(call KernelPackage
,sound-hda-codec-via
))
486 define KernelPackage
/sound-hda-codec-hdmi
487 SUBMENU
:=$(SOUND_MENU
)
488 TITLE
:=HD Audio HDMI
/DisplayPort Codec
490 CONFIG_SND_HDA_CODEC_HDMI
492 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-codec-hdmi.ko
493 AUTOLOAD
:=$(call AutoProbe
,snd-hda-codec-hdmi
)
494 $(call AddDepends
/sound
,kmod-sound-hda-core
)
497 define KernelPackage
/sound-hda-codec-hdmi
/description
498 Kernel modules for HD Audio HDMI codec support
501 $(eval
$(call KernelPackage
,sound-hda-codec-hdmi
))
503 define KernelPackage
/sound-hda-intel
504 SUBMENU
:=$(SOUND_MENU
)
505 TITLE
:=HD Audio Intel Driver
510 $(LINUX_DIR
)/sound
/pci
/hda
/snd-hda-intel.ko
511 AUTOLOAD
:=$(call AutoProbe
,snd-hda-intel
)
512 $(call AddDepends
/sound
,kmod-sound-hda-core
)
515 define KernelPackage
/sound-hda-intel
/description
516 Kernel modules for HD Audio Intel driver support
519 $(eval
$(call KernelPackage
,sound-hda-intel
))