Skip to content

Commit d471b6b

Browse files
jigpuJiri Kosina
authored andcommitted
HID: wacom: Correct logical maximum Y for 2nd-gen Intuos Pro large
The HID descriptor for the 2nd-gen Intuos Pro large (PTH-860) contains a typo which defines an incorrect logical maximum Y value. This causes a small portion of the bottom of the tablet to become unusable (both because the area is below the "bottom" of the tablet and because 'wacom_wac_event' ignores out-of-range values). It also results in a skewed aspect ratio. To fix this, we add a quirk to 'wacom_usage_mapping' which overwrites the data with the correct value. Signed-off-by: Jason Gerecke <[email protected]> CC: [email protected] # v4.10+ Signed-off-by: Jiri Kosina <[email protected]>
1 parent ebeaa36 commit d471b6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/hid/wacom_sys.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ static void wacom_usage_mapping(struct hid_device *hdev,
395395
}
396396
}
397397

398+
/* 2nd-generation Intuos Pro Large has incorrect Y maximum */
399+
if (hdev->vendor == USB_VENDOR_ID_WACOM &&
400+
hdev->product == 0x0358 &&
401+
WACOM_PEN_FIELD(field) &&
402+
wacom_equivalent_usage(usage->hid) == HID_GD_Y) {
403+
field->logical_maximum = 43200;
404+
}
405+
398406
switch (usage->hid) {
399407
case HID_GD_X:
400408
features->x_max = field->logical_maximum;

0 commit comments

Comments
 (0)