From: matthieu castet <castet.matthieu@free.fr>
To: linux-kernel@vger.kernel.org
Subject: [patch} turn off pcspeaker when unloading
Date: Fri, 05 Nov 2004 15:13:31 +0100 [thread overview]
Message-ID: <418B8A8B.9020507@free.fr> (raw)
[-- 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);
reply other threads:[~2004-11-05 14:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=418B8A8B.9020507@free.fr \
--to=castet.matthieu@free.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox