2007-09-20 10:27:38 +00:00
|
|
|
#
|
2013-07-15 23:18:33 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2007-09-20 10:27:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
SOUND_MENU:=Sound Support
|
|
|
|
|
2011-05-15 09:37:28 +00:00
|
|
|
# allow targets to override the soundcore stuff
|
2009-01-12 22:47:00 +00:00
|
|
|
SOUNDCORE_LOAD ?= \
|
|
|
|
soundcore \
|
|
|
|
snd \
|
|
|
|
snd-page-alloc \
|
|
|
|
snd-hwdep \
|
|
|
|
snd-seq-device \
|
|
|
|
snd-rawmidi \
|
|
|
|
snd-timer \
|
|
|
|
snd-pcm \
|
2009-03-19 11:29:21 +00:00
|
|
|
snd-mixer-oss \
|
|
|
|
snd-pcm-oss
|
2009-01-12 22:47:00 +00:00
|
|
|
|
|
|
|
SOUNDCORE_FILES ?= \
|
2010-07-12 14:06:13 +00:00
|
|
|
$(LINUX_DIR)/sound/soundcore.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-page-alloc.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-hwdep.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-rawmidi.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-timer.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-pcm.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
|
2009-01-12 22:47:00 +00:00
|
|
|
|
2013-03-17 19:46:00 +00:00
|
|
|
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.3.0)),1)
|
|
|
|
SOUNDCORE_LOAD += \
|
|
|
|
snd-compress
|
|
|
|
|
|
|
|
SOUNDCORE_FILES += \
|
|
|
|
$(LINUX_DIR)/sound/core/snd-compress.ko
|
|
|
|
endif
|
|
|
|
|
2013-11-12 01:09:15 +00:00
|
|
|
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.12.0)),1)
|
|
|
|
SOUNDCORE_LOAD += \
|
2013-11-25 14:09:48 +00:00
|
|
|
$(if $(CONFIG_SND_DMAENGINE_PCM),snd-pcm-dmaengine)
|
2013-11-12 01:09:15 +00:00
|
|
|
|
|
|
|
SOUNDCORE_FILES += \
|
2013-11-25 14:09:48 +00:00
|
|
|
$(if $(CONFIG_SND_DMAENGINE_PCM),$(LINUX_DIR)/sound/core/snd-pcm-dmaengine.ko)
|
2013-11-12 01:09:15 +00:00
|
|
|
endif
|
|
|
|
|
2011-05-15 09:37:28 +00:00
|
|
|
define KernelPackage/sound-core
|
|
|
|
SUBMENU:=$(SOUND_MENU)
|
|
|
|
TITLE:=Sound support
|
|
|
|
DEPENDS:=@AUDIO_SUPPORT
|
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_SOUND \
|
|
|
|
CONFIG_SND \
|
|
|
|
CONFIG_SND_HWDEP \
|
|
|
|
CONFIG_SND_RAWMIDI \
|
|
|
|
CONFIG_SND_TIMER \
|
|
|
|
CONFIG_SND_PCM \
|
|
|
|
CONFIG_SND_SEQUENCER \
|
|
|
|
CONFIG_SND_VIRMIDI \
|
|
|
|
CONFIG_SND_SEQ_DUMMY \
|
|
|
|
CONFIG_SND_SEQUENCER_OSS=y \
|
|
|
|
CONFIG_HOSTAUDIO \
|
|
|
|
CONFIG_SND_PCM_OSS \
|
|
|
|
CONFIG_SND_MIXER_OSS \
|
2013-03-17 19:46:00 +00:00
|
|
|
CONFIG_SOUND_OSS_CORE_PRECLAIM=y \
|
|
|
|
CONFIG_SND_COMPRESS_OFFLOAD
|
2009-01-12 22:47:00 +00:00
|
|
|
FILES:=$(SOUNDCORE_FILES)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
|
2011-05-15 09:37:28 +00:00
|
|
|
$(call AddDepends/input)
|
2007-09-20 10:27:38 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-23 08:56:46 +00:00
|
|
|
define KernelPackage/sound-core/uml
|
2007-09-20 10:27:38 +00:00
|
|
|
FILES:= \
|
2010-07-12 14:06:13 +00:00
|
|
|
$(LINUX_DIR)/sound/soundcore.ko \
|
|
|
|
$(LINUX_DIR)/arch/um/drivers/hostaudio.ko
|
2007-09-20 10:27:38 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-core/description
|
|
|
|
Kernel modules for sound support
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-core))
|
|
|
|
|
2010-01-22 08:18:04 +00:00
|
|
|
|
2010-04-24 11:42:17 +00:00
|
|
|
define AddDepends/sound
|
2007-12-03 21:21:17 +00:00
|
|
|
SUBMENU:=$(SOUND_MENU)
|
2010-04-29 04:04:19 +00:00
|
|
|
DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
|
2010-01-22 08:18:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2011-04-09 23:26:00 +00:00
|
|
|
define KernelPackage/ac97
|
|
|
|
TITLE:=ac97 controller
|
|
|
|
KCONFIG:=CONFIG_SND_AC97_CODEC
|
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/sound/ac97_bus.ko \
|
2013-02-20 09:41:48 +00:00
|
|
|
$(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko
|
2011-04-09 23:26:00 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec)
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/ac97/description
|
|
|
|
The ac97 controller
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,ac97))
|
|
|
|
|
|
|
|
|
2012-07-14 20:10:57 +00:00
|
|
|
define KernelPackage/sound-seq
|
|
|
|
TITLE:=Sequencer support
|
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/sound/core/seq/snd-seq.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/seq/snd-seq-midi-event.ko \
|
|
|
|
$(LINUX_DIR)/sound/core/seq/snd-seq-midi.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,35,snd-seq snd-seq-midi-event snd-seq-midi)
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-seq/description
|
|
|
|
Kernel modules for sequencer support
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-seq))
|
|
|
|
|
|
|
|
|
2010-01-22 08:18:04 +00:00
|
|
|
define KernelPackage/sound-i8x0
|
2007-12-03 21:21:17 +00:00
|
|
|
TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
|
2011-04-09 23:26:00 +00:00
|
|
|
DEPENDS:=+kmod-ac97
|
2007-12-03 21:21:17 +00:00
|
|
|
KCONFIG:=CONFIG_SND_INTEL8X0
|
2011-04-09 23:26:00 +00:00
|
|
|
FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/sound)
|
2007-12-03 21:21:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-i8x0/description
|
|
|
|
support for the integrated AC97 sound device on motherboards
|
2013-02-20 09:41:48 +00:00
|
|
|
with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
|
2007-12-03 21:21:17 +00:00
|
|
|
the M5455 Audio Controller.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-i8x0))
|
|
|
|
|
2010-01-22 08:18:04 +00:00
|
|
|
|
2007-12-31 13:33:54 +00:00
|
|
|
define KernelPackage/sound-cs5535audio
|
|
|
|
TITLE:=CS5535 PCI Controller
|
2011-04-09 23:26:00 +00:00
|
|
|
DEPENDS:=+kmod-ac97
|
2007-12-31 13:33:54 +00:00
|
|
|
KCONFIG:=CONFIG_SND_CS5535AUDIO
|
2011-04-09 23:26:00 +00:00
|
|
|
FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/sound)
|
2007-12-31 13:33:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-cs5535audio/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Support for the integrated AC97 sound device on olpc
|
2007-12-31 13:33:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-cs5535audio))
|
2010-03-11 01:35:12 +00:00
|
|
|
|
2010-03-11 09:12:44 +00:00
|
|
|
|
2010-03-11 01:35:12 +00:00
|
|
|
define KernelPackage/sound-soc-core
|
|
|
|
TITLE:=SoC sound support
|
2013-09-27 21:12:04 +00:00
|
|
|
DEPENDS:=+kmod-regmap +kmod-ac97
|
2010-03-11 09:12:44 +00:00
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_SND_SOC \
|
2012-12-10 21:05:32 +00:00
|
|
|
CONFIG_SND_SOC_DMAENGINE_PCM=y \
|
2010-03-11 09:12:44 +00:00
|
|
|
CONFIG_SND_SOC_ALL_CODECS=n
|
2010-03-11 01:35:12 +00:00
|
|
|
FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
|
2010-03-21 14:12:32 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
|
2010-04-29 04:04:19 +00:00
|
|
|
$(call AddDepends/sound)
|
2010-03-11 01:35:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-soc-core))
|
2010-10-07 15:35:49 +00:00
|
|
|
|
|
|
|
|
2012-07-24 19:43:10 +00:00
|
|
|
define KernelPackage/sound-soc-ac97
|
|
|
|
TITLE:=AC97 Codec support
|
|
|
|
KCONFIG:=CONFIG_SND_SOC_AC97_CODEC
|
|
|
|
FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-ac97.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,57,snd-soc-ac97)
|
2013-10-01 22:38:40 +00:00
|
|
|
DEPENDS:=+kmod-ac97 +kmod-sound-soc-core +TARGET_ep93xx:kmod-sound-soc-ep93xx-ac97
|
2012-07-24 19:43:10 +00:00
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-soc-ac97))
|
2012-10-10 11:38:54 +00:00
|
|
|
|
|
|
|
|
2013-07-15 23:18:33 +00:00
|
|
|
define KernelPackage/sound-soc-imx
|
|
|
|
TITLE:=IMX SoC support
|
2013-12-09 11:30:18 +00:00
|
|
|
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,3.12.0)),1)
|
2013-07-15 23:18:33 +00:00
|
|
|
KCONFIG:=\
|
2013-10-16 03:25:59 +00:00
|
|
|
CONFIG_SND_IMX_SOC \
|
|
|
|
CONFIG_SND_SOC_IMX_AUDMUX \
|
|
|
|
CONFIG_SND_SOC_FSL_SSI \
|
|
|
|
CONFIG_SND_SOC_IMX_PCM
|
2013-07-15 23:18:33 +00:00
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-imx-audmux.ko \
|
2013-10-16 03:25:59 +00:00
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-fsl-ssi.ko \
|
2013-07-15 23:18:33 +00:00
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-imx-pcm.ko
|
2013-10-16 03:25:59 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,56,snd-soc-imx-audmux snd-soc-fsl-ssi snd-soc-imx-pcm)
|
2013-12-09 11:30:18 +00:00
|
|
|
else
|
|
|
|
KCONFIG:=\
|
|
|
|
CONFIG_SND_IMX_SOC \
|
|
|
|
CONFIG_SND_SOC_IMX_AUDMUX \
|
|
|
|
CONFIG_SND_SOC_FSL_SSI \
|
|
|
|
CONFIG_SND_SOC_IMX_PCM_DMA
|
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-imx-audmux.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-fsl-ssi.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/fsl/imx-pcm-dma.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,56,snd-soc-imx-audmux snd-soc-fsl-ssi snd-soc-imx-pcm)
|
|
|
|
endif
|
2013-07-15 23:18:33 +00:00
|
|
|
DEPENDS:=@TARGET_imx6 +kmod-sound-soc-core
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-soc-imx/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Support for i.MX6 Platform sound (ssi/audmux/pcm)
|
2013-07-15 23:18:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-soc-imx))
|
|
|
|
|
|
|
|
|
2013-07-15 23:18:34 +00:00
|
|
|
define KernelPackage/sound-soc-imx-sgtl5000
|
|
|
|
TITLE:=IMX SoC support for SGTL5000
|
|
|
|
KCONFIG:=CONFIG_SND_SOC_IMX_SGTL5000
|
2013-10-16 03:25:59 +00:00
|
|
|
FILES:=\
|
|
|
|
$(LINUX_DIR)/sound/soc/codecs/snd-soc-sgtl5000.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/fsl/snd-soc-imx-sgtl5000.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,57,snd-soc-sgtl5000 snd-soc-imx-sgtl5000)
|
2013-07-15 23:18:34 +00:00
|
|
|
DEPENDS:=@TARGET_imx6 +kmod-sound-soc-imx
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sound-soc-imx-sgtl5000/description
|
2013-07-26 01:09:50 +00:00
|
|
|
Support for i.MX6 Platform sound SGTL5000 codec
|
2013-07-15 23:18:34 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-soc-imx-sgtl5000))
|
|
|
|
|
|
|
|
|
2012-10-10 11:38:54 +00:00
|
|
|
define KernelPackage/sound-soc-gw_avila
|
|
|
|
TITLE:=Gateworks Avila SoC sound support
|
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_SND_GW_AVILA_SOC \
|
|
|
|
CONFIG_SND_GW_AVILA_SOC_PCM \
|
|
|
|
CONFIG_SND_GW_AVILA_SOC_HSS
|
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-pcm.ko \
|
|
|
|
$(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-hss.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-gw-avila snd-soc-gw-avila-pcm snd-soc-gw-avila-hss)
|
|
|
|
DEPENDS:=@TARGET_ixp4xx +kmod-sound-soc-core
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,sound-soc-gw_avila))
|
2012-10-25 15:11:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/pcspkr
|
2014-03-20 23:15:56 +00:00
|
|
|
DEPENDS:=@TARGET_x86
|
2012-10-25 15:11:35 +00:00
|
|
|
TITLE:=PC speaker support
|
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_INPUT_PCSPKR \
|
|
|
|
CONFIG_SND_PCSP
|
|
|
|
FILES:= \
|
|
|
|
$(LINUX_DIR)/drivers/input/misc/pcspkr.ko \
|
|
|
|
$(LINUX_DIR)/sound/drivers/pcsp/snd-pcsp.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,pcspkr snd-pcsp)
|
|
|
|
$(call AddDepends/input)
|
|
|
|
$(call AddDepends/sound)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/pcspkr/description
|
|
|
|
This enables sounds (tones) through the pc speaker
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,pcspkr))
|