Skip to content

Commit d37c95f

Browse files
jigpugregkh
authored andcommitted
HID: wacom: Correct logical maximum Y for 2nd-gen Intuos Pro large
commit d471b6b upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ab17de6 commit d37c95f

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
@@ -284,6 +284,14 @@ static void wacom_usage_mapping(struct hid_device *hdev,
284284
}
285285
}
286286

287+
/* 2nd-generation Intuos Pro Large has incorrect Y maximum */
288+
if (hdev->vendor == USB_VENDOR_ID_WACOM &&
289+
hdev->product == 0x0358 &&
290+
WACOM_PEN_FIELD(field) &&
291+
wacom_equivalent_usage(usage->hid) == HID_GD_Y) {
292+
field->logical_maximum = 43200;
293+
}
294+
287295
switch (usage->hid) {
288296
case HID_GD_X:
289297
features->x_max = field->logical_maximum;

0 commit comments

Comments
 (0)