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 define KernelPackage
/sound-core
26 SUBMENU
:=$(SOUND_MENU
)
28 DEPENDS
:=@AUDIO_SUPPORT
36 CONFIG_SND_SEQUENCER \
38 CONFIG_SND_SEQ_DUMMY \
39 CONFIG_SND_SEQUENCER_OSS
=y \
42 CONFIG_SND_MIXER_OSS \
43 CONFIG_SOUND_OSS_CORE_PRECLAIM
=y
44 $(call AddDepends
/input
)
47 define KernelPackage
/sound-core
/2.4
48 FILES
:=$(LINUX_DIR
)/drivers
/sound
/soundcore.ko
49 AUTOLOAD
:=$(call AutoLoad
,30,soundcore
)
52 # allow 2.6 targets to override the soundcore stuff
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
77 define KernelPackage
/sound-core
/2.6
78 FILES
:=$(SOUNDCORE_FILES
)
79 AUTOLOAD
:=$(call AutoLoad
,30,$(SOUNDCORE_LOAD
))
82 define KernelPackage
/sound-core
/uml
84 $(LINUX_DIR
)/sound
/soundcore.ko \
85 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.ko
86 AUTOLOAD
:=$(call AutoLoad
,30,soundcore hostaudio
)
89 define KernelPackage
/sound-core
/description
90 Kernel modules for sound support
93 $(eval
$(call KernelPackage
,sound-core
))
96 define AddDepends
/sound
97 SUBMENU
:=$(SOUND_MENU
)
98 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
102 define KernelPackage
/sound-i8x0
103 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
104 KCONFIG
:=CONFIG_SND_INTEL8X0
105 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-intel8x0.ko \
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 snd-intel8x0
)
109 $(call AddDepends
/sound
)
112 define KernelPackage
/sound-i8x0
/description
113 support for the integrated AC97 sound device on motherboards
114 with Intel
/SiS
/nVidia
/AMD chipsets
, or ALi chipsets using
115 the M5455 Audio Controller.
118 $(eval
$(call KernelPackage
,sound-i8x0
))
121 define KernelPackage
/sound-cs5535audio
122 TITLE
:=CS5535 PCI Controller
123 KCONFIG
:=CONFIG_SND_CS5535AUDIO
124 FILES
:=$(LINUX_DIR
)/sound
/pci
/cs5535audio
/snd-cs5535audio.ko \
125 $(LINUX_DIR
)/sound
/ac97_bus.ko \
126 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.ko
127 AUTOLOAD
:=$(call AutoLoad
,35, ac97_bus snd-ac97-codec snd-cs5535audio
)
128 $(call AddDepends
/sound
)
131 define KernelPackage
/sound-cs5535audio
/description
132 support for the integrated AC97 sound device on olpc
135 $(eval
$(call KernelPackage
,sound-cs5535audio
))
138 define KernelPackage
/sound-soc-core
139 TITLE
:=SoC sound support
142 CONFIG_SND_SOC_ALL_CODECS
=n
143 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
144 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
145 $(call AddDepends
/sound
)
148 $(eval
$(call KernelPackage
,sound-soc-core
))
151 define KernelPackage
/sound-soc-omap
152 TITLE
:=OMAP SoC sound support
155 FILES
:=$(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-omap.ko
156 AUTOLOAD
:=$(call AutoLoad
,60,snd-soc-omap
)
157 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-core
158 $(call AddDepends
/sound
)
161 $(eval
$(call KernelPackage
,sound-soc-omap
))
164 define KernelPackage
/sound-soc-omap-mcbsp
165 TITLE
:=OMAP SoC MCBSP support
167 CONFIG_SND_OMAP_SOC_MCBSP
168 FILES
:=$(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-omap-mcbsp.ko
169 AUTOLOAD
:=$(call AutoLoad
,61,snd-soc-omap-mcbsp
)
170 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-omap
171 $(call AddDepends
/sound
)
174 $(eval
$(call KernelPackage
,sound-soc-omap-mcbsp
))
177 define KernelPackage
/sound-soc-n810
178 TITLE
:=Nokia n810 SoC sound support
180 CONFIG_SND_OMAP_SOC_N810
182 $(LINUX_DIR
)/sound
/soc
/codecs
/snd-soc-tlv320aic3x.ko \
183 $(LINUX_DIR
)/sound
/soc
/omap
/snd-soc-n810.ko
184 AUTOLOAD
:=$(call AutoLoad
,65,snd-soc-tlv320aic3x snd-soc-n810
)
185 DEPENDS
:=@TARGET_omap24xx
+kmod-sound-soc-omap
+kmod-sound-soc-omap-mcbsp
186 $(call AddDepends
/sound
)
189 $(eval
$(call KernelPackage
,sound-soc-n810
))