From patchwork Fri Sep 23 05:32:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masaki Ota <012nexus@gmail.com> X-Patchwork-Id: 9347485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC07960B16 for ; Fri, 23 Sep 2016 05:33:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 671372A3E4 for ; Fri, 23 Sep 2016 05:33:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BCFD2A57A; Fri, 23 Sep 2016 05:33:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E40FF2A3E4 for ; Fri, 23 Sep 2016 05:33:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757017AbcIWFdP (ORCPT ); Fri, 23 Sep 2016 01:33:15 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34585 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757419AbcIWFdO (ORCPT ); Fri, 23 Sep 2016 01:33:14 -0400 Received: by mail-pf0-f196.google.com with SMTP id 21so4724654pfy.1; Thu, 22 Sep 2016 22:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=3m+tYTLmyw4jLd9JzIG6wwQu/0e98WdRMkVmG4H8WtY=; b=TZj7/wSM6yQoj/wiZ6NRWS2rddJLUtRUXWapIZ5MNq22CNy3Ngz5iMoC1AhSTzIVLp VW8uF92fcgm3nIaONBjMhnkSY8icN1bkybYuGfNcrjhu3N4AX+XqhsM0doHdGeb2nikz LjiiWXx1djtGaIeIJhUdDZ2PalRxF/0yhGp0MZkhirBf1ZUBQMe7lfLIqaqUV3HG60Sy XJU+/zPy9oq+DxJzOrOS+voHrh+vVpFpbbLCdWPrwwbYiooZ1XtBHsUGR92gtH+AGMUX 2hSpyZ1Rln7KrW7bvRyxwWlHrhvF9cgc6uU1ysWiEacWJHWh7lv5ggqOXgFlWyoB3hyB UshA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3m+tYTLmyw4jLd9JzIG6wwQu/0e98WdRMkVmG4H8WtY=; b=hjnLHOlG4bSzYR3s6r4KMI+LzeSHGYscXsHLBGm/ITYcw4SLoKVEJu/c/RVtLL11zq cwS9UGM2xKNl1fe4zf2UvfreW/fdcDILaavPAHRMiOl6NnatNQEpoeQwzrwbzjyKh4EY fF6cbYYjrLh0YKGFWxvEaCQX2lBU1D2x5R3D3QRpfKT+pPSEXUaCRSGyeh8hTuhvxb80 PAVlS3Z9yBoM9DjcXXTjtqO+x105BYmDzLEjYjNTasjNJV9dZsECLbjb9DHdEWe39aOn Idxco/N5KXb6HQJan/JolXgzc+HK/9W2+4V6A1y6RJgFwNKkBNQrQZGUz8czCIllAJIt zG9Q== X-Gm-Message-State: AE9vXwOKYNcY8vVFOnSRQXAUkuFvbZDm+e/o6PH2VJZJuX++l3eL/RjLJpqpkfz02TsRIA== X-Received: by 10.98.35.84 with SMTP id j81mr9641306pfj.166.1474608780346; Thu, 22 Sep 2016 22:33:00 -0700 (PDT) Received: from localhost (p1117-ipad304aobadori.miyagi.ocn.ne.jp. [123.216.80.117]) by smtp.gmail.com with ESMTPSA id w69sm7897725pfd.28.2016.09.22.22.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 22:32:59 -0700 (PDT) From: Masaki Ota <012nexus@gmail.com> X-Google-Original-From: Masaki Ota To: jikos@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kai.heng.feng@canonical.com, masaki.ota@jp.alps.com Subject: [PATCH] Fix a issue that Alps Touchpad cursor does not work Date: Fri, 23 Sep 2016 14:32:55 +0900 Message-Id: <1474608775-10839-1-git-send-email-masaki.ota@jp.alps.com> X-Mailer: git-send-email 2.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP fix Touchpad cursor does not work after touching Touchpad by 3 or more fingers. Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index 048befd..610df92 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -190,16 +190,16 @@ static int alps_raw_event(struct hid_device *hdev, if (z != 0) { input_mt_report_slot_state(hdata->input, MT_TOOL_FINGER, 1); + input_report_abs(hdata->input, + ABS_MT_POSITION_X, x); + input_report_abs(hdata->input, + ABS_MT_POSITION_Y, y); + input_report_abs(hdata->input, + ABS_MT_PRESSURE, z); } else { input_mt_report_slot_state(hdata->input, MT_TOOL_FINGER, 0); - break; } - - input_report_abs(hdata->input, ABS_MT_POSITION_X, x); - input_report_abs(hdata->input, ABS_MT_POSITION_Y, y); - input_report_abs(hdata->input, ABS_MT_PRESSURE, z); - } input_mt_sync_frame(hdata->input);