From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corentin Chary Subject: [PATCH 04/16] asus-wmi: Enable autorepeat for hotkey input device Date: Mon, 4 Jul 2011 09:49:20 +0200 Message-ID: <1309765760-22045-1-git-send-email-corentin.chary@gmail.com> References: <20110701141558.GB1363@srcf.ucam.org> Return-path: Received: from fb2.tech.numericable.fr ([82.216.111.50]:44431 "EHLO fb2.tech.numericable.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753812Ab1GDHuJ (ORCPT ); Mon, 4 Jul 2011 03:50:09 -0400 In-Reply-To: <20110701141558.GB1363@srcf.ucam.org> Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: platform-driver-x86@vger.kernel.org Cc: Seth Forshee , Corentin Chary , Corentin Chary , Matthew Garrett , "open list:ASUS NOTEBOOKS AN..." , open list From: Seth Forshee The T101MT Home/Express Gate key autorepeats in hardware, but sparse-keymap does not support hardware autorepeat. Enable the input core's software autorepeat to emulate the hardware behavior. Normal hotkeys are autoreleased, so the behavior of these keys will not be affected. Signed-off-by: Seth Forshee Signed-off-by: Corentin Chary --- drivers/platform/x86/asus-wmi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index a09271d..35eeb69 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -205,6 +205,7 @@ static int asus_wmi_input_init(struct asus_wmi *asus) asus->inputdev->phys = asus->driver->input_phys; asus->inputdev->id.bustype = BUS_HOST; asus->inputdev->dev.parent = &asus->platform_device->dev; + set_bit(EV_REP, asus->inputdev->evbit); err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL); if (err) -- 1.7.3.4