public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch} turn off pcspeaker when unloading
@ 2004-11-05 14:13 matthieu castet
  0 siblings, 0 replies; only message in thread
From: matthieu castet @ 2004-11-05 14:13 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Hi,

this patch turn off the pc speaker when you unload it : with whe current 
version if you unload it when the speacker beep, the beep never stop.

Signed-Off-By: Matthieu Castet <castet.matthieu@free.fr>

[-- Attachment #2: pcspkr.patch --]
[-- Type: text/x-patch, Size: 358 bytes --]

--- linux/drivers/input/misc/pcspkr.c	2004-10-18 23:54:32.000000000 +0200
+++ linux/drivers/input/misc/pcspkr.c	2004-11-05 15:08:57.000000000 +0100
@@ -89,6 +89,8 @@
 static void __exit pcspkr_exit(void)
 {
         input_unregister_device(&pcspkr_dev);
+	/* turn off the speaker */
+	pcspkr_event(NULL, EV_SND, SND_BELL, 0);
 }
 
 module_init(pcspkr_init);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-05 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-05 14:13 [patch} turn off pcspeaker when unloading matthieu castet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox