From: jow Date: Thu, 7 May 2009 14:05:42 +0000 (+0000) Subject: Add support for pc speaker X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/955b9896b7d27ec1c9cf6140cc2fefc51d4c539b 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15684 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk index 9ea0f1885..fcac951ca 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 c4757e624..ddb549aab 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 441645036..cd9298b79 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 608ad0a56..3acb84320 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 1d41c3e37..1ca04cc47 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 0bad55758..1a193fb78 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 a324ef54b..8b3b1c520 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 e367eb778..8a41c71c0 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