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

* Re: [PATCH][RFC] input: Add KEY_MIC_MUTE
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien Nocera @ 2010-05-20 17:00 UTC (permalink / raw)
  To: Jerone Young; +Cc: linux-input

On Thu, 2010-05-20 at 11:50 -0500, Jerone Young wrote:
> 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.

There's a "Microphone" usage name listed in the HID Usage Tables (under
Consumer Page) which would probably do fine.

Do this button toggle the mute status?

Cheers


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

* Re: [PATCH][RFC] input: Add KEY_MIC_MUTE
  2010-05-20 17:00 ` Bastien Nocera
@ 2010-05-20 17:17   ` Jerone Young
  0 siblings, 0 replies; 3+ messages in thread
From: Jerone Young @ 2010-05-20 17:17 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-input

On Thu, 2010-05-20 at 18:00 +0100, Bastien Nocera wrote:
> On Thu, 2010-05-20 at 11:50 -0500, Jerone Young wrote:
> > 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.
> 
> There's a "Microphone" usage name listed in the HID Usage Tables (under
> Consumer Page) which would probably do fine.

Thanks for the pointer.  HID Usage Table seems like it would be in line
to what I'm trying to do. Though still doesn't define a set keycode
anywhere (this would actually be great to line this up to a standard).

> 
> Do this button toggle the mute status?

Yes it's a toggle for microphone (though done all in software) .. so no
hardware controls going on here. Right now on these Thinkpads sends an
acpi event, we can remap that to a standard key code once it is defined
(done in module thinkpad-acpi).

I also failed to mention before that there is also Thinkpad USB keyboard
as well with the key:
http://www.thinkpads.com/wp-content/gallery/thinkpad-usb-keyboard/lenovo_thinkpad_usb_ultranav_keyboard-top.jpg
It sends a keycode..though that can be remmapped in udev to whatever
ends up getting defined.

			Thanks,
				Jerone

> 
> Cheers
> 



^ permalink raw reply	[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).