2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 SOUND_MENU
:=Sound Support
10 define KernelPackage
/sound-core
11 SUBMENU
:=$(SOUND_MENU
)
13 DEPENDS
:=@AUDIO_SUPPORT
21 CONFIG_SND_SEQUENCER \
23 CONFIG_SND_SEQ_DUMMY \
24 CONFIG_SND_SEQUENCER_OSS
=y \
27 CONFIG_SND_MIXER_OSS \
28 CONFIG_SOUND_OSS_CORE_PRECLAIM
=y
29 $(call AddDepends
/input
)
32 define KernelPackage
/sound-core
/2.4
33 FILES
:=$(LINUX_DIR
)/drivers
/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
)
34 AUTOLOAD
:=$(call AutoLoad
,30,soundcore
)
37 # allow 2.6 targets to override the soundcore stuff
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
)
62 define KernelPackage
/sound-core
/2.6
63 FILES
:=$(SOUNDCORE_FILES
)
64 AUTOLOAD
:=$(call AutoLoad
,30,$(SOUNDCORE_LOAD
))
67 define KernelPackage
/sound-core
/uml
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
)
74 define KernelPackage
/sound-core
/description
75 Kernel modules for sound support
78 $(eval
$(call KernelPackage
,sound-core
))
81 define AddDepends
/sound
82 SUBMENU
:=$(SOUND_MENU
)
83 DEPENDS
:=kmod-sound-core
$(1)
87 define KernelPackage
/sound-i8x0
88 $(call AddDepends
/sound
,@
!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
)
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.
101 $(eval
$(call KernelPackage
,sound-i8x0
))
104 define KernelPackage
/sound-cs5535audio
105 $(call AddDepends
/sound
,@
!TARGET_uml
)
106 TITLE
:=CS5535 PCI Controller
107 KCONFIG
:=CONFIG_SND_CS5535AUDIO
108 FILES
:=$(LINUX_DIR
)/sound
/pci
/cs5535audio
/snd-cs5535audio.
$(LINUX_KMOD_SUFFIX
) \
109 $(LINUX_DIR
)/sound
/ac97_bus.
$(LINUX_KMOD_SUFFIX
) \
110 $(LINUX_DIR
)/sound
/pci
/ac97
/snd-ac97-codec.
$(LINUX_KMOD_SUFFIX
)
111 AUTOLOAD
:=$(call AutoLoad
,35, ac97_bus snd-ac97-codec snd-cs5535audio
)
114 define KernelPackage
/sound-cs5535audio
/description
115 support for the integrated AC97 sound device on olpc
118 $(eval
$(call KernelPackage
,sound-cs5535audio
))
121 define KernelPackage
/sound-soc-core
122 $(call AddDepends
/sound
)
123 TITLE
:=SoC sound support
126 CONFIG_SND_SOC_ALL_CODECS
=n
127 FILES
:=$(LINUX_DIR
)/sound
/soc
/snd-soc-core.ko
128 AUTOLOAD
:=$(call AutoLoad
,55, snd-soc-core
)
131 $(eval
$(call KernelPackage
,sound-soc-core
))