HID: add more hotkeys in Asus AIO keyboards
authorKeng-Yu Lin <kengyu@canonical.com>
Mon, 30 Jan 2012 06:25:45 +0000 (14:25 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 2 Feb 2012 09:32:45 +0000 (10:32 +0100)
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>
drivers/hid/hid-chicony.c

index 4162505793c5cb12d03cc5037db762f7574d584b..b99af346fdff310a985fc01fd7fecd7024427e40 100644 (file)
@@ -49,6 +49,8 @@ static int ch_input_mapping(struct hid_device *hdev, struct hid_input *hi,
        case 0x00f2: ch_map_key_clear(KEY_BRIGHTNESSDOWN);      break;
        case 0x00f3: ch_map_key_clear(KEY_BRIGHTNESSUP);        break;
        case 0x00f4: ch_map_key_clear(KEY_DISPLAY_OFF); break;
+       case 0x00f7: ch_map_key_clear(KEY_CAMERA);      break;
+       case 0x00f8: ch_map_key_clear(KEY_PROG1);       break;
        default:
                return 0;
        }