projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6cd378
)
Input: wacom - fix pressure in Cintiq 21UX2
author
Aristeu Rozanski
<
[email protected]
>
Sun, 10 Oct 2010 21:12:33 +0000
(14:12 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Sun, 10 Oct 2010 21:16:09 +0000
(14:16 -0700)
Currently the pressure range in Cintiq 21UX2 is limited to half of the
supported. This patch fixes the problem.
Signed-off-by: Aristeu Rozanski <
[email protected]
>
Acked-by: Ping Cheng <
[email protected]
>
CC:
[email protected]
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/tablet/wacom_wac.c
patch
|
blob
|
history
diff --git
a/drivers/input/tablet/wacom_wac.c
b/drivers/input/tablet/wacom_wac.c
index 6e29badb969e44192be85080caf801851c3d06fa..47fd7a041c52e1898a8727c5386569fb3caed45c 100644
(file)
--- a/
drivers/input/tablet/wacom_wac.c
+++ b/
drivers/input/tablet/wacom_wac.c
@@
-442,8
+442,10
@@
static void wacom_intuos_general(struct wacom_wac *wacom)
/* general pen packet */
if ((data[1] & 0xb8) == 0xa0) {
t = (data[6] << 2) | ((data[7] >> 6) & 3);
- if (features->type >= INTUOS4S && features->type <= INTUOS4L)
+ if ((features->type >= INTUOS4S && features->type <= INTUOS4L) ||
+ features->type == WACOM_21UX2) {
t = (t << 1) | (data[1] & 1);
+ }
input_report_abs(input, ABS_PRESSURE, t);
input_report_abs(input, ABS_TILT_X,
((data[7] << 1) & 0x7e) | (data[8] >> 7));