mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
HID: Wacom: switch Dell canvas into highres mode
The Dell Canvas exports 2 collections for the Pen part. The only difference between the 2 is that the default one has half the resolution of the second one. The Windows driver switches the tablet into the second mode, so we should behave the same. Signed-off-by: Benjamin Tissoires <[email protected]> Reviewed-by: Jason Gerecke <[email protected] Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
9e429d5649
commit
5b01b3b8b1
1 changed files with 7 additions and 0 deletions
|
|
@ -196,6 +196,13 @@ static void wacom_feature_mapping(struct hid_device *hdev,
|
|||
kfree(data);
|
||||
break;
|
||||
}
|
||||
|
||||
if (hdev->vendor == USB_VENDOR_ID_WACOM &&
|
||||
hdev->product == 0x4200 /* Dell Canvas 27 */ &&
|
||||
field->application == HID_UP_MSVENDOR) {
|
||||
wacom->wacom_wac.mode_report = field->report->id;
|
||||
wacom->wacom_wac.mode_value = 2;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue