f054d870cb0987a5ecc937fcb8a7a2a84bb3785a
[openwrt/svn-archive/archive.git] / package / kernel / modules / sound.mk
1 #
2 # Copyright (C) 2006-2012 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-seq
112 TITLE:=Sequencer support
113 FILES:= \
114 $(LINUX_DIR)/sound/core/seq/snd-seq.ko \
115 $(LINUX_DIR)/sound/core/seq/snd-seq-midi-event.ko \
116 $(LINUX_DIR)/sound/core/seq/snd-seq-midi.ko
117 AUTOLOAD:=$(call AutoLoad,35,snd-seq snd-seq-midi-event snd-seq-midi)
118 $(call AddDepends/sound)
119 endef
120
121 define KernelPackage/sound-seq/description
122 Kernel modules for sequencer support
123 endef
124
125 $(eval $(call KernelPackage,sound-seq))
126
127
128 define KernelPackage/sound-i8x0
129 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
130 DEPENDS:=+kmod-ac97
131 KCONFIG:=CONFIG_SND_INTEL8X0
132 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
133 AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
134 $(call AddDepends/sound)
135 endef
136
137 define KernelPackage/sound-i8x0/description
138 support for the integrated AC97 sound device on motherboards
139 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
140 the M5455 Audio Controller.
141 endef
142
143 $(eval $(call KernelPackage,sound-i8x0))
144
145
146 define KernelPackage/sound-cs5535audio
147 TITLE:=CS5535 PCI Controller
148 DEPENDS:=+kmod-ac97
149 KCONFIG:=CONFIG_SND_CS5535AUDIO
150 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
151 AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
152 $(call AddDepends/sound)
153 endef
154
155 define KernelPackage/sound-cs5535audio/description
156 support for the integrated AC97 sound device on olpc
157 endef
158
159 $(eval $(call KernelPackage,sound-cs5535audio))
160
161
162 define KernelPackage/sound-soc-core
163 TITLE:=SoC sound support
164 KCONFIG:= \
165 CONFIG_SND_SOC \
166 CONFIG_SND_SOC_ALL_CODECS=n
167 FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
168 AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
169 $(call AddDepends/sound)
170 endef
171
172 $(eval $(call KernelPackage,sound-soc-core))
173
174
175 define KernelPackage/sound-soc-ac97
176 TITLE:=AC97 Codec support
177 KCONFIG:=CONFIG_SND_SOC_AC97_CODEC
178 FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-ac97.ko
179 AUTOLOAD:=$(call AutoLoad,57,snd-soc-ac97)
180 DEPENDS:=+kmod-ac97 +kmod-sound-soc-core
181 $(call AddDepends/sound)
182 endef
183
184 $(eval $(call KernelPackage,sound-soc-ac97))