Thread (11 messages) 11 messages, 3 authors, 2011-06-13

[PATCH 4/4] Input: Synaptics: Add INPUT_PROP_SYNAPTICS_T3R2 property

flat view
STALE5605d

From: Derek Foreman <hidden>
Date: 2011-06-10 20:02:38
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

This new property indicates that the trackpad is able to track more than two contacts, but can only report the positions of two contacts due to bus bandwidth limitations.

Signed-off-by: Derek Foreman <redacted>
---
 drivers/input/mouse/synaptics.c |    3 +++
 include/linux/input.h           |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 3c68663..a8ff669 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -701,6 +701,9 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
 
 	__set_bit(INPUT_PROP_POINTER, dev->propbit);
 
+	if (priv->use_bounding_box == 0)
+		__set_bit(INPUT_PROP_SYNAPTICS_T3R2, dev->propbit);
+
 	__set_bit(EV_ABS, dev->evbit);
 	input_set_abs_params(dev, ABS_X,
 			     XMIN_NOMINAL, priv->x_max ?: XMAX_NOMINAL, 0, 0);
diff --git a/include/linux/input.h b/include/linux/input.h
index 388cdef..b667e88 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -137,6 +137,7 @@ struct input_keymap_entry {
 #define INPUT_PROP_DIRECT		0x01	/* direct input devices */
 #define INPUT_PROP_BUTTONPAD		0x02	/* has button(s) under pad */
 #define INPUT_PROP_SEMI_MT		0x03	/* touch rectangle only */
+#define INPUT_PROP_SYNAPTICS_T3R2	0x04	/* synaptics track 3 report 2 */
 #define INPUT_PROP_INCONSISTENT_RATE	0x05	/* device report rate changes */
 
 #define INPUT_PROP_MAX			0x1f
-- 
1.7.5.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help