8a1b4ef63cb889acc29f9d11793605149c45ad15
[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 DEPENDS:=@LINUX_2_6
14 KCONFIG:=CONFIG_INPUT_PCSPKR
15 FILES:=$(LINUX_DIR)/drivers/input/misc/pcspkr.$(LINUX_KMOD_SUFFIX)
16 AUTOLOAD:=$(call AutoLoad,50,pcspkr)
17 endef
18
19 define KernelPackage/pcspkr/description
20 This enables sounds (tones) through the pc speaker
21 endef
22
23 $(eval $(call KernelPackage,pcspkr))
24
25
26 define KernelPackage/sound-core
27 SUBMENU:=$(SOUND_MENU)
28 TITLE:=Sound support
29 DEPENDS:=@AUDIO_SUPPORT
30 KCONFIG:= \
31 CONFIG_SOUND \
32 CONFIG_SND \
33 CONFIG_SND_HWDEP \
34 CONFIG_SND_RAWMIDI \
35 CONFIG_SND_TIMER \
36 CONFIG_SND_PCM \
37 CONFIG_SND_SEQUENCER \
38 CONFIG_SND_VIRMIDI \
39 CONFIG_SND_SEQ_DUMMY \
40 CONFIG_SND_SEQUENCER_OSS=y \
41 CONFIG_HOSTAUDIO \
42 CONFIG_SND_PCM_OSS \
43 CONFIG_SND_MIXER_OSS \
44 CONFIG_SOUND_OSS_CORE_PRECLAIM=y
45 $(call AddDepends/input)
46 endef
47
48 define KernelPackage/sound-core/2.4
49 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
50 AUTOLOAD:=$(call AutoLoad,30,soundcore)
51 endef
52
53 # allow 2.6 targets to override the soundcore stuff
54 SOUNDCORE_LOAD ?= \
55 soundcore \
56 snd \
57 snd-page-alloc \
58 snd-hwdep \
59 snd-seq-device \
60 snd-rawmidi \
61 snd-timer \
62 snd-pcm \
63 snd-mixer-oss \
64 snd-pcm-oss
65
66 SOUNDCORE_FILES ?= \
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)
77
78 define KernelPackage/sound-core/2.6
79 FILES:=$(SOUNDCORE_FILES)
80 AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
81 endef
82
83 define KernelPackage/sound-core/uml
84 FILES:= \
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)
88 endef
89
90 define KernelPackage/sound-core/description
91 Kernel modules for sound support
92 endef
93
94 $(eval $(call KernelPackage,sound-core))
95
96
97 define AddDepends/sound
98 SUBMENU:=$(SOUND_MENU)
99 DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
100 endef
101
102
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)
109 endef
110
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.
115 endef
116
117 $(eval $(call KernelPackage,sound-i8x0))
118
119
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)
128 endef
129
130 define KernelPackage/sound-cs5535audio/description
131 support for the integrated AC97 sound device on olpc
132 endef
133
134 $(eval $(call KernelPackage,sound-cs5535audio))
135
136
137 define KernelPackage/sound-soc-core
138 TITLE:=SoC sound support
139 KCONFIG:= \
140 CONFIG_SND_SOC \
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)
145 endef
146
147 $(eval $(call KernelPackage,sound-soc-core))
This page took 0.053875 seconds and 3 git commands to generate.