aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-07 14:05:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-07 14:05:42 +0000
commit58843a1012d423e70a9bd6bc8e7ecd6dfe48ecf2 (patch)
tree68ffeab78ee1edfeafcea4e912c03edc12f3b52a /package/kernel
parentbbc7a4c8c72e105f4d1d43007e821534e34de1bc (diff)
downloadupstream-58843a1012d423e70a9bd6bc8e7ecd6dfe48ecf2.tar.gz
upstream-58843a1012d423e70a9bd6bc8e7ecd6dfe48ecf2.tar.bz2
upstream-58843a1012d423e70a9bd6bc8e7ecd6dfe48ecf2.zip
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 <b_tsiligiannis@silverton.gr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15684 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/modules/other.mk17
1 files changed, 17 insertions, 0 deletions
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)