kernel: fix the pcspkr module, add proper dependencies, add the actual sound module

SVN-Revision: 33921
lede-17.01
Felix Fietkau 2012-10-25 15:11:35 +00:00
parent dca633f1c8
commit 686d42199b
1 changed files with 21 additions and 15 deletions

View File

@ -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))