x86: add kernel module for AMD CS5535/CS5536 audio chipset
authorCezary Jackiewicz <cezary@eko.one.pl>
Wed, 4 Jan 2017 17:51:35 +0000 (18:51 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Jan 2017 14:35:20 +0000 (15:35 +0100)
Add support for the integrated AC97 sound device on motherboards
with AMD CS5535/CS5536 chipsets.
Tested on Wyse Winterm S30.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
target/linux/x86/modules.mk [new file with mode: 0644]

diff --git a/target/linux/x86/modules.mk b/target/linux/x86/modules.mk
new file mode 100644 (file)
index 0000000..656500b
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2017 Cezary Jackiewicz <cezary@eko.one.pll>
+#
+# This is free software, licensed under the GNU General Public License v2.
+#
+
+define KernelPackage/sound-cs5535audio
+  TITLE:=CS5535/CS5536 Audio Controller
+  DEPENDS:=@TARGET_x86_geode +kmod-ac97
+  KCONFIG:=CONFIG_SND_CS5535AUDIO
+  FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
+  AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
+  $(call AddDepends/sound)
+endef
+
+define KernelPackage/sound-cs5535audio/description
+ Support for the integrated AC97 sound device on motherboards
+ with AMD CS5535/CS5536 chipsets.
+endef
+
+$(eval $(call KernelPackage,sound-cs5535audio))