diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2017-02-22 23:53:02 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-22 23:55:09 -0800 |
commit | db4572ff0e2a017ea73ab532ed5257d7be351c88 (patch) | |
tree | d7db30afbdd95aa66736c886361b3bf045c533f7 /drivers/input/touchscreen/Makefile | |
parent | deec586d4fcbc14a262f8b887543abcb1c64af98 (diff) | |
download | linux-db4572ff0e2a017ea73ab532ed5257d7be351c88.tar.bz2 |
Input: tsc2007 - correctly report pressure and not resistance to user space
Previously, tsc2007 would report as ABS_PRESSURE:
0 for no pressure (resistance infinite)
high value for soft pressure (high resistance)
low value for firm pressure (lower resistance)
This does not matter for most applications (e.g. GUI, Menu, Scrolling etc.)
where the ABS_PRESSURE is ignored and only BTN_TOUCH is processed to detect
screen taps.
Only some special graphics applications read the pressure channel and they
will be mixed up by this non-monotonic relation.
So we fix it to become:
0 for no pressure (resistance infinite)
low value for soft pressure (high resistance)
high value for firm pressure (lower resistance)
While this patch changes the values reported to userspace, ABS_PRESSURE is
used rarely by userspace. Most software only relies on BTN_TOUCH (boolean),
which is not affected by this patch. Some graphics software makes use of
the interface and does not work correctly with the currently used inverted
behaviour.
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/Makefile')
0 files changed, 0 insertions, 0 deletions