diff options
| author | Olivier Gay <ogay@logitech.com> | 2014-04-25 14:26:44 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-04-28 10:57:58 -0400 |
| commit | f362e690e5530dd8ace289da991bda558731678e (patch) | |
| tree | 3290585c9b7314751fd1ad5df108bbc357ede5d4 /include/uapi/linux | |
| parent | b81fd5ba6002306f0c2bf82514b2eeae6ee2bf32 (diff) | |
HID: add missing hid usages
Add some missing hid usages from consumer page, add
some display brightness control usages from approved hid usage
table request HUTTR41:
http://www.usb.org/developers/hidpage/HUTRR41.pdf
and add voice command usage from approved request HUTTR45:
http://www.usb.org/developers/hidpage/Voice_Command_Usage.pdf
[jkosina@suse.cz: removed KEY_BRIGHTNESS_TOGGLE / KEY_DISPLAYTOGGLE
conflict from hid-debug.c]
Signed-off-by: Olivier Gay <ogay@logitech.com>
Signed-off-by: Mathieu Meisser <mmeisser@logitech.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/input.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index bd24470d24a2..b75b5d6116b7 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h | |||
| @@ -461,7 +461,10 @@ struct input_keymap_entry { | |||
| 461 | #define KEY_VIDEO_NEXT 241 /* drive next video source */ | 461 | #define KEY_VIDEO_NEXT 241 /* drive next video source */ |
| 462 | #define KEY_VIDEO_PREV 242 /* drive previous video source */ | 462 | #define KEY_VIDEO_PREV 242 /* drive previous video source */ |
| 463 | #define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */ | 463 | #define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */ |
| 464 | #define KEY_BRIGHTNESS_ZERO 244 /* brightness off, use ambient */ | 464 | #define KEY_BRIGHTNESS_AUTO 244 /* Set Auto Brightness: manual |
| 465 | brightness control is off, | ||
| 466 | rely on ambient */ | ||
| 467 | #define KEY_BRIGHTNESS_ZERO KEY_BRIGHTNESS_AUTO | ||
| 465 | #define KEY_DISPLAY_OFF 245 /* display device to off state */ | 468 | #define KEY_DISPLAY_OFF 245 /* display device to off state */ |
| 466 | 469 | ||
| 467 | #define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */ | 470 | #define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */ |
| @@ -631,6 +634,7 @@ struct input_keymap_entry { | |||
| 631 | #define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */ | 634 | #define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */ |
| 632 | #define KEY_MESSENGER 0x1ae /* AL Instant Messaging */ | 635 | #define KEY_MESSENGER 0x1ae /* AL Instant Messaging */ |
| 633 | #define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */ | 636 | #define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */ |
| 637 | #define KEY_BRIGHTNESS_TOGGLE KEY_DISPLAYTOGGLE | ||
| 634 | #define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */ | 638 | #define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */ |
| 635 | #define KEY_LOGOFF 0x1b1 /* AL Logoff */ | 639 | #define KEY_LOGOFF 0x1b1 /* AL Logoff */ |
| 636 | 640 | ||
| @@ -722,6 +726,17 @@ struct input_keymap_entry { | |||
| 722 | 726 | ||
| 723 | #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ | 727 | #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ |
| 724 | 728 | ||
| 729 | #define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */ | ||
| 730 | #define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */ | ||
| 731 | #define KEY_JOURNAL 0x242 /* AL Log/Journal/Timecard */ | ||
| 732 | #define KEY_CONTROLPANEL 0x243 /* AL Control Panel */ | ||
| 733 | #define KEY_APPSELECT 0x244 /* AL Select Task/Application */ | ||
| 734 | #define KEY_SCREENSAVER 0x245 /* AL Screen Saver */ | ||
| 735 | #define KEY_VOICECOMMAND 0x246 /* Listening Voice Command */ | ||
| 736 | |||
| 737 | #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ | ||
| 738 | #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ | ||
| 739 | |||
| 725 | #define BTN_TRIGGER_HAPPY 0x2c0 | 740 | #define BTN_TRIGGER_HAPPY 0x2c0 |
| 726 | #define BTN_TRIGGER_HAPPY1 0x2c0 | 741 | #define BTN_TRIGGER_HAPPY1 0x2c0 |
| 727 | #define BTN_TRIGGER_HAPPY2 0x2c1 | 742 | #define BTN_TRIGGER_HAPPY2 0x2c1 |
