From: Jerone Young <jerone.young@canonical.com>
To: linux-input@vger.kernel.org
Subject: [PATCH][RFC] input: Add KEY_MIC_MUTE
Date: Thu, 20 May 2010 11:50:28 -0500 [thread overview]
Message-ID: <1274374228.24413.150.camel@laptop> (raw)
Today Lenovo Thinkpads are coming with a new key for muting the
microphone. They started this with the T400s & it is now on T410(s)/510,
W510/W710, L412/512, X100e, Edge 13/14/15 Thinkpads. Currently 12
models, with more coming in the foreseeable future.
I want to define a keycode for microphone mute to be able take advantage
of this key in userspace.
The only issue is I'm not sure the best code to use, or if these are
defined from somewhere else? Here is what I propose .. though feedback
would be greatly appreciated.
Signed-off-by: Jerone Young <jerone.young@canonical.com>
diff --git a/include/linux/input.h b/include/linux/input.h
index 746d426..ca5373a 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -377,6 +377,8 @@ struct input_absinfo {
#define KEY_WIMAX 246
+#define KEY_MICROPHONE_MUTE 247 /* mute microphone */
+
/* Range 248 - 255 is reserved for special needs of AT keyboard driver
*/
#define BTN_MISC 0x100
next reply other threads:[~2010-05-20 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 16:50 Jerone Young [this message]
2010-05-20 17:00 ` [PATCH][RFC] input: Add KEY_MIC_MUTE Bastien Nocera
2010-05-20 17:17 ` Jerone Young
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=1274374228.24413.150.camel@laptop \
--to=jerone.young@canonical.com \
--cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).