OSDN Git Service

Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 16 Jan 2018 23:20:58 +0000 (15:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 17 Jan 2018 00:26:25 +0000 (16:26 -0800)
commit19eb4ed1141bd1096b9bc84ba9c4d03d5830c143
treebd0a25434187e69b20143e32b910f0f91d7d75db
parent2bc4298f59d2f15175bb568e2d356b5912d0cdd9
Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes

input_mt_init_slots() resets the ABS_X/Y fuzz to 0 and expects the driver
to call input_mt_report_pointer_emulation(). That is based on the MT
position bits which are already defuzzed - hence a fuzz of 0.

In the case of synaptics semi-mt devices, we report the ABS_X/Y axes
manually.  This results in the MT position being defuzzed but the
single-touch emulation missing that defuzzing.

Work around this by re-initializing the ABS_X/Y axes after the MT axis to
get the same fuzz value back.

https://bugs.freedesktop.org/show_bug.cgi?id=104533

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c