Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759547Ab3CZLg4 (ORCPT ); Tue, 26 Mar 2013 07:36:56 -0400 Received: from mout.web.de ([212.227.15.3]:62474 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758178Ab3CZLgx (ORCPT ); Tue, 26 Mar 2013 07:36:53 -0400 From: Danny Baumann To: Matthew Garrett Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Danny Baumann Subject: [PATCH 1/1] dell-wmi: Add support for keys present on Inspiron 15R SE. Date: Tue, 26 Mar 2013 12:36:34 +0100 Message-Id: <1364297794-3931-2-git-send-email-dannybaumann@web.de> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1364297794-3931-1-git-send-email-dannybaumann@web.de> References: <1364297794-3931-1-git-send-email-dannybaumann@web.de> X-Provags-ID: V02:K0:LjkrAxdg3dtUwMkAqV1PEIe6gnXK2KHvg9+1DRWua5+ eLWmTpXaXaA0uu2zQ3IB/5kYMz0S+HOr46pDwTWcWythhkRuI8 eeT49S6uhp9OppsVVqvNR/9D80SmYJag55vuvDojUSTq+cy/Sd RYJgq9LvLEFWW9uM9jUsj8JLRhxfPd8GhfoPGvgYcm+f4/bF0l k0YXWPxzpl10Dia9o6ZTw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1527 Lines: 42 Those devices have some additional buttons: - A 'Windows Mobility Center' button that sends Windows+X - A 'Dell audio preset switch' button that sends key code 0xe02a on press (with auto-repeat) and 0xe02c on release - An 'instant launch' button that sends key code 0xe024 The first one doesn't require handling; the two latter ones do not have a real meaning in Linux, so bind them to launcher keycodes. Signed-off-by: Danny Baumann --- drivers/platform/x86/dell-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index fa9a217..7b1ffd3 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -88,6 +88,15 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = { { KE_IGNORE, 0xe020, { KEY_MUTE } }, + /* Instant launch button */ + { KE_KEY, 0xe024, { KEY_PROG3 } }, + + /* 'Dell audio with preset switch' button - + 0xe02a is fired on press (with auto-repeat), + 0xe02c is fired on release */ + { KE_IGNORE, 0xe02a, { KEY_RESERVED } }, + { KE_KEY, 0xe02c, { KEY_PROG4 } }, + /* Shortcut and audio panel keys */ { KE_IGNORE, 0xe025, { KEY_RESERVED } }, { KE_IGNORE, 0xe026, { KEY_RESERVED } }, -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/