Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b01b3b8 authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina
Browse files

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: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 9e429d56
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
	}
}

/*