[source] kernel: fix kmod-sound-hda-core on Linux 3.18

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 4 16:38:19 PDT 2016


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/4855fa35e37726b90466ed032cae46e4bb8cf83c

commit 4855fa35e37726b90466ed032cae46e4bb8cf83c
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Wed Oct 5 01:35:52 2016 +0200

    kernel: fix kmod-sound-hda-core on Linux 3.18
    
    The kmod-sound-hda-core module attempts to package snd-hda-core.ko which
    does not exist in Linux 3.18, therfore only use it for kernels >= 4.1
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 package/kernel/linux/modules/sound.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/kernel/linux/modules/sound.mk b/package/kernel/linux/modules/sound.mk
index 2f3e79f..1a2d4f6 100644
--- a/package/kernel/linux/modules/sound.mk
+++ b/package/kernel/linux/modules/sound.mk
@@ -292,17 +292,17 @@ define KernelPackage/sound-hda-core
   SUBMENU:=$(SOUND_MENU)
   TITLE:=HD Audio Sound Core Support
   KCONFIG:= \
-	CONFIG_SND_HDA_CORE \
+	CONFIG_SND_HDA_CORE at ge4.1 \
 	CONFIG_SND_HDA_HWDEP=y \
 	CONFIG_SND_HDA_RECONFIG=n \
 	CONFIG_SND_HDA_INPUT_BEEP=n \
 	CONFIG_SND_HDA_PATCH_LOADER=n \
 	CONFIG_SND_HDA_GENERIC
   FILES:= \
-	$(LINUX_DIR)/sound/hda/snd-hda-core.ko \
+	$(LINUX_DIR)/sound/hda/snd-hda-core.ko at ge4.1 \
 	$(LINUX_DIR)/sound/pci/hda/snd-hda-codec.ko \
 	$(LINUX_DIR)/sound/pci/hda/snd-hda-codec-generic.ko
-  AUTOLOAD:=$(call AutoProbe,snd-hda-core snd-hda-codec snd-hda-codec-generic)
+  AUTOLOAD:=$(call AutoProbe,snd-hda-core at ge4.1 snd-hda-codec snd-hda-codec-generic)
   $(call AddDepends/sound,+kmod-regmap)
 endef
 



More information about the lede-commits mailing list