From patchwork Fri Oct 16 22:18:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herton Ronaldo Krzesinski X-Patchwork-Id: 54445 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9GMfsBR015298 for ; Fri, 16 Oct 2009 22:41:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750897AbZJPWle (ORCPT ); Fri, 16 Oct 2009 18:41:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751327AbZJPWle (ORCPT ); Fri, 16 Oct 2009 18:41:34 -0400 Received: from perninha.conectiva.com.br ([200.140.247.100]:59467 "EHLO perninha.conectiva.com.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbZJPWld (ORCPT ); Fri, 16 Oct 2009 18:41:33 -0400 Received: from localhost (perninha.conectiva.com.br [127.0.0.1]) by perninha.conectiva.com.br (Postfix) with ESMTP id 35C862EE5D; Fri, 16 Oct 2009 18:18:38 -0400 (EDT) X-Virus-Scanned: amavisd-new at conectiva.com.br Received: from perninha.conectiva.com.br ([127.0.0.1]) by localhost (perninha.conectiva.com.br [127.0.0.1]) (amavisd-new, port 10025) with LMTP id FLY4W4ixtd5A; Fri, 16 Oct 2009 18:18:37 -0400 (EDT) Received: from fox.conectiva (fox.conectiva [10.0.2.195]) by perninha.conectiva.com.br (Postfix) with ESMTP id BC56C2EE4C; Fri, 16 Oct 2009 18:18:37 -0400 (EDT) Received: from localhost.localdomain (gotham.conectiva [10.0.2.23]) by fox.conectiva (Postfix) with ESMTP id 55B052F20A; Fri, 16 Oct 2009 19:18:34 -0300 (BRT) From: Herton Ronaldo Krzesinski To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Herton Ronaldo Krzesinski Subject: [PATCH 1/2] Input: atkbd - add forced release keys quirk for Positivo I30 Date: Fri, 16 Oct 2009 19:18:14 -0300 Message-Id: <1255731495-27552-1-git-send-email-herton@mandriva.com.br> X-Mailer: git-send-email 1.6.4.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 4709e15..296f1fd 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -904,9 +904,10 @@ static unsigned int atkbd_amilo_xi3650_forced_release_keys[] = { }; /* - * Soltech TA12 system with broken key release on volume keys and mute key + * Many notebooks don't send key release event for volume up/down/mute + * keys, with key list below common among them */ -static unsigned int atkdb_soltech_ta12_forced_release_keys[] = { +static unsigned int atkbd_mute_volume_forced_release_keys[] = { 0xa0, 0xae, 0xb0, -1U }; @@ -1647,7 +1648,16 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "TA12"), }, .callback = atkbd_setup_forced_release, - .driver_data = atkdb_soltech_ta12_forced_release_keys, + .driver_data = atkbd_mute_volume_forced_release_keys, + }, + { + .ident = "Positivo I30", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "POSITIVO"), + DMI_MATCH(DMI_BOARD_NAME, "I30"), + }, + .callback = atkbd_setup_forced_release, + .driver_data = atkbd_mute_volume_forced_release_keys, }, { } };