2 # Copyright (C) 2006-2010 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 define 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
)
18 define KernelPackage
/pcspkr
/description
19 This enables sounds
(tones
) through the
pc speaker
22 $(eval
$(call KernelPackage
,pcspkr
))
25 # allow targets to override the soundcore stuff
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
50 define KernelPackage
/sound-core
51 SUBMENU
:=$(SOUND_MENU
)
53 DEPENDS
:=@AUDIO_SUPPORT
61 CONFIG_SND_SEQUENCER \
63 CONFIG_SND_SEQ_DUMMY \
64 CONFIG_SND_SEQUENCER_OSS
=y \
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
)
74 define KernelPackage
/sound-core
/uml
76 $(LINUX_DIR
)/sound
/soundcore.ko \
77 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.ko
78 AUTOLOAD
:=$(call AutoLoad
,30,soundcore hostaudio
)
81 define KernelPackage
/sound-core
/description
82 Kernel modules for sound support
85 $(eval
$(call KernelPackage
,sound-core
))
88 define AddDepends
/sound
89 SUBMENU
:=$(SOUND_MENU
)
90 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
94 define KernelPackage
/ac97
95 TITLE
:=ac97 controller
96 KCONFIG
:=CONFIG_SND_AC97_CODEC
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
)
104 define KernelPackage
/ac97
/description
108 $(eval
$(call KernelPackage
,ac97
))
111 define KernelPackage
/sound-i8x0
112 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
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
)
120 define 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.
126 $(eval
$(call KernelPackage
,sound-i8x0
))
129 define KernelPackage
/sound-cs5535audio
130 TITLE
:=CS5535 PCI Controller
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
)
138 define KernelPackage
/sound-cs5535audio
/description
139 support for the integrated AC97 sound device on olpc
142 $(eval
$(call KernelPackage
,sound-cs5535audio
))
145 define KernelPackage
/sound-soc-core
146 TITLE
:=SoC sound support
149 CONFIG_SND_SOC_ALL_CODECS
=n
150 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
151 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
152 $(call AddDepends
/sound
)
155 $(eval
$(call KernelPackage
,sound-soc-core
))
158 define KernelPackage
/sound-soc-omap
159 TITLE
:=OMAP SoC sound support
162 FILES
:=$(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-omap.ko
163 AUTOLOAD
:=$(call AutoLoad
,60,snd-soc-omap
)
164 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-core
165 $(call AddDepends
/sound
)
168 $(eval
$(call KernelPackage
,sound-soc-omap
))
171 define KernelPackage
/sound-soc-omap-mcbsp
172 TITLE
:=OMAP SoC MCBSP support
174 CONFIG_SND_OMAP_SOC_MCBSP
175 FILES
:=$(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-omap-mcbsp.ko
176 AUTOLOAD
:=$(call AutoLoad
,61,snd-soc-omap-mcbsp
)
177 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-omap
178 $(call AddDepends
/sound
)
181 $(eval
$(call KernelPackage
,sound-soc-omap-mcbsp
))
184 define KernelPackage
/sound-soc-n810
185 TITLE
:=Nokia n810 SoC sound support
187 CONFIG_SND_OMAP_SOC_N810
189 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-tlv320aic3x.ko \
190 $(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-n810.ko
191 AUTOLOAD
:=$(call AutoLoad
,65,snd-soc-tlv320aic3x snd-soc-n810
)
192 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-omap
+kmod-sound-soc-omap-mcbsp
193 $(call AddDepends
/sound
)
196 $(eval
$(call KernelPackage
,sound-soc-n810
))