From patchwork Fri Apr 27 01:11:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 155361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 97294B6FB9 for ; Fri, 27 Apr 2012 11:12:22 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SNZjL-00065S-CZ; Fri, 27 Apr 2012 01:12:15 +0000 Received: from mail-pz0-f48.google.com ([209.85.210.48]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SNZjJ-000607-7C for kernel-team@lists.ubuntu.com; Fri, 27 Apr 2012 01:12:13 +0000 Received: by mail-pz0-f48.google.com with SMTP id b39so251839dak.21 for ; Thu, 26 Apr 2012 18:12:12 -0700 (PDT) Received: by 10.68.223.227 with SMTP id qx3mr8525433pbc.1.1335489132731; Thu, 26 Apr 2012 18:12:12 -0700 (PDT) Received: from localhost ([183.37.200.43]) by mx.google.com with ESMTPS id tk8sm4830512pbc.33.2012.04.26.18.12.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Apr 2012 18:12:11 -0700 (PDT) From: ming.lei@canonical.com To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/3] HID: multitouch: correct eGalax a001 protocol Date: Fri, 27 Apr 2012 09:11:38 +0800 Message-Id: <1335489100-17404-6-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1335489100-17404-2-git-send-email-ming.lei@canonical.com> References: <1335489100-17404-2-git-send-email-ming.lei@canonical.com> Cc: Cedric Sodhi , Chris Bagwell X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com From: Ming Lei This device use another protocol while sending the events. It's the same as the one described as "serial" by Microsoft. We are keeping here the sn_move and sn_pressure parameters for egalax devices. CC: Cedric Sodhi CC: Chris Bagwell Signed-off-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- drivers/hid/hid-multitouch.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 7c47348..a3312ac 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -99,6 +99,7 @@ struct mt_class { #define MT_CLS_3M 0x0101 #define MT_CLS_CYPRESS 0x0102 #define MT_CLS_EGALAX 0x0103 +#define MT_CLS_EGALAX_SERIAL 0x0104 #define MT_DEFAULT_MAXCONTACT 10 @@ -181,6 +182,12 @@ struct mt_class mt_classes[] = { .sn_move = 4096, .sn_pressure = 32, }, + { .name = MT_CLS_EGALAX_SERIAL, + .quirks = MT_QUIRK_SLOT_IS_CONTACTID | + MT_QUIRK_ALWAYS_VALID, + .sn_move = 4096, + .sn_pressure = 32, + }, { } }; @@ -680,7 +687,7 @@ static const struct hid_device_id mt_devices[] = { { .driver_data = MT_CLS_EGALAX, HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_7302) }, - { .driver_data = MT_CLS_EGALAX, + { .driver_data = MT_CLS_EGALAX_SERIAL, HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_A001) },