aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-03-17 19:46:00 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-03-17 19:46:00 +0000
commitef2ae2996a996cca46b8162cf3c027ad7ed3d6ad (patch)
treef6e0c87d39a41027469f08b238e22cd85027a9e8
parent567013758de5a94e9531f59c22eda3b960a96f14 (diff)
downloadupstream-ef2ae2996a996cca46b8162cf3c027ad7ed3d6ad.tar.gz
upstream-ef2ae2996a996cca46b8162cf3c027ad7ed3d6ad.tar.bz2
upstream-ef2ae2996a996cca46b8162cf3c027ad7ed3d6ad.zip
kernel: enable SND_COMPRESS_OFFLOAD for kernels >= 3.3
Most sound SoC driver enable it and rely it on to properly work. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36072 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/modules/sound.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/kernel/modules/sound.mk b/package/kernel/modules/sound.mk
index 877d31ba0f..494394603b 100644
--- a/package/kernel/modules/sound.mk
+++ b/package/kernel/modules/sound.mk
@@ -32,6 +32,14 @@ SOUNDCORE_FILES ?= \
$(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
$(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
+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
+
define KernelPackage/sound-core
SUBMENU:=$(SOUND_MENU)
TITLE:=Sound support
@@ -50,7 +58,8 @@ define KernelPackage/sound-core
CONFIG_HOSTAUDIO \
CONFIG_SND_PCM_OSS \
CONFIG_SND_MIXER_OSS \
- CONFIG_SOUND_OSS_CORE_PRECLAIM=y
+ CONFIG_SOUND_OSS_CORE_PRECLAIM=y \
+ CONFIG_SND_COMPRESS_OFFLOAD
FILES:=$(SOUNDCORE_FILES)
AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
$(call AddDepends/input)