package/kernel: load target specific modules .mk files after generic ones
[openwrt.git] / package / kernel / modules / sound.mk
1 #
2 # Copyright (C) 2006-2008 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/sound-core
11 SUBMENU:=$(SOUND_MENU)
12 TITLE:=Sound support
13 DEPENDS:=@AUDIO_SUPPORT
14 KCONFIG:= \
15 CONFIG_SOUND \
16 CONFIG_SND \
17 CONFIG_SND_HWDEP \
18 CONFIG_SND_RAWMIDI \
19 CONFIG_SND_TIMER \
20 CONFIG_SND_PCM \
21 CONFIG_SND_SEQUENCER \
22 CONFIG_SND_VIRMIDI \
23 CONFIG_SND_SEQ_DUMMY \
24 CONFIG_SND_SEQUENCER_OSS=y \
25 CONFIG_HOSTAUDIO \
26 CONFIG_SND_PCM_OSS \
27 CONFIG_SND_MIXER_OSS \
28 CONFIG_SOUND_OSS_CORE_PRECLAIM=y
29 $(call AddDepends/input)
30 endef
31
32 define KernelPackage/sound-core/2.4
33 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
34 AUTOLOAD:=$(call AutoLoad,30,soundcore)
35 endef
36
37 # allow 2.6 targets to override the soundcore stuff
38 SOUNDCORE_LOAD ?= \
39 soundcore \
40 snd \
41 snd-page-alloc \
42 snd-hwdep \
43 snd-seq-device \
44 snd-rawmidi \
45 snd-timer \
46 snd-pcm \
47 snd-mixer-oss \
48 snd-pcm-oss
49
50 SOUNDCORE_FILES ?= \
51 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
52 $(LINUX_DIR)/sound/core/snd.$(LINUX_KMOD_SUFFIX) \
53 $(LINUX_DIR)/sound/core/snd-page-alloc.$(LINUX_KMOD_SUFFIX) \
54 $(LINUX_DIR)/sound/core/snd-hwdep.$(LINUX_KMOD_SUFFIX) \
55 $(LINUX_DIR)/sound/core/seq/snd-seq-device.$(LINUX_KMOD_SUFFIX) \
56 $(LINUX_DIR)/sound/core/snd-rawmidi.$(LINUX_KMOD_SUFFIX) \
57 $(LINUX_DIR)/sound/core/snd-timer.$(LINUX_KMOD_SUFFIX) \
58 $(LINUX_DIR)/sound/core/snd-pcm.$(LINUX_KMOD_SUFFIX) \
59 $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.$(LINUX_KMOD_SUFFIX) \
60 $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.$(LINUX_KMOD_SUFFIX)
61
62 define KernelPackage/sound-core/2.6
63 FILES:=$(SOUNDCORE_FILES)
64 AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
65 endef
66
67 define KernelPackage/sound-core/uml
68 FILES:= \
69 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
70 $(LINUX_DIR)/arch/um/drivers/hostaudio.$(LINUX_KMOD_SUFFIX)
71 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
72 endef
73
74 define KernelPackage/sound-core/description
75 Kernel modules for sound support
76 endef
77
78 $(eval $(call KernelPackage,sound-core))
79
80
81 define KernelPackage/sound/Depends
82 SUBMENU:=$(SOUND_MENU)
83 DEPENDS:=kmod-sound-core $(1)
84 endef
85
86
87 define KernelPackage/sound-i8x0
88 $(call KernelPackage/sound/Depends,@!TARGET_uml)
89 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
90 KCONFIG:=CONFIG_SND_INTEL8X0
91 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.$(LINUX_KMOD_SUFFIX)
92 AUTOLOAD:=$(call AutoLoad,35,snd-i8x0)
93 endef
94
95 define KernelPackage/sound-i8x0/description
96 support for the integrated AC97 sound device on motherboards
97 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
98 the M5455 Audio Controller.
99 endef
100
101 $(eval $(call KernelPackage,sound-i8x0))
102
103
104 define KernelPackage/sound-ps3
105 $(call KernelPackage/sound/Depends,@TARGET_ps3||TARGET_ps3chk)
106 TITLE:=PS3 Audio
107 KCONFIG:=CONFIG_SND_PS3 \
108 CONFIG_SND_PPC=y \
109 CONFIG_SND_PS3_DEFAULT_START_DELAY=2000
110 FILES:=$(LINUX_DIR)/sound/ppc/snd_ps3.$(LINUX_KMOD_SUFFIX)
111 AUTOLOAD:=$(call AutoLoad,35, snd_ps3)
112 endef
113
114 define KernelPackage/sound-ps3/description
115 support for the integrated PS3 audio device
116 endef
117
118 $(eval $(call KernelPackage,sound-ps3))
119
120
121 define KernelPackage/sound-cs5535audio
122 $(call KernelPackage/sound/Depends,@!TARGET_uml)
123 TITLE:=CS5535 PCI Controller
124 KCONFIG:=CONFIG_SND_CS5535AUDIO
125 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.$(LINUX_KMOD_SUFFIX) \
126 $(LINUX_DIR)/sound/ac97_bus.$(LINUX_KMOD_SUFFIX) \
127 $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.$(LINUX_KMOD_SUFFIX)
128 AUTOLOAD:=$(call AutoLoad,35, ac97_bus snd-ac97-codec snd-cs5535audio)
129 endef
130
131 define KernelPackage/sound-cs5535audio/description
132 support for the integrated AC97 sound device on olpc
133 endef
134
135 $(eval $(call KernelPackage,sound-cs5535audio))
136
137
138 define KernelPackage/sound-soc-core
139 $(call KernelPackage/sound/Depends)
140 TITLE:=SoC sound support
141 KCONFIG:= \
142 CONFIG_SND_SOC \
143 CONFIG_SND_SOC_ALL_CODECS=n
144 FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
145 AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
146 endef
147
148 $(eval $(call KernelPackage,sound-soc-core))
This page took 0.055113 seconds and 5 git commands to generate.