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
14 KCONFIG
:=CONFIG_INPUT_PCSPKR
15 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/pcspkr.
$(LINUX_KMOD_SUFFIX
)
16 AUTOLOAD
:=$(call AutoLoad
,50,pcspkr
)
19 define KernelPackage
/pcspkr
/description
20 This enables sounds
(tones
) through the
pc speaker
23 $(eval
$(call KernelPackage
,pcspkr
))
26 define KernelPackage
/sound-core
27 SUBMENU
:=$(SOUND_MENU
)
29 DEPENDS
:=@AUDIO_SUPPORT
37 CONFIG_SND_SEQUENCER \
39 CONFIG_SND_SEQ_DUMMY \
40 CONFIG_SND_SEQUENCER_OSS
=y \
43 CONFIG_SND_MIXER_OSS \
44 CONFIG_SOUND_OSS_CORE_PRECLAIM
=y
45 $(call AddDepends
/input
)
48 define KernelPackage
/sound-core
/2.4
49 FILES
:=$(LINUX_DIR
)/drivers
/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
)
50 AUTOLOAD
:=$(call AutoLoad
,30,soundcore
)
53 # allow 2.6 targets to override the soundcore stuff
67 $(LINUX_DIR
)/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
) \
68 $(LINUX_DIR
)/sound
/core
/snd.
$(LINUX_KMOD_SUFFIX
) \
69 $(LINUX_DIR
)/sound
/core
/snd-page-alloc.
$(LINUX_KMOD_SUFFIX
) \
70 $(LINUX_DIR
)/sound
/core
/snd-hwdep.
$(LINUX_KMOD_SUFFIX
) \
71 $(LINUX_DIR
)/sound
/core
/seq
/snd-seq-device.
$(LINUX_KMOD_SUFFIX
) \
72 $(LINUX_DIR
)/sound
/core
/snd-rawmidi.
$(LINUX_KMOD_SUFFIX
) \
73 $(LINUX_DIR
)/sound
/core
/snd-timer.
$(LINUX_KMOD_SUFFIX
) \
74 $(LINUX_DIR
)/sound
/core
/snd-pcm.
$(LINUX_KMOD_SUFFIX
) \
75 $(LINUX_DIR
)/sound
/core
/oss
/snd-mixer-oss.
$(LINUX_KMOD_SUFFIX
) \
76 $(LINUX_DIR
)/sound
/core
/oss
/snd-pcm-oss.
$(LINUX_KMOD_SUFFIX
)
78 define KernelPackage
/sound-core
/2.6
79 FILES
:=$(SOUNDCORE_FILES
)
80 AUTOLOAD
:=$(call AutoLoad
,30,$(SOUNDCORE_LOAD
))
83 define KernelPackage
/sound-core
/uml
85 $(LINUX_DIR
)/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
) \
86 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.
$(LINUX_KMOD_SUFFIX
)
87 AUTOLOAD
:=$(call AutoLoad
,30,soundcore hostaudio
)
90 define KernelPackage
/sound-core
/description
91 Kernel modules for sound support
94 $(eval
$(call KernelPackage
,sound-core
))
97 define AddDepends
/sound
98 SUBMENU
:=$(SOUND_MENU
)
99 DEPENDS
+=kmod-sound-core
$(1) @
!TARGET_uml
103 define KernelPackage
/sound-i8x0
104 TITLE
:=Intel
/SiS
/nVidia
/AMD
/ALi AC97 Controller
105 KCONFIG
:=CONFIG_SND_INTEL8X0
106 FILES
:=$(LINUX_DIR
)/sound
/pci
/snd-intel8x0.
$(LINUX_KMOD_SUFFIX
)
107 AUTOLOAD
:=$(call AutoLoad
,35,snd-i8x0
)
108 $(call AddDepends
/sound
)
111 define KernelPackage
/sound-i8x0
/description
112 support for the integrated AC97 sound device on motherboards
113 with Intel
/SiS
/nVidia
/AMD chipsets
, or ALi chipsets using
114 the M5455 Audio Controller.
117 $(eval
$(call KernelPackage
,sound-i8x0
))
120 define KernelPackage
/sound-cs5535audio
121 TITLE
:=CS5535 PCI Controller
122 KCONFIG
:=CONFIG_SND_CS5535AUDIO
123 FILES
:=$(LINUX_DIR
)/sound
/pci
/cs5535audio
/snd-cs5535audio.
$(LINUX_KMOD_SUFFIX
) \
124 $(LINUX_DIR
)/sound
/ac97_bus.
$(LINUX_KMOD_SUFFIX
) \
125 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.
$(LINUX_KMOD_SUFFIX
)
126 AUTOLOAD
:=$(call AutoLoad
,35, ac97_bus snd-ac97-codec snd-cs5535audio
)
127 $(call AddDepends
/sound
)
130 define KernelPackage
/sound-cs5535audio
/description
131 support for the integrated AC97 sound device on olpc
134 $(eval
$(call KernelPackage
,sound-cs5535audio
))
137 define KernelPackage
/sound-soc-core
138 TITLE
:=SoC sound support
141 CONFIG_SND_SOC_ALL_CODECS
=n
142 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
143 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
144 $(call AddDepends
/sound
)
147 $(eval
$(call KernelPackage
,sound-soc-core
))