From e5aa5ddc36b6beee83aac1fb70cc3396e6adb43e Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jow@openwrt.org>
Date: Thu, 7 May 2009 14:05:42 +0000
Subject: 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>

SVN-Revision: 15684
---
 package/kernel/modules/other.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'package/kernel')

diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 9ea0f18..fcac951 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)
-- 
cgit v1.1