diff options
author | Keng-Yu Lin <kengyu@canonical.com> | 2012-01-30 01:25:45 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-02-02 04:32:45 -0500 |
commit | 6c30d5a53229aad22bb675e0bd6eb518ecaa4316 (patch) | |
tree | 55bf9b076da47237139d013c101f064f972cbf4c | |
parent | 3596bb929f2abd3433c2eaa5755fad48ac207af1 (diff) |
HID: add more hotkeys in Asus AIO keyboards
Add support for the camera key. The hotkey for
Asus S.H.E(Super Hybrid Engine) mode is mapped to KEY_KEY_PROG1
just for notifying the userspace.
Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-chicony.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-chicony.c b/drivers/hid/hid-chicony.c index 4162505793c..b99af346fdf 100644 --- a/drivers/hid/hid-chicony.c +++ b/drivers/hid/hid-chicony.c | |||
@@ -49,6 +49,8 @@ static int ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, | |||
49 | case 0x00f2: ch_map_key_clear(KEY_BRIGHTNESSDOWN); break; | 49 | case 0x00f2: ch_map_key_clear(KEY_BRIGHTNESSDOWN); break; |
50 | case 0x00f3: ch_map_key_clear(KEY_BRIGHTNESSUP); break; | 50 | case 0x00f3: ch_map_key_clear(KEY_BRIGHTNESSUP); break; |
51 | case 0x00f4: ch_map_key_clear(KEY_DISPLAY_OFF); break; | 51 | case 0x00f4: ch_map_key_clear(KEY_DISPLAY_OFF); break; |
52 | case 0x00f7: ch_map_key_clear(KEY_CAMERA); break; | ||
53 | case 0x00f8: ch_map_key_clear(KEY_PROG1); break; | ||
52 | default: | 54 | default: |
53 | return 0; | 55 | return 0; |
54 | } | 56 | } |