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>

SVN-Revision: 36072
lede-17.01
Florian Fainelli 2013-03-17 19:46:00 +00:00
parent 743e9e7009
commit b48e5f2111
1 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,14 @@ SOUNDCORE_FILES ?= \
$(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \ $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
$(LINUX_DIR)/sound/core/oss/snd-pcm-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 define KernelPackage/sound-core
SUBMENU:=$(SOUND_MENU) SUBMENU:=$(SOUND_MENU)
TITLE:=Sound support TITLE:=Sound support
@ -50,7 +58,8 @@ define KernelPackage/sound-core
CONFIG_HOSTAUDIO \ CONFIG_HOSTAUDIO \
CONFIG_SND_PCM_OSS \ CONFIG_SND_PCM_OSS \
CONFIG_SND_MIXER_OSS \ CONFIG_SND_MIXER_OSS \
CONFIG_SOUND_OSS_CORE_PRECLAIM=y CONFIG_SOUND_OSS_CORE_PRECLAIM=y \
CONFIG_SND_COMPRESS_OFFLOAD
FILES:=$(SOUNDCORE_FILES) FILES:=$(SOUNDCORE_FILES)
AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD)) AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
$(call AddDepends/input) $(call AddDepends/input)