Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: synaptics - initialize pointer emulation usage

To properly setup event parameters for emulated events, pass
the appropriate flag to the slot initialization function. Also,
all MT-related events should be setup before initialization.

Incidentally, this solves the issue of doubly filtered pointer
events.

Reported-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Henrik Rydberg and committed by
Dmitry Torokhov
0b85bf78 352ce2b0

+1 -1
+1 -1
drivers/input/mouse/synaptics.c
··· 1271 1271 input_set_abs_params(dev, ABS_PRESSURE, 0, 255, 0, 0); 1272 1272 1273 1273 if (SYN_CAP_IMAGE_SENSOR(priv->ext_cap_0c)) { 1274 - input_mt_init_slots(dev, 2, 0); 1275 1274 set_abs_position_params(dev, priv, ABS_MT_POSITION_X, 1276 1275 ABS_MT_POSITION_Y); 1277 1276 /* Image sensors can report per-contact pressure */ 1278 1277 input_set_abs_params(dev, ABS_MT_PRESSURE, 0, 255, 0, 0); 1278 + input_mt_init_slots(dev, 2, INPUT_MT_POINTER); 1279 1279 1280 1280 /* Image sensors can signal 4 and 5 finger clicks */ 1281 1281 __set_bit(BTN_TOOL_QUADTAP, dev->keybit);