diff options
author | AceLan Kao <acelan.kao@canonical.com> | 2012-10-03 05:26:28 -0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-02-24 17:49:55 -0500 |
commit | 3da4cd2015630f50d8d80c6ff5089d3daa2306c6 (patch) | |
tree | b4a8da19603e006a16b2144cb284d1d7b810a54a /drivers/platform | |
parent | 98bfcb8e994404efc4832efec1c7ce533ef1fb67 (diff) |
asus-laptop: add all video switch keys
Fill up all the video switch keys in the map.
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 23c60558bfd3..a8792e81d1bc 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -321,9 +321,13 @@ static const struct key_entry asus_keymap[] = { | |||
321 | {KE_KEY, 0x5E, { KEY_WLAN } }, /* WLAN Enable */ | 321 | {KE_KEY, 0x5E, { KEY_WLAN } }, /* WLAN Enable */ |
322 | {KE_KEY, 0x5F, { KEY_WLAN } }, /* WLAN Disable */ | 322 | {KE_KEY, 0x5F, { KEY_WLAN } }, /* WLAN Disable */ |
323 | {KE_KEY, 0x60, { KEY_TOUCHPAD_ON } }, | 323 | {KE_KEY, 0x60, { KEY_TOUCHPAD_ON } }, |
324 | {KE_KEY, 0x61, { KEY_SWITCHVIDEOMODE } }, /* LCD Only */ | 324 | {KE_KEY, 0x61, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD only */ |
325 | {KE_KEY, 0x62, { KEY_SWITCHVIDEOMODE } }, /* CRT Only */ | 325 | {KE_KEY, 0x62, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT only */ |
326 | {KE_KEY, 0x63, { KEY_SWITCHVIDEOMODE } }, /* LCD + CRT */ | 326 | {KE_KEY, 0x63, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT */ |
327 | {KE_KEY, 0x64, { KEY_SWITCHVIDEOMODE } }, /* SDSP TV */ | ||
328 | {KE_KEY, 0x65, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + TV */ | ||
329 | {KE_KEY, 0x66, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV */ | ||
330 | {KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */ | ||
327 | {KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, /* Lock Touchpad */ | 331 | {KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, /* Lock Touchpad */ |
328 | {KE_KEY, 0x6C, { KEY_SLEEP } }, /* Suspend */ | 332 | {KE_KEY, 0x6C, { KEY_SLEEP } }, /* Suspend */ |
329 | {KE_KEY, 0x6D, { KEY_SLEEP } }, /* Hibernate */ | 333 | {KE_KEY, 0x6D, { KEY_SLEEP } }, /* Hibernate */ |
@@ -333,8 +337,24 @@ static const struct key_entry asus_keymap[] = { | |||
333 | {KE_KEY, 0x82, { KEY_CAMERA } }, | 337 | {KE_KEY, 0x82, { KEY_CAMERA } }, |
334 | {KE_KEY, 0x88, { KEY_RFKILL } }, /* Radio Toggle Key */ | 338 | {KE_KEY, 0x88, { KEY_RFKILL } }, /* Radio Toggle Key */ |
335 | {KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */ | 339 | {KE_KEY, 0x8A, { KEY_PROG1 } }, /* Color enhancement mode */ |
340 | {KE_KEY, 0x8C, { KEY_SWITCHVIDEOMODE } }, /* SDSP DVI only */ | ||
341 | {KE_KEY, 0x8D, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + DVI */ | ||
342 | {KE_KEY, 0x8E, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + DVI */ | ||
343 | {KE_KEY, 0x8F, { KEY_SWITCHVIDEOMODE } }, /* SDSP TV + DVI */ | ||
344 | {KE_KEY, 0x90, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + DVI */ | ||
345 | {KE_KEY, 0x91, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + TV + DVI */ | ||
346 | {KE_KEY, 0x92, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV + DVI */ | ||
347 | {KE_KEY, 0x93, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV + DVI */ | ||
336 | {KE_KEY, 0x95, { KEY_MEDIA } }, | 348 | {KE_KEY, 0x95, { KEY_MEDIA } }, |
337 | {KE_KEY, 0x99, { KEY_PHONE } }, | 349 | {KE_KEY, 0x99, { KEY_PHONE } }, |
350 | {KE_KEY, 0xA0, { KEY_SWITCHVIDEOMODE } }, /* SDSP HDMI only */ | ||
351 | {KE_KEY, 0xA1, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + HDMI */ | ||
352 | {KE_KEY, 0xA2, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + HDMI */ | ||
353 | {KE_KEY, 0xA3, { KEY_SWITCHVIDEOMODE } }, /* SDSP TV + HDMI */ | ||
354 | {KE_KEY, 0xA4, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + HDMI */ | ||
355 | {KE_KEY, 0xA5, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + TV + HDMI */ | ||
356 | {KE_KEY, 0xA6, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV + HDMI */ | ||
357 | {KE_KEY, 0xA7, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV + HDMI */ | ||
338 | {KE_KEY, 0xB5, { KEY_CALC } }, | 358 | {KE_KEY, 0xB5, { KEY_CALC } }, |
339 | {KE_KEY, 0xC4, { KEY_KBDILLUMUP } }, | 359 | {KE_KEY, 0xC4, { KEY_KBDILLUMUP } }, |
340 | {KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } }, | 360 | {KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } }, |