From patchwork Fri Jan 25 13:22:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 2045411 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AE984E0175 for ; Fri, 25 Jan 2013 13:29:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932341Ab3AYN3h (ORCPT ); Fri, 25 Jan 2013 08:29:37 -0500 Received: from mail-bk0-f43.google.com ([209.85.214.43]:57082 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757296Ab3AYNXg (ORCPT ); Fri, 25 Jan 2013 08:23:36 -0500 Received: by mail-bk0-f43.google.com with SMTP id jf20so236249bkc.16 for ; Fri, 25 Jan 2013 05:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=W3dHvov5Fp/WhEorB7HDYmXkUgnzEwfwenWqaiPln7E=; b=BR3kAgGIYGJxjTFeATdSL5dZywfVT2exhRvYcFpO+TEsY8SOfdZEvS5w4Di2WuhyZt vpFzvX+cCTFf5n2snLZn1AP1/+3wlJJP/SmFYoYMAKpD3KMiIIlLuu9socWxfgQrGDaM 59mPJSyLueE8KMAXG5Hyw06lXvWcjdch6DK3jMhEJvgWdmf7U3gsDgRqcec8/xBBE5PC ERnJ9a4VJLoTqS/rXFLnQsqkC14Ae+DVjX/IKkGvWi4gYidbIE7M+7FdNw3rcSLGRRq4 IPy426qnKqC0Bh2q/jrtdR3+U2AFgm3AjY+qDljVGACZWZrEiFM9r7Jwdog3p2dHZ3LS Q+KA== X-Received: by 10.204.9.12 with SMTP id j12mr805554bkj.89.1359120214779; Fri, 25 Jan 2013 05:23:34 -0800 (PST) Received: from localhost.localdomain.com (lan31-8-82-247-176-67.fbx.proxad.net. [82.247.176.67]) by mx.google.com with ESMTPS id hu20sm759377bkc.12.2013.01.25.05.23.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 05:23:34 -0800 (PST) From: Benjamin Tissoires To: Benjamin Tissoires , Dmitry Torokhov , Henrik Rydberg , Jiri Kosina , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/25] HID: multitouch: fix Win8 protocol for Sharp like devices Date: Fri, 25 Jan 2013 14:22:48 +0100 Message-Id: <1359120190-18281-4-git-send-email-benjamin.tissoires@gmail.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359120190-18281-1-git-send-email-benjamin.tissoires@gmail.com> References: <1359120190-18281-1-git-send-email-benjamin.tissoires@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The Sharp LC-20FE1-W screen (04dd:9681) behaves like the Nexio 42". It may report out of ranges values that are filtered out by relying on the Contact Count HID field. Adding the quirk MT_QUIRK_CONTACT_CNT_ACCURATE makes hid-multitouch strongest against this kind of device, without breaking the current devices. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index c4acdd0..8d0a9f9 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -317,6 +317,7 @@ static void mt_feature_mapping(struct hid_device *hdev, *quirks |= MT_QUIRK_ALWAYS_VALID; *quirks |= MT_QUIRK_IGNORE_DUPLICATES; *quirks |= MT_QUIRK_HOVERING; + *quirks |= MT_QUIRK_CONTACT_CNT_ACCURATE; *quirks &= ~MT_QUIRK_NOT_SEEN_MEANS_UP; *quirks &= ~MT_QUIRK_VALID_IS_INRANGE; *quirks &= ~MT_QUIRK_VALID_IS_CONFIDENCE;