[package] defer the loading of spidev after spi master drivers
[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:=@PCI_SUPPORT||USB_SUPPORT||TARGET_uml
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 endef
30
31 define KernelPackage/sound-core/2.4
32 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
33 AUTOLOAD:=$(call AutoLoad,30,soundcore)
34 endef
35
36 # allow 2.6 targets to override the soundcore stuff
37 SOUNDCORE_LOAD ?= \
38 soundcore \
39 snd \
40 snd-page-alloc \
41 snd-hwdep \
42 snd-seq-device \
43 snd-rawmidi \
44 snd-timer \
45 snd-pcm \
46 snd-mixer-oss \
47 snd-pcm-oss
48
49 SOUNDCORE_FILES ?= \
50 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
51 $(LINUX_DIR)/sound/core/snd.$(LINUX_KMOD_SUFFIX) \
52 $(LINUX_DIR)/sound/core/snd-page-alloc.$(LINUX_KMOD_SUFFIX) \
53 $(LINUX_DIR)/sound/core/snd-hwdep.$(LINUX_KMOD_SUFFIX) \
54 $(LINUX_DIR)/sound/core/seq/snd-seq-device.$(LINUX_KMOD_SUFFIX) \
55 $(LINUX_DIR)/sound/core/snd-rawmidi.$(LINUX_KMOD_SUFFIX) \
56 $(LINUX_DIR)/sound/core/snd-timer.$(LINUX_KMOD_SUFFIX) \
57 $(LINUX_DIR)/sound/core/snd-pcm.$(LINUX_KMOD_SUFFIX) \
58 $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.$(LINUX_KMOD_SUFFIX) \
59 $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.$(LINUX_KMOD_SUFFIX)
60
61 define KernelPackage/sound-core/2.6
62 FILES:=$(SOUNDCORE_FILES)
63 AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
64 endef
65
66 define KernelPackage/sound-core/uml
67 FILES:= \
68 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
69 $(LINUX_DIR)/arch/um/drivers/hostaudio.$(LINUX_KMOD_SUFFIX)
70 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
71 endef
72
73 define KernelPackage/sound-core/description
74 Kernel modules for sound support
75 endef
76
77 $(eval $(call KernelPackage,sound-core))
78
79 define KernelPackage/sound-i8x0
80 SUBMENU:=$(SOUND_MENU)
81 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
82 DEPENDS:=kmod-sound-core @!TARGET_uml
83 KCONFIG:=CONFIG_SND_INTEL8X0
84 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.$(LINUX_KMOD_SUFFIX)
85 AUTOLOAD:=$(call AutoLoad,35,snd-i8x0)
86 endef
87
88 define KernelPackage/sound-i8x0/description
89 support for the integrated AC97 sound device on motherboards
90 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
91 the M5455 Audio Controller.
92 endef
93
94 $(eval $(call KernelPackage,sound-i8x0))
95
96 define KernelPackage/sound-ps3
97 SUBMENU:=$(SOUND_MENU)
98 TITLE:=PS3 Audio
99 DEPENDS:=kmod-sound-core @TARGET_ps3||@TARGET_ps3chk
100 KCONFIG:=CONFIG_SND_PS3 \
101 CONFIG_SND_PPC=y \
102 CONFIG_SND_PS3_DEFAULT_START_DELAY=2000
103 FILES:=$(LINUX_DIR)/sound/ppc/snd_ps3.$(LINUX_KMOD_SUFFIX)
104 AUTOLOAD:=$(call AutoLoad,35, snd_ps3)
105 endef
106
107 define KernelPackage/sound-ps3/description
108 support for the integrated PS3 audio device
109 endef
110
111 $(eval $(call KernelPackage,sound-ps3))
112
113 define KernelPackage/sound-cs5535audio
114 SUBMENU:=$(SOUND_MENU)
115 TITLE:=CS5535 PCI Controller
116 DEPENDS:=kmod-sound-core @!TARGET_uml
117 KCONFIG:=CONFIG_SND_CS5535AUDIO
118 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.$(LINUX_KMOD_SUFFIX) \
119 $(LINUX_DIR)/sound/ac97_bus.$(LINUX_KMOD_SUFFIX) \
120 $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.$(LINUX_KMOD_SUFFIX)
121 AUTOLOAD:=$(call AutoLoad,35, ac97_bus snd-ac97-codec snd-cs5535audio)
122 endef
123
124 define KernelPackage/sound-cs5535audio/description
125 support for the integrated AC97 sound device on olpc
126 endef
127
128 $(eval $(call KernelPackage,sound-cs5535audio))
This page took 0.052264 seconds and 5 git commands to generate.