diff options
author | AceLan Kao <acelan.kao@canonical.com> | 2012-07-04 03:20:14 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-07-28 00:28:54 -0400 |
commit | 3766054fff4af1b58a1440a284907887f4d2e8be (patch) | |
tree | 128efc26a1b04d7879c53712b24450035e66cfb4 /drivers/platform | |
parent | d2044c5a3aafac552d28c1add16930821c24cbd0 (diff) |
asus-nb-wmi: add some video toggle keys
There are some new video switch keys that used by newer machines.
0xA0 - SDSP HDMI only
0xA1 - SDSP LCD + HDMI
0xA2 - SDSP CRT + HDMI
0xA3 - SDSP TV + HDMI
But in Linux, there is no suitable userspace application to handle this,
so, mapping them all to KEY_SWITCHVIDEOMODE.
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-nb-wmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 57712ff1a1de..6b0ebdeae916 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c | |||
@@ -192,6 +192,10 @@ static const struct key_entry asus_nb_wmi_keymap[] = { | |||
192 | { KE_KEY, 0x8A, { KEY_PROG1 } }, | 192 | { KE_KEY, 0x8A, { KEY_PROG1 } }, |
193 | { KE_KEY, 0x95, { KEY_MEDIA } }, | 193 | { KE_KEY, 0x95, { KEY_MEDIA } }, |
194 | { KE_KEY, 0x99, { KEY_PHONE } }, | 194 | { KE_KEY, 0x99, { KEY_PHONE } }, |
195 | { KE_KEY, 0xA0, { KEY_SWITCHVIDEOMODE } }, /* SDSP HDMI only */ | ||
196 | { KE_KEY, 0xA1, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + HDMI */ | ||
197 | { KE_KEY, 0xA2, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + HDMI */ | ||
198 | { KE_KEY, 0xA3, { KEY_SWITCHVIDEOMODE } }, /* SDSP TV + HDMI */ | ||
195 | { KE_KEY, 0xb5, { KEY_CALC } }, | 199 | { KE_KEY, 0xb5, { KEY_CALC } }, |
196 | { KE_KEY, 0xc4, { KEY_KBDILLUMUP } }, | 200 | { KE_KEY, 0xc4, { KEY_KBDILLUMUP } }, |
197 | { KE_KEY, 0xc5, { KEY_KBDILLUMDOWN } }, | 201 | { KE_KEY, 0xc5, { KEY_KBDILLUMDOWN } }, |