Skip to content

Commit ca047fe

Browse files
aristeudtor
authored andcommitted
Input: wacom - fix pressure in Cintiq 21UX2
Currently the pressure range in Cintiq 21UX2 is limited to half of the supported. This patch fixes the problem. Signed-off-by: Aristeu Rozanski <aris@redhat.com> Acked-by: Ping Cheng <pingc@wacom.com> CC: stable@kernel.org Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent f6cd378 commit ca047fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/input/tablet/wacom_wac.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,10 @@ static void wacom_intuos_general(struct wacom_wac *wacom)
442442
/* general pen packet */
443443
if ((data[1] & 0xb8) == 0xa0) {
444444
t = (data[6] << 2) | ((data[7] >> 6) & 3);
445-
if (features->type >= INTUOS4S && features->type <= INTUOS4L)
445+
if ((features->type >= INTUOS4S && features->type <= INTUOS4L) ||
446+
features->type == WACOM_21UX2) {
446447
t = (t << 1) | (data[1] & 1);
448+
}
447449
input_report_abs(input, ABS_PRESSURE, t);
448450
input_report_abs(input, ABS_TILT_X,
449451
((data[7] << 1) & 0x7e) | (data[8] >> 7));

0 commit comments

Comments
 (0)