diff options
-rw-r--r-- | drivers/hid/hid-multitouch.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 0a0489309905..61543c02ea0b 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c | |||
@@ -294,6 +294,18 @@ static void mt_feature_mapping(struct hid_device *hdev, | |||
294 | td->maxcontacts = td->mtclass.maxcontacts; | 294 | td->maxcontacts = td->mtclass.maxcontacts; |
295 | 295 | ||
296 | break; | 296 | break; |
297 | case 0xff0000c5: | ||
298 | if (field->report_count == 256 && field->report_size == 8) { | ||
299 | /* Win 8 devices need special quirks */ | ||
300 | __s32 *quirks = &td->mtclass.quirks; | ||
301 | *quirks |= MT_QUIRK_ALWAYS_VALID; | ||
302 | *quirks |= MT_QUIRK_IGNORE_DUPLICATES; | ||
303 | *quirks |= MT_QUIRK_HOVERING; | ||
304 | *quirks &= ~MT_QUIRK_NOT_SEEN_MEANS_UP; | ||
305 | *quirks &= ~MT_QUIRK_VALID_IS_INRANGE; | ||
306 | *quirks &= ~MT_QUIRK_VALID_IS_CONFIDENCE; | ||
307 | } | ||
308 | break; | ||
297 | } | 309 | } |
298 | } | 310 | } |
299 | 311 | ||