From: Felix Fietkau Date: Thu, 25 Oct 2012 15:13:11 +0000 (+0000) Subject: kernel: fix the pcspkr module, add proper dependencies, add the actual sound module X-Git-Tag: attitude_adjustment_12.09~189 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=73d0e5b6a718fc911feba61ddbbe5ec11920bd74;p=openwrt%2Fsvn-archive%2Fopenwrt.git kernel: fix the pcspkr module, add proper dependencies, add the actual sound module Backport of r33921 SVN-Revision: 33926 --- diff --git a/package/kernel/modules/sound.mk b/package/kernel/modules/sound.mk index 4ccdc8b806..3d12ba650f 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))