From: Jo-Philipp Wich Date: Thu, 7 May 2009 14:05:42 +0000 (+0000) Subject: Add support for pc speaker PC speaker could be very useful on platforms which impleme... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e5aa5ddc36b6beee83aac1fb70cc3396e6adb43e;p=openwrt%2Fstaging%2Fynezz.git Add support for pc speaker PC speaker could be very useful on platforms which implement it. One could easily use the speaker to produce a sound where its pitch or duration varies according to signal strength or SNR of a wireless link. Signed-off-by: Vasilis Tsiligiannis SVN-Revision: 15684 --- diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index 9ea0f1885d..fcac951cac 100644 --- a/package/kernel/modules/other.mk +++ b/package/kernel/modules/other.mk @@ -103,6 +103,23 @@ endef $(eval $(call KernelPackage,lp)) +define KernelPackage/pcspkr + SUBMENU:=$(OTHER_MENU) + TITLE:=PC speaker support + DEPENDS:=@LINUX_2_6 + KCONFIG:=CONFIG_INPUT_PCSPKR + FILES:= \ + $(LINUX_DIR)/drivers/input/misc/pcspkr.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,50, \ + pcspkr \ + ) +endef + +define KernelPackage/pcspkr/description + This enables sounds (tones) through the pc speaker +endef + +$(eval $(call KernelPackage,pcspkr)) define KernelPackage/pcmcia-core SUBMENU:=$(OTHER_MENU) diff --git a/target/linux/generic-2.6/config-2.6.21 b/target/linux/generic-2.6/config-2.6.21 index c4757e6242..ddb549aab0 100644 --- a/target/linux/generic-2.6/config-2.6.21 +++ b/target/linux/generic-2.6/config-2.6.21 @@ -446,7 +446,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.23 b/target/linux/generic-2.6/config-2.6.23 index 4416450367..cd9298b79b 100644 --- a/target/linux/generic-2.6/config-2.6.23 +++ b/target/linux/generic-2.6/config-2.6.23 @@ -495,7 +495,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.25 b/target/linux/generic-2.6/config-2.6.25 index 608ad0a563..3acb84320b 100644 --- a/target/linux/generic-2.6/config-2.6.25 +++ b/target/linux/generic-2.6/config-2.6.25 @@ -523,7 +523,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.27 b/target/linux/generic-2.6/config-2.6.27 index 1d41c3e37a..1ca04cc479 100644 --- a/target/linux/generic-2.6/config-2.6.27 +++ b/target/linux/generic-2.6/config-2.6.27 @@ -582,7 +582,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.28 b/target/linux/generic-2.6/config-2.6.28 index 0bad55758e..1a193fb78a 100644 --- a/target/linux/generic-2.6/config-2.6.28 +++ b/target/linux/generic-2.6/config-2.6.28 @@ -628,7 +628,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.29 b/target/linux/generic-2.6/config-2.6.29 index a324ef54b3..8b3b1c5206 100644 --- a/target/linux/generic-2.6/config-2.6.29 +++ b/target/linux/generic-2.6/config-2.6.29 @@ -641,7 +641,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set diff --git a/target/linux/generic-2.6/config-2.6.30 b/target/linux/generic-2.6/config-2.6.30 index e367eb778f..8a41c71c0a 100644 --- a/target/linux/generic-2.6/config-2.6.30 +++ b/target/linux/generic-2.6/config-2.6.30 @@ -661,7 +661,7 @@ CONFIG_INITRAMFS_COMPRESSION_NONE=y # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set -# CONFIG_INPUT_MISC is not set +CONFIG_INPUT_MISC=y # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_PCSPKR is not set