linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][RFC] input: Add KEY_MIC_MUTE
@ 2010-05-20 16:50 Jerone Young
  2010-05-20 17:00 ` Bastien Nocera
  0 siblings, 1 reply; 3+ messages in thread
From: Jerone Young @ 2010-05-20 16:50 UTC (permalink / raw)
  To: linux-input

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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-20 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 16:50 [PATCH][RFC] input: Add KEY_MIC_MUTE Jerone Young
2010-05-20 17:00 ` Bastien Nocera
2010-05-20 17:17   ` Jerone Young

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).