diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2017-11-03 18:29:47 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-11-10 09:39:44 +0100 |
commit | 5b01b3b8b122fde7fbe116803f7863667b4c5beb (patch) | |
tree | dd42a231096a517f03c23781763828b6856a0646 /drivers/hid | |
parent | 9e429d564926d3bca49907fa03031da705ad6f2c (diff) | |
download | linux-5b01b3b8b122fde7fbe116803f7863667b4c5beb.tar.gz linux-5b01b3b8b122fde7fbe116803f7863667b4c5beb.tar.bz2 linux-5b01b3b8b122fde7fbe116803f7863667b4c5beb.zip |
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 <benjamin.tissoires@redhat.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/wacom_sys.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 735bfbbcaa82..ab3178bef0b6 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -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; + } } /* |