diff options
author | Jason Gerecke <killertofu@gmail.com> | 2014-05-14 14:42:22 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-14 19:40:07 -0400 |
commit | 61616ed0ce2ed581df89be5d917f8d7e9fc3074f (patch) | |
tree | 45574b61e3255fd4ec0f17cedd1ce9cdaeebe35e /drivers/input/tablet/wacom_wac.c | |
parent | f09f98d3240b7ed2dd84ef6d84ff86df9d61e0f5 (diff) |
Input: wacom - add support for 0x116 sensor on Win8 Panasonic CF-H2
The Win8 version of the Panasonic CF-H2 includes a new Wacom device.
The pen interface appears to use the same protocol as before, but the
touch interface has been tweaked to send Win8-compatible reports.
Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet/wacom_wac.c')
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 05f371df6c40..4ab4b09e3d35 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
@@ -1051,6 +1051,10 @@ static int wacom_tpc_single_touch(struct wacom_wac *wacom, size_t len) | |||
1051 | prox = data[0] & 0x01; | 1051 | prox = data[0] & 0x01; |
1052 | x = get_unaligned_le16(&data[1]); | 1052 | x = get_unaligned_le16(&data[1]); |
1053 | y = get_unaligned_le16(&data[3]); | 1053 | y = get_unaligned_le16(&data[3]); |
1054 | } else if (len == WACOM_PKGLEN_TPC1FG_B) { | ||
1055 | prox = data[2] & 0x01; | ||
1056 | x = get_unaligned_le16(&data[3]); | ||
1057 | y = get_unaligned_le16(&data[5]); | ||
1054 | } else { | 1058 | } else { |
1055 | prox = data[1] & 0x01; | 1059 | prox = data[1] & 0x01; |
1056 | x = le16_to_cpup((__le16 *)&data[2]); | 1060 | x = le16_to_cpup((__le16 *)&data[2]); |
@@ -2242,6 +2246,9 @@ static const struct wacom_features wacom_features_0x10E = | |||
2242 | static const struct wacom_features wacom_features_0x10F = | 2246 | static const struct wacom_features wacom_features_0x10F = |
2243 | { "Wacom ISDv4 10F", WACOM_PKGLEN_MTTPC, 27760, 15694, 255, | 2247 | { "Wacom ISDv4 10F", WACOM_PKGLEN_MTTPC, 27760, 15694, 255, |
2244 | 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; | 2248 | 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; |
2249 | static const struct wacom_features wacom_features_0x116 = | ||
2250 | { "Wacom ISDv4 116", WACOM_PKGLEN_GRAPHIRE, 26202, 16325, 255, | ||
2251 | 0, TABLETPCE, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; | ||
2245 | static const struct wacom_features wacom_features_0x4001 = | 2252 | static const struct wacom_features wacom_features_0x4001 = |
2246 | { "Wacom ISDv4 4001", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, | 2253 | { "Wacom ISDv4 4001", WACOM_PKGLEN_MTTPC, 26202, 16325, 255, |
2247 | 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; | 2254 | 0, MTTPC, WACOM_INTUOS_RES, WACOM_INTUOS_RES }; |
@@ -2456,6 +2463,7 @@ const struct usb_device_id wacom_ids[] = { | |||
2456 | { USB_DEVICE_WACOM(0x10D) }, | 2463 | { USB_DEVICE_WACOM(0x10D) }, |
2457 | { USB_DEVICE_WACOM(0x10E) }, | 2464 | { USB_DEVICE_WACOM(0x10E) }, |
2458 | { USB_DEVICE_WACOM(0x10F) }, | 2465 | { USB_DEVICE_WACOM(0x10F) }, |
2466 | { USB_DEVICE_WACOM(0x116) }, | ||
2459 | { USB_DEVICE_WACOM(0x300) }, | 2467 | { USB_DEVICE_WACOM(0x300) }, |
2460 | { USB_DEVICE_WACOM(0x301) }, | 2468 | { USB_DEVICE_WACOM(0x301) }, |
2461 | { USB_DEVICE_DETAILED(0x302, USB_CLASS_HID, 0, 0) }, | 2469 | { USB_DEVICE_DETAILED(0x302, USB_CLASS_HID, 0, 0) }, |