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