2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 SOUND_MENU
:=Sound Support
11 # XXX: remove @!TARGET_* later when we have PCI & USB support properly detected on all targets
12 define KernelPackage
/sound-core
13 SUBMENU
:=$(SOUND_MENU
)
15 DEPENDS
:=@USB_SUPPORT @
!TARGET_atheros
26 define KernelPackage
/sound-core
/2.4
27 FILES
:=$(LINUX_DIR
)/drivers
/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
)
28 AUTOLOAD
:=$(call AutoLoad
,30,soundcore
)
31 define KernelPackage
/sound-core
/2.6
35 # CONFIG_SND_RAWMIDI \
39 $(LINUX_DIR
)/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
) \
40 $(LINUX_DIR
)/sound
/core
/snd.
$(LINUX_KMOD_SUFFIX
) \
41 $(LINUX_DIR
)/sound
/core
/snd-page-alloc.
$(LINUX_KMOD_SUFFIX
) \
42 $(LINUX_DIR
)/sound
/core
/snd-hwdep.
$(LINUX_KMOD_SUFFIX
) \
43 $(LINUX_DIR
)/sound
/core
/snd-rawmidi.
$(LINUX_KMOD_SUFFIX
) \
44 $(LINUX_DIR
)/sound
/core
/snd-timer.
$(LINUX_KMOD_SUFFIX
) \
45 $(LINUX_DIR
)/sound
/core
/snd-pcm.
$(LINUX_KMOD_SUFFIX
) \
46 $(if
$(CONFIG_SND_MIXER_OSS
),$(LINUX_DIR
)/sound
/core
/oss
/snd-mixer-oss.
$(LINUX_KMOD_SUFFIX
)) \
47 $(if
$(CONFIG_SND_PCM_OSS
),$(LINUX_DIR
)/sound
/core
/oss
/snd-pcm-oss.
$(LINUX_KMOD_SUFFIX
))
48 AUTOLOAD
:=$(call AutoLoad
,30, \
56 $(if
$(CONFIG_SND_MIXER_OSS
),snd-mixer-oss
) \
57 $(if
$(CONFIG_SND_PCM_OSS
),snd-pcm-oss
) \
61 define KernelPackage
/sound-core
/uml-2.6
65 $(LINUX_DIR
)/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
) \
66 $(LINUX_DIR
)/arch
/um
/drivers
/hostaudio.
$(LINUX_KMOD_SUFFIX
)
67 AUTOLOAD
:=$(call AutoLoad
,30,soundcore hostaudio
)
70 define KernelPackage
/sound-core
/description
71 Kernel modules for sound support
74 $(eval
$(call KernelPackage
,sound-core
))