diff options
Diffstat (limited to 'usr/src/dkms_source_tree/wacom_wac.c')
| -rw-r--r-- | usr/src/dkms_source_tree/wacom_wac.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/src/dkms_source_tree/wacom_wac.c b/usr/src/dkms_source_tree/wacom_wac.c index 463d084..03a3fdc 100644 --- a/usr/src/dkms_source_tree/wacom_wac.c +++ b/usr/src/dkms_source_tree/wacom_wac.c | |||
| @@ -869,8 +869,8 @@ static int wacom_bbt_irq(struct wacom_wac *wacom, size_t len) | |||
| 869 | int p = data[9 * i + 2]; | 869 | int p = data[9 * i + 2]; |
| 870 | input_mt_slot(input, i); | 870 | input_mt_slot(input, i); |
| 871 | if (p) { | 871 | if (p) { |
| 872 | int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff; | 872 | int x = get_unaligned_be16(&data[9 * i + 3]) << 4; |
| 873 | int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff; | 873 | int y = get_unaligned_be16(&data[9 * i + 5]) << 4; |
| 874 | input_report_abs(input, ABS_MT_PRESSURE, p); | 874 | input_report_abs(input, ABS_MT_PRESSURE, p); |
| 875 | input_report_abs(input, ABS_MT_POSITION_X, x); | 875 | input_report_abs(input, ABS_MT_POSITION_X, x); |
| 876 | input_report_abs(input, ABS_MT_POSITION_Y, y); | 876 | input_report_abs(input, ABS_MT_POSITION_Y, y); |
| @@ -1136,9 +1136,13 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev, | |||
| 1136 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); | 1136 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); |
| 1137 | __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit); | 1137 | __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit); |
| 1138 | 1138 | ||
| 1139 | input_set_abs_params(input_dev, ABS_X, 0, features->x_max, 32, 0); | ||
| 1140 | input_set_abs_params(input_dev, ABS_Y, 0, features->y_max, 32, 0); | ||
| 1141 | input_set_abs_params(input_dev, ABS_PRESSURE, 0, features->pressure_max, 16, 0); | ||
| 1142 | |||
| 1139 | input_mt_create_slots(input_dev, 2); | 1143 | input_mt_create_slots(input_dev, 2); |
| 1140 | input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, features->x_max, 4, 0); | 1144 | input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, features->x_max, 32, 0); |
| 1141 | input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, features->y_max, 4, 0); | 1145 | input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, features->y_max, 32, 0); |
| 1142 | input_set_abs_params(input_dev, ABS_MT_PRESSURE, 0, features->pressure_max, 16, 0); | 1146 | input_set_abs_params(input_dev, ABS_MT_PRESSURE, 0, features->pressure_max, 16, 0); |
| 1143 | input_set_abs_params(input_dev, ABS_MT_TRACKING_ID, 0, MAX_TRACKING_ID, 0, 0); | 1147 | input_set_abs_params(input_dev, ABS_MT_TRACKING_ID, 0, MAX_TRACKING_ID, 0, 0); |
| 1144 | break; | 1148 | break; |
| @@ -1280,9 +1284,9 @@ static const struct wacom_features wacom_features_0xE3 = | |||
| 1280 | static const struct wacom_features wacom_features_0x47 = | 1284 | static const struct wacom_features wacom_features_0x47 = |
| 1281 | { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 31, INTUOS }; | 1285 | { "Wacom Intuos2 6x8", WACOM_PKGLEN_INTUOS, 20320, 16240, 1023, 31, INTUOS }; |
| 1282 | static const struct wacom_features wacom_features_0xD0_0 = | 1286 | static const struct wacom_features wacom_features_0xD0_0 = |
| 1283 | { "Wacom Bamboo Touch", WACOM_PKGLEN_BBTOUCH, 480, 320, 255, 0, BAMBOO_TOUCH }; | 1287 | { "Wacom Bamboo Touch", WACOM_PKGLEN_BBTOUCH, 7680, 5120, 255, 0, BAMBOO_TOUCH }; |
| 1284 | static const struct wacom_features wacom_features_0xD0_2 = | 1288 | static const struct wacom_features wacom_features_0xD0_2 = |
| 1285 | { "Wacom Bamboo Boot", WACOM_PKGLEN_BBFUN, 480, 320, 255, 0, BAMBOO_BOOT }; | 1289 | { "Wacom Bamboo Boot", WACOM_PKGLEN_BBFUN, 14760, 9225, 511, 63, WACOM_MO }; |
| 1286 | 1290 | ||
| 1287 | #define USB_DEVICE_WACOM(prod) \ | 1291 | #define USB_DEVICE_WACOM(prod) \ |
| 1288 | USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \ | 1292 | USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \ |
