sony-laptop: Add support for extended hotkeys

Previous thread: sony-laptop: Add rfkill support on new models by Linux Kernel Mailing List on Sunday, April 5, 2009 - 12:49 pm. (1 message)

Next thread: sony-laptop: merge Type4 into Type3 by Linux Kernel Mailing List on Sunday, April 5, 2009 - 12:49 pm. (1 message)
From: Linux Kernel Mailing List
Date: Sunday, April 5, 2009 - 12:49 pm

Gitweb:     http://git.kernel.org/linus/45c7942ba8f6b7d5d1147c10f84f0cbf5fa3a2b8
Commit:     45c7942ba8f6b7d5d1147c10f84f0cbf5fa3a2b8
Parent:     6cc056bc31ea9910afb01adc0848bb6ae68e0205
Author:     Matthew Garrett <mjg59@srcf.ucam.org>
AuthorDate: Thu Mar 26 21:58:16 2009 +0900
Committer:  Len Brown <len.brown@intel.com>
CommitDate: Fri Mar 27 12:18:30 2009 -0400

    sony-laptop: Add support for extended hotkeys
    
    Recent Sony SR-series machines have an additional set of buttons accessed
    via the 0x127 method rather than the 0x100 method. Add support for these.
    
    Signed-off-by: Matthew Garrett <mjg@redhat.com>
    Signed-off-by: Mattia Dongili <malattia@linux.it>
    Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/platform/x86/sony-laptop.c |   65 +++++++++++++++++++++++++++++-------
 include/linux/sonypi.h             |    4 ++
 2 files changed, 57 insertions(+), 12 deletions(-)

diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index f458870..e000c9f 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -226,6 +226,10 @@ static int sony_laptop_input_index[] = {
 	49,	/* 62 SONYPI_EVENT_ZOOM_IN_PRESSED */
 	50,	/* 63 SONYPI_EVENT_ZOOM_OUT_PRESSED */
 	51,	/* 64 SONYPI_EVENT_CD_EJECT_PRESSED */
+	52,	/* 65 SONYPI_EVENT_MODEKEY_PRESSED */
+	53,	/* 66 SONYPI_EVENT_PKEY_P4 */
+	54,	/* 67 SONYPI_EVENT_PKEY_P5 */
+	55,	/* 68 SONYPI_EVENT_SETTINGKEY_PRESSED */
 };
 
 static int sony_laptop_input_keycode_map[] = {
@@ -280,7 +284,11 @@ static int sony_laptop_input_keycode_map[] = {
 	KEY_WLAN,	/* 48 SONYPI_EVENT_WIRELESS_OFF */
 	KEY_ZOOMIN,	/* 49 SONYPI_EVENT_ZOOM_IN_PRESSED */
 	KEY_ZOOMOUT,	/* 50 SONYPI_EVENT_ZOOM_OUT_PRESSED */
-	KEY_EJECTCD	/* 51 SONYPI_EVENT_CD_EJECT_PRESSED */
+	KEY_EJECTCD,	/* 51 SONYPI_EVENT_CD_EJECT_PRESSED */
+	KEY_F13,	/* 52 SONYPI_EVENT_MODEKEY_PRESSED */
+	KEY_PROG4,	/* 53 SONYPI_EVENT_PKEY_P4 */
+	KEY_F14,	/* 54 SONYPI_EVENT_PKEY_P5 ...
Previous thread: sony-laptop: Add rfkill support on new models by Linux Kernel Mailing List on Sunday, April 5, 2009 - 12:49 pm. (1 message)

Next thread: sony-laptop: merge Type4 into Type3 by Linux Kernel Mailing List on Sunday, April 5, 2009 - 12:49 pm. (1 message)