[package] exclude pktgen for uml target
[openwrt.git] / package / kernel / modules / sound.mk
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
8 SOUND_MENU:=Sound Support
9
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)
16 endef
17
18 define KernelPackage/pcspkr/description
19 This enables sounds (tones) through the pc speaker
20 endef
21
22 $(eval $(call KernelPackage,pcspkr))
23
24
25 define KernelPackage/sound-core
26 SUBMENU:=$(SOUND_MENU)
27 TITLE:=Sound support
28 DEPENDS:=@AUDIO_SUPPORT
29 KCONFIG:= \
30 CONFIG_SOUND \
31 CONFIG_SND \
32 CONFIG_SND_HWDEP \
33 CONFIG_SND_RAWMIDI \
34 CONFIG_SND_TIMER \
35 CONFIG_SND_PCM \
36 CONFIG_SND_SEQUENCER \
37 CONFIG_SND_VIRMIDI \
38 CONFIG_SND_SEQ_DUMMY \
39 CONFIG_SND_SEQUENCER_OSS=y \
40 CONFIG_HOSTAUDIO \
41 CONFIG_SND_PCM_OSS \
42 CONFIG_SND_MIXER_OSS \
43 CONFIG_SOUND_OSS_CORE_PRECLAIM=y
44 $(call AddDepends/input)
45 endef
46
47 define KernelPackage/sound-core/2.4
48 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.ko
49 AUTOLOAD:=$(call AutoLoad,30,soundcore)
50 endef
51
52 # allow 2.6 targets to override the soundcore stuff
53 SOUNDCORE_LOAD ?= \
54 soundcore \
55 snd \
56 snd-page-alloc \
57 snd-hwdep \
58 snd-seq-device \
59 snd-rawmidi \
60 snd-timer \
61 snd-pcm \
62 snd-mixer-oss \
63 snd-pcm-oss
64
65 SOUNDCORE_FILES ?= \
66 $(LINUX_DIR)/sound/soundcore.ko \
67 $(LINUX_DIR)/sound/core/snd.ko \
68 $(LINUX_DIR)/sound/core/snd-page-alloc.ko \
69 $(LINUX_DIR)/sound/core/snd-hwdep.ko \
70 $(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \
71 $(LINUX_DIR)/sound/core/snd-rawmidi.ko \
72 $(LINUX_DIR)/sound/core/snd-timer.ko \
73 $(LINUX_DIR)/sound/core/snd-pcm.ko \
74 $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
75 $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
76
77 define KernelPackage/sound-core/2.6
78 FILES:=$(SOUNDCORE_FILES)
79 AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
80 endef
81
82 define KernelPackage/sound-core/uml
83 FILES:= \
84 $(LINUX_DIR)/sound/soundcore.ko \
85 $(LINUX_DIR)/arch/um/drivers/hostaudio.ko
86 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
87 endef
88
89 define KernelPackage/sound-core/description
90 Kernel modules for sound support
91 endef
92
93 $(eval $(call KernelPackage,sound-core))
94
95
96 define AddDepends/sound
97 SUBMENU:=$(SOUND_MENU)
98 DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
99 endef
100
101
102 define KernelPackage/ac97
103 TITLE:=ac97 controller
104 KCONFIG:=CONFIG_SND_AC97_CODEC
105 FILES:= \
106 $(LINUX_DIR)/sound/ac97_bus.ko \
107 $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko
108 AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec)
109 $(call AddDepends/sound)
110 endef
111
112 define KernelPackage/ac97/description
113 The ac97 controller
114 endef
115
116 $(eval $(call KernelPackage,ac97))
117
118
119 define KernelPackage/sound-i8x0
120 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
121 DEPENDS:=+kmod-ac97
122 KCONFIG:=CONFIG_SND_INTEL8X0
123 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
124 AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
125 $(call AddDepends/sound)
126 endef
127
128 define KernelPackage/sound-i8x0/description
129 support for the integrated AC97 sound device on motherboards
130 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
131 the M5455 Audio Controller.
132 endef
133
134 $(eval $(call KernelPackage,sound-i8x0))
135
136
137 define KernelPackage/sound-cs5535audio
138 TITLE:=CS5535 PCI Controller
139 DEPENDS:=+kmod-ac97
140 KCONFIG:=CONFIG_SND_CS5535AUDIO
141 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
142 AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
143 $(call AddDepends/sound)
144 endef
145
146 define KernelPackage/sound-cs5535audio/description
147 support for the integrated AC97 sound device on olpc
148 endef
149
150 $(eval $(call KernelPackage,sound-cs5535audio))
151
152
153 define KernelPackage/sound-soc-core
154 TITLE:=SoC sound support
155 KCONFIG:= \
156 CONFIG_SND_SOC \
157 CONFIG_SND_SOC_ALL_CODECS=n
158 FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
159 AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
160 $(call AddDepends/sound)
161 endef
162
163 $(eval $(call KernelPackage,sound-soc-core))
164
165
166 define KernelPackage/sound-soc-omap
167 TITLE:=OMAP SoC sound support
168 KCONFIG:= \
169 CONFIG_SND_OMAP_SOC
170 FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap.ko
171 AUTOLOAD:=$(call AutoLoad,60,snd-soc-omap)
172 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-core
173 $(call AddDepends/sound)
174 endef
175
176 $(eval $(call KernelPackage,sound-soc-omap))
177
178
179 define KernelPackage/sound-soc-omap-mcbsp
180 TITLE:=OMAP SoC MCBSP support
181 KCONFIG:= \
182 CONFIG_SND_OMAP_SOC_MCBSP
183 FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap-mcbsp.ko
184 AUTOLOAD:=$(call AutoLoad,61,snd-soc-omap-mcbsp)
185 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap
186 $(call AddDepends/sound)
187 endef
188
189 $(eval $(call KernelPackage,sound-soc-omap-mcbsp))
190
191
192 define KernelPackage/sound-soc-n810
193 TITLE:=Nokia n810 SoC sound support
194 KCONFIG:= \
195 CONFIG_SND_OMAP_SOC_N810
196 FILES:= \
197 $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
198 $(LINUX_DIR)/sound/soc/omap/snd-soc-n810.ko
199 AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-n810)
200 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap +kmod-sound-soc-omap-mcbsp
201 $(call AddDepends/sound)
202 endef
203
204 $(eval $(call KernelPackage,sound-soc-n810))
This page took 0.052443 seconds and 5 git commands to generate.