diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-01-16 18:20:58 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-01-16 19:26:25 -0500 |
commit | 19eb4ed1141bd1096b9bc84ba9c4d03d5830c143 (patch) | |
tree | bd0a25434187e69b20143e32b910f0f91d7d75db | |
parent | 2bc4298f59d2f15175bb568e2d356b5912d0cdd9 (diff) |
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>
-rw-r--r-- | drivers/input/mouse/synaptics.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index ee5466a374bf..a246fc686bb7 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c | |||
@@ -1280,6 +1280,16 @@ static void set_input_params(struct psmouse *psmouse, | |||
1280 | INPUT_MT_POINTER | | 1280 | INPUT_MT_POINTER | |
1281 | (cr48_profile_sensor ? | 1281 | (cr48_profile_sensor ? |
1282 | INPUT_MT_TRACK : INPUT_MT_SEMI_MT)); | 1282 | INPUT_MT_TRACK : INPUT_MT_SEMI_MT)); |
1283 | |||
1284 | /* | ||
1285 | * For semi-mt devices we send ABS_X/Y ourselves instead of | ||
1286 | * input_mt_report_pointer_emulation. But | ||
1287 | * input_mt_init_slots() resets the fuzz to 0, leading to a | ||
1288 | * filtered ABS_MT_POSITION_X but an unfiltered ABS_X | ||
1289 | * position. Let's re-initialize ABS_X/Y here. | ||
1290 | */ | ||
1291 | if (!cr48_profile_sensor) | ||
1292 | set_abs_position_params(dev, &priv->info, ABS_X, ABS_Y); | ||
1283 | } | 1293 | } |
1284 | 1294 | ||
1285 | if (SYN_CAP_PALMDETECT(info->capabilities)) | 1295 | if (SYN_CAP_PALMDETECT(info->capabilities)) |