From: Jerone Young <jerone.young@gmail.com>
To: linux-input@vger.kernel.org
Cc: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Subject: [PATCH] Add keycode for microphone mute key
Date: Fri, 22 Apr 2011 21:14:49 -0500 [thread overview]
Message-ID: <1303524889.2457.24.camel@laptop> (raw)
Lenovo is now including a key for muting the microphone on all Thinkpad
models & peripheral keyboards. Currently there is no way to deal with
this key being handled in a common fashion under Linux. This patch
defines a key code for microphone mute so that this key can be mapped
for Thinkpad models & peripheral keyboards.
By having a set keycode this key can be remapped to the common keycode
and userspace can then listen and take some action once the key is
pressed. A common action would be to mute the microphone mixer.
Thinkpad keyboard pic: http://bit.ly/hLxXL1
Thinkpad usb keyboard pic: http://bit.ly/gfNaQz
Signed-off-by: Jerone Young <jerone.young@gmail.com>
diff --git a/include/linux/input.h b/include/linux/input.h
index 771d6d8..4d8a8ae 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -673,6 +673,8 @@ struct input_keymap_entry {
#define KEY_CAMERA_LEFT 0x219
#define KEY_CAMERA_RIGHT 0x21a
+#define KEY_MICROPHONE_MUTE 0x21b /* microphone mute key */
+
#define BTN_TRIGGER_HAPPY 0x2c0
#define BTN_TRIGGER_HAPPY1 0x2c0
#define BTN_TRIGGER_HAPPY2 0x2c1
reply other threads:[~2011-04-23 2:14 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=1303524889.2457.24.camel@laptop \
--to=jerone.young@gmail.com \
--cc=herton.krzesinski@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).