[magicbox] fix the CF driver on 2.6.26.x, and create a package for it
[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 # $Id$
8
9 SOUND_MENU:=Sound Support
10
11 define KernelPackage/sound-core
12 SUBMENU:=$(SOUND_MENU)
13 TITLE:=Sound support
14 DEPENDS:=@PCI_SUPPORT||USB_SUPPORT
15 KCONFIG:= \
16 CONFIG_SOUND \
17 CONFIG_SND \
18 CONFIG_SND_HWDEP \
19 CONFIG_SND_RAWMIDI \
20 CONFIG_SND_TIMER \
21 CONFIG_SND_PCM \
22 CONFIG_SND_SEQUENCER \
23 CONFIG_SND_VIRMIDI \
24 CONFIG_SND_SEQ_DUMMY \
25 CONFIG_SND_SEQUENCER_OSS=y \
26 CONFIG_HOSTAUDIO
27 endef
28
29 define KernelPackage/sound-core/2.4
30 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD:=$(call AutoLoad,30,soundcore)
32 endef
33
34 define KernelPackage/sound-core/2.6
35 FILES:= \
36 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
37 $(LINUX_DIR)/sound/core/snd.$(LINUX_KMOD_SUFFIX) \
38 $(LINUX_DIR)/sound/core/snd-page-alloc.$(LINUX_KMOD_SUFFIX) \
39 $(LINUX_DIR)/sound/core/snd-hwdep.$(LINUX_KMOD_SUFFIX) \
40 $(LINUX_DIR)/sound/core/seq/snd-seq-device.$(LINUX_KMOD_SUFFIX) \
41 $(LINUX_DIR)/sound/core/snd-rawmidi.$(LINUX_KMOD_SUFFIX) \
42 $(LINUX_DIR)/sound/core/snd-timer.$(LINUX_KMOD_SUFFIX) \
43 $(LINUX_DIR)/sound/core/snd-pcm.$(LINUX_KMOD_SUFFIX) \
44 $(if $(CONFIG_SND_MIXER_OSS),$(LINUX_DIR)/sound/core/oss/snd-mixer-oss.$(LINUX_KMOD_SUFFIX)) \
45 $(if $(CONFIG_SND_PCM_OSS),$(LINUX_DIR)/sound/core/oss/snd-pcm-oss.$(LINUX_KMOD_SUFFIX))
46 AUTOLOAD:=$(call AutoLoad,30, \
47 soundcore \
48 snd \
49 snd-page-alloc \
50 snd-hwdep \
51 snd-seq-device \
52 snd-rawmidi \
53 snd-timer \
54 snd-pcm \
55 $(if $(CONFIG_SND_MIXER_OSS),snd-mixer-oss) \
56 $(if $(CONFIG_SND_PCM_OSS),snd-pcm-oss) \
57 )
58 endef
59
60 define KernelPackage/sound-core/uml-2.6
61 FILES:= \
62 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
63 $(LINUX_DIR)/arch/um/drivers/hostaudio.$(LINUX_KMOD_SUFFIX)
64 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
65 endef
66
67 define KernelPackage/sound-core/description
68 Kernel modules for sound support
69 endef
70
71 $(eval $(call KernelPackage,sound-core))
72
73 define KernelPackage/sound-i8x0
74 SUBMENU:=$(SOUND_MENU)
75 TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
76 DEPENDS:=kmod-sound-core
77 KCONFIG:=CONFIG_SND_INTEL8X0
78 FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.$(LINUX_KMOD_SUFFIX)
79 AUTOLOAD:=$(call AutoLoad,35,snd-i8x0)
80 endef
81
82 define KernelPackage/sound-i8x0/description
83 support for the integrated AC97 sound device on motherboards
84 with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
85 the M5455 Audio Controller.
86 endef
87
88 $(eval $(call KernelPackage,sound-i8x0))
89
90 define KernelPackage/sound-cs5535audio
91 SUBMENU:=$(SOUND_MENU)
92 TITLE:=CS5535 PCI Controller
93 DEPENDS:=kmod-sound-core
94 KCONFIG:=CONFIG_SND_CS5535AUDIO
95 FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.$(LINUX_KMOD_SUFFIX) \
96 $(LINUX_DIR)/sound/ac97_bus.$(LINUX_KMOD_SUFFIX) \
97 $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.$(LINUX_KMOD_SUFFIX)
98 AUTOLOAD:=$(call AutoLoad,35, ac97_bus snd-ac97-codec snd-cs5535audio)
99 endef
100
101 define KernelPackage/sound-cs5535audio/description
102 support for the integrated AC97 sound device on olpc
103 endef
104
105 $(eval $(call KernelPackage,sound-cs5535audio))
This page took 0.055011 seconds and 5 git commands to generate.