SOUNDCORE_LOAD ?= \
soundcore \
snd \
- snd-page-alloc \
snd-hwdep \
snd-seq-device \
snd-rawmidi \
SOUNDCORE_FILES ?= \
$(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 \
$(if $(CONFIG_SND_DMAENGINE_PCM),$(LINUX_DIR)/sound/core/snd-pcm-dmaengine.ko)
endif
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,3.14.0)),1)
+SOUNDCORE_LOAD += \
+ snd-page-alloc
+
+SOUNDCORE_FILES += \
+ $(LINUX_DIR)/sound/core/snd-page-alloc.ko
+endif
+
define KernelPackage/sound-core
SUBMENU:=$(SOUND_MENU)
TITLE:=Sound support