Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757470AbbGUB5z (ORCPT ); Mon, 20 Jul 2015 21:57:55 -0400 Received: from mail-bl2on0114.outbound.protection.outlook.com ([65.55.169.114]:43417 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754709AbbGUB5w convert rfc822-to-8bit (ORCPT ); Mon, 20 Jul 2015 21:57:52 -0400 X-Greylist: delayed 876 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Jul 2015 21:57:51 EDT From: Dudley Du To: Dmitry Torokhov CC: "mark.rutland@arm.com" , "robh+dt@kernel.org" , "rydberg@euromail.se" , "bleung@google.com" , "jmmahler@gmail.com" , "devicetree@vger.kernel.org" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v1 3/7] input: cyapa: add proximity function support for gen5 and gen6 modules Thread-Topic: [PATCH v1 3/7] input: cyapa: add proximity function support for gen5 and gen6 modules Thread-Index: AQHQp0oM7HEziiQdAU+hdCDtGrm3Ip3lQ70AgAAajhA= Date: Tue, 21 Jul 2015 01:43:13 +0000 Message-ID: References: <1434358897-24668-1-git-send-email-dudl@cypress.com> <1434358897-24668-4-git-send-email-dudl@cypress.com> <20150721000658.GD15528@dtor-ws> In-Reply-To: <20150721000658.GD15528@dtor-ws> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none; x-originating-ip: [125.215.45.171] x-microsoft-exchange-diagnostics: 1;CY1PR06MB1817;5:bj2PagR4ITmmIc1j6CloYYXemcPhnWIr/GhfYNTtD9QJh3fGQAV2PIFxn47r5YuHkz4ILL25bmk8p2Nt7l/6h1WTcvg9ZLk3FKFFjDPsSGGx1ddGhd2xSnv0uPnljHLVwCLM+1yEW4CgXY0251Aj1g==;24:6qIRL3yMl19Ja4zGPgqcf0Khnlr/0Z+60W28Xxxb/iTWw6/8gBOgWNGY0aWg78ziOypRvsfrsbjduxojFF7VOLcXxEf1t/BboaLs1hC0/JY=;20:v0mNNXBmgyJ4BlPkBhAK3mAzrhXowsO+6EGO3Qx3jr+mJxuyadBwXDa4b1VHtJ9+nMl4df9L6oEl5zZLa2SAoQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR06MB1817; x-loop: 1 cy1pr06mb1817: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR06MB1817;BCL:0;PCL:0;RULEID:;SRVR:CY1PR06MB1817; x-forefront-prvs: 0644578634 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(51164003)(24454002)(164054003)(13464003)(50986999)(106116001)(33656002)(99286002)(5002640100001)(76176999)(5001920100001)(62966003)(5003600100002)(77156002)(5890100001)(87936001)(110136002)(86362001)(77096005)(122556002)(19580395003)(46102003)(54356999)(102836002)(2656002)(189998001)(92566002)(74316001)(2950100001)(76576001)(40100003)(19580405001)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR06MB1817;H:CY1PR06MB1817.namprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: cypress.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2015 01:43:13.7860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 011addfc-2c09-450d-8938-e0bbc2dd2376 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR06MB1817 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1754 Lines: 51 Dmitry, Yes, It cannot report the distance per-contact. Thanks for the update. Thanks, Dudley > -----Original Message----- > From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com] > Sent: 2015?7?21? 8:07 > To: Dudley Du > Cc: mark.rutland@arm.com; robh+dt@kernel.org; rydberg@euromail.se; > bleung@google.com; jmmahler@gmail.com; devicetree@vger.kernel.org; > linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v1 3/7] input: cyapa: add proximity function support for gen5 > and gen6 modules > > Hi Dudley, > > On Mon, Jun 15, 2015 at 05:01:33PM +0800, Dudley Du wrote: > > > > +static void cyapa_pip_report_proximity(struct cyapa *cyapa, > > +const struct cyapa_pip_report_data *report_data) > > +{ > > +struct input_dev *input = cyapa->input; > > +u8 distance = report_data->report_head[PIP_PROXIMITY_DISTANCE_OFFSET] > & > > +PIP_PROXIMITY_DISTANCE_MASK; > > + > > +input_report_abs(input, ABS_MT_DISTANCE, distance); > > +input_sync(input); > > It looks like the distance reported by the hardware is not per-contact > (i.e. it can not tell that we had 2 fingers on surface and the 2nd one > was lifted and is now hovering over the surface), so we should be using > ABS_DISTANCE, not ABS_MT_DISTANCE. > > I can adjust it here, no need to resend. > > Thanks. > > -- > Dmitry This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. -- 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/