input: wacom: Support up to 2048 pressure levels with ISDv4
Subsystems (2)
PATCH 1/2 input: wacom: Support up to 2048 pressure levels with ISDv4
--- drivers/input/tablet/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/tablet/wacom_wac.c +1 -1
@@ -1093,7 +1093,7 @@ static int wacom_tpc_pen(struct wacom_wac *wacom)input_report_key (input,BTN_STYLUS2 , data[1 ] &0x10 );input_report_abs (input,ABS_X ,le16_to_cpup ((__le16 *)&data[2 ]));input_report_abs (input,ABS_Y ,le16_to_cpup ((__le16 *)&data[4 ])); -input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x03 ) <<8 ) | data[6 ]); +input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x07 ) <<8 ) | data[6 ]);input_report_key (input,BTN_TOUCH , data[1 ] &0x05 );input_report_key (input, wacom->tool[0 ], prox);return 1 ;
Signature · 1 line
2.0.0
PATCH 2/2 input: wacom: Add support for 0x12C ISDv4 sensor
--- drivers/input/tablet/wacom_wac.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/input/tablet/wacom_wac.c +4 -0
@@ -2248,6 +2248,9 @@ static const struct wacom_features wacom_features_0x10F =static const struct wacom_features wacom_features_0x116 = {"Wacom ISDv4 116" ,WACOM_PKGLEN_GRAPHIRE ,26202 ,16325 ,255 ,0 ,TABLETPCE ,WACOM_INTUOS_RES ,WACOM_INTUOS_RES }; +static const struct wacom_features wacom_features_0x12C = + {"Wacom ISDv4 12C" ,WACOM_PKGLEN_GRAPHIRE ,27848 ,15752 ,2047 , +0 ,TABLETPC ,WACOM_INTUOS_RES ,WACOM_INTUOS_RES };static const struct wacom_features wacom_features_0x4001 = {"Wacom ISDv4 4001" ,WACOM_PKGLEN_MTTPC ,26202 ,16325 ,255 ,0 ,MTTPC ,WACOM_INTUOS_RES ,WACOM_INTUOS_RES };
@@ -2472,6 +2475,7 @@ const struct usb_device_id wacom_ids[] = { { USB_DEVICE_WACOM(0x10E) }, { USB_DEVICE_WACOM(0x10F) }, { USB_DEVICE_WACOM(0x116) }, + { USB_DEVICE_WACOM(0x12C) }, { USB_DEVICE_WACOM(0x300) }, { USB_DEVICE_WACOM(0x301) }, { USB_DEVICE_DETAILED(0x302, USB_CLASS_HID, 0, 0) },
Signature · 1 line
2.0.0
Quoted 19 lines · Jason Gerecke
Signed-off-by Jason Gerecke <[email protected]>--- drivers/input/tablet/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/tablet/wacom_wac.c +1
-2@@ -1093,7 +1093,7 @@ static int wacom_tpc_pen(struct wacom_wac *wacom)input_report_key (input,BTN_STYLUS2 , data[1 ] &0x10 );input_report_abs (input,ABS_X ,le16_to_cpup ((__le16 *)&data[2 ]));input_report_abs (input,ABS_Y ,le16_to_cpup ((__le16 *)&data[4 ])); -input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x03 ) <<8 ) | data[6 ]); +input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x07 ) <<8 ) | data[6 ]);input_report_key (input,BTN_TOUCH , data[1 ] &0x05 );input_report_key (input, wacom->tool[0 ], prox);return 1 ; --
Quoted 2 lines
2.0.0
Just making sure these two patches don't get lost in all the work Benjamin's doing. They're going to conflict, so depending on the timeline for merging his patches, we can either push these up now(ish) or I'll rebase afterwards.
Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Dmitry Torokhov
maintainerQuoted 19 lines · Jason Gerecke
Quoted 18 lines · Jason Gerecke
Signed-off-by Jason Gerecke <[email protected]>--- drivers/input/tablet/wacom_wac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/tablet/wacom_wac.c +1
-1@@ -1093,7 +1093,7 @@ static int wacom_tpc_pen(struct wacom_wac *wacom)input_report_key (input,BTN_STYLUS2 , data[1 ] &0x10 );input_report_abs (input,ABS_X ,le16_to_cpup ((__le16 *)&data[2 ]));input_report_abs (input,ABS_Y ,le16_to_cpup ((__le16 *)&data[4 ])); -input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x03 ) <<8 ) | data[6 ]); +input_report_abs (input,ABS_PRESSURE , ((data[7 ] &0x07 ) <<8 ) | data[6 ]);input_report_key (input,BTN_TOUCH , data[1 ] &0x05 );input_report_key (input, wacom->tool[0 ], prox);return 1 ;
Quoted 8 lines
Quoted 3 lines
--
2.0.0Just making sure these two patches don't get lost in all the work Benjamin's doing. They're going to conflict, so depending on the timeline for merging his patches, we can either push these up now(ish) or I'll rebase afterwards.
Benjamin added the first one to his series and I adjusted the 2nd one to apply on top of his and applied.
Thanks.
Signature · 1 line
Dmitry