imagebuilder: clean opkg files if requested (patch from #9866)
[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 # allow targets to override the soundcore stuff
26 SOUNDCORE_LOAD ?= \
27 soundcore \
28 snd \
29 snd-page-alloc \
30 snd-hwdep \
31 snd-seq-device \
32 snd-rawmidi \
33 snd-timer \
34 snd-pcm \
35 snd-mixer-oss \
36 snd-pcm-oss
37
38 SOUNDCORE_FILES ?= \
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
49
50 define KernelPackage/sound-core
51 SUBMENU:=$(SOUND_MENU)
52 TITLE:=Sound support
53 DEPENDS:=@AUDIO_SUPPORT
54 KCONFIG:= \
55 CONFIG_SOUND \
56 CONFIG_SND \
57 CONFIG_SND_HWDEP \
58 CONFIG_SND_RAWMIDI \
59 CONFIG_SND_TIMER \
60 CONFIG_SND_PCM \
61 CONFIG_SND_SEQUENCER \
62 CONFIG_SND_VIRMIDI \
63 CONFIG_SND_SEQ_DUMMY \
64 CONFIG_SND_SEQUENCER_OSS=y \
65 CONFIG_HOSTAUDIO \
66 CONFIG_SND_PCM_OSS \
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)
72 endef
73
74 define KernelPackage/sound-core/uml
75 FILES:= \
76 $(LINUX_DIR)/sound/soundcore.ko \
77 $(LINUX_DIR)/arch/um/drivers/hostaudio.ko
78 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
79 endef
80
81 define KernelPackage/sound-core/description
82 Kernel modules for sound support
83 endef
84
85 $(eval $(call KernelPackage,sound-core))
86
87
88 define AddDepends/sound
89 SUBMENU:=$(SOUND_MENU)
90 DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
91 endef
92
93
94 define KernelPackage/ac97
95 TITLE:=ac97 controller
96 KCONFIG:=CONFIG_SND_AC97_CODEC
97 FILES:= \
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)
102 endef
103
104 define KernelPackage/ac97/description
105 The ac97 controller
106 endef
107
108 $(eval $(call KernelPackage,ac97))
109
110
111 define KernelPackage/sound-i8x0
112 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
113 DEPENDS:=+kmod-ac97
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)
118 endef
119
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.
124 endef
125
126 $(eval $(call KernelPackage,sound-i8x0))
127
128
129 define KernelPackage/sound-cs5535audio
130 TITLE:=CS5535 PCI Controller
131 DEPENDS:=+kmod-ac97
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)
136 endef
137
138 define KernelPackage/sound-cs5535audio/description
139 support for the integrated AC97 sound device on olpc
140 endef
141
142 $(eval $(call KernelPackage,sound-cs5535audio))
143
144
145 define KernelPackage/sound-soc-core
146 TITLE:=SoC sound support
147 KCONFIG:= \
148 CONFIG_SND_SOC \
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)
153 endef
154
155 $(eval $(call KernelPackage,sound-soc-core))
156
157
158 define KernelPackage/sound-soc-omap
159 TITLE:=OMAP SoC sound support
160 KCONFIG:= \
161 CONFIG_SND_OMAP_SOC
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)
166 endef
167
168 $(eval $(call KernelPackage,sound-soc-omap))
169
170
171 define KernelPackage/sound-soc-omap-mcbsp
172 TITLE:=OMAP SoC MCBSP support
173 KCONFIG:= \
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)
179 endef
180
181 $(eval $(call KernelPackage,sound-soc-omap-mcbsp))
182
183
184 define KernelPackage/sound-soc-n810
185 TITLE:=Nokia n810 SoC sound support
186 KCONFIG:= \
187 CONFIG_SND_OMAP_SOC_N810
188 FILES:= \
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)
194 endef
195
196 $(eval $(call KernelPackage,sound-soc-n810))
This page took 0.059704 seconds and 5 git commands to generate.