HID: multitouch: ensure that serial devices make no use of contact count
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Thu, 31 Jan 2013 16:22:27 +0000 (17:22 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 5 Feb 2013 11:07:40 +0000 (12:07 +0100)
The serial protocol makes contact count a redondant information, and
sometimes it is not reliable (TRS-Star are in this case).
Disabling the use of contact count for these devices is thus safer.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c

index 1cf676d93049de001d56bcf6696ff2742a60c652..2693059df534bdd7f23acd6cb9f5f7fcb6a67289 100644 (file)
@@ -758,6 +758,7 @@ static void mt_post_parse_default_settings(struct mt_device *td)
                quirks &= ~MT_QUIRK_NOT_SEEN_MEANS_UP;
                quirks &= ~MT_QUIRK_VALID_IS_INRANGE;
                quirks &= ~MT_QUIRK_VALID_IS_CONFIDENCE;
+               quirks &= ~MT_QUIRK_CONTACT_CNT_ACCURATE;
        }
 
        td->mtclass.quirks = quirks;