summaryrefslogtreecommitdiff
path: root/package/kernel/modules
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-25 15:11:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-10-25 15:11:35 +0000
commit686d42199b90f8244ea9d37c66acd7ef3c6aa2ed (patch)
treea410d373ee7861e6472d74e7c3bac55eba3c0346 /package/kernel/modules
parentdca633f1c8441e0c3f47662c1dc51e29f0c0fa94 (diff)
downloadmtk-20170518-686d42199b90f8244ea9d37c66acd7ef3c6aa2ed.zip
mtk-20170518-686d42199b90f8244ea9d37c66acd7ef3c6aa2ed.tar.gz
mtk-20170518-686d42199b90f8244ea9d37c66acd7ef3c6aa2ed.tar.bz2
kernel: fix the pcspkr module, add proper dependencies, add the actual sound module
SVN-Revision: 33921
Diffstat (limited to 'package/kernel/modules')
-rw-r--r--package/kernel/modules/sound.mk36
1 files changed, 21 insertions, 15 deletions
diff --git a/package/kernel/modules/sound.mk b/package/kernel/modules/sound.mk
index 4ccdc8b..3d12ba6 100644
--- a/package/kernel/modules/sound.mk
+++ b/package/kernel/modules/sound.mk
@@ -7,21 +7,6 @@
SOUND_MENU:=Sound Support
-define KernelPackage/pcspkr
- SUBMENU:=$(SOUND_MENU)
- TITLE:=PC speaker support
- KCONFIG:=CONFIG_INPUT_PCSPKR
- FILES:=$(LINUX_DIR)/drivers/input/misc/pcspkr.ko
- AUTOLOAD:=$(call AutoLoad,50,pcspkr)
-endef
-
-define KernelPackage/pcspkr/description
- This enables sounds (tones) through the pc speaker
-endef
-
-$(eval $(call KernelPackage,pcspkr))
-
-
# allow targets to override the soundcore stuff
SOUNDCORE_LOAD ?= \
soundcore \
@@ -201,3 +186,24 @@ define KernelPackage/sound-soc-gw_avila
endef
$(eval $(call KernelPackage,sound-soc-gw_avila))
+
+
+define KernelPackage/pcspkr
+ DEPENDS:=@!TARGET_x86
+ TITLE:=PC speaker support
+ KCONFIG:= \
+ CONFIG_INPUT_PCSPKR \
+ CONFIG_SND_PCSP
+ FILES:= \
+ $(LINUX_DIR)/drivers/input/misc/pcspkr.ko \
+ $(LINUX_DIR)/sound/drivers/pcsp/snd-pcsp.ko
+ AUTOLOAD:=$(call AutoLoad,50,pcspkr snd-pcsp)
+ $(call AddDepends/input)
+ $(call AddDepends/sound)
+endef
+
+define KernelPackage/pcspkr/description
+ This enables sounds (tones) through the pc speaker
+endef
+
+$(eval $(call KernelPackage,pcspkr))