Set and send ABS_X/Y for enabling specific multitouch input driver for mxt224 panel
authorAustin Zhang <austin.zhang@intel.com>
Wed, 18 Jul 2012 04:01:43 +0000 (12:01 +0800)
committerAustin Zhang <austin.zhang@intel.com>
Wed, 18 Jul 2012 05:10:01 +0000 (13:10 +0800)
Set and send ABS_X/Y to make input driver evdevmultitouch happy, so
that we can use that input driver to implement multitouch support

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
drivers/input/touchscreen/atmel_mxt224.c

index 0b94a9d..7bf39d8 100644 (file)
@@ -1096,6 +1096,10 @@ static void report_mt(struct mxt_data *mxt)
                                        ABS_MT_POSITION_X, finger[i].x);
                        input_report_abs(mxt->touch_input,
                                        ABS_MT_POSITION_Y, finger[i].y);
+                       input_report_abs(mxt->touch_input,
+                                       ABS_X, finger[i].x);
+                       input_report_abs(mxt->touch_input,
+                                       ABS_Y, finger[i].y);
                } else {
                        finger[i].status = 0;
                }
@@ -2329,6 +2333,10 @@ static int __devinit mxt_probe(struct i2c_client *client,
 
        /* Multitouch */
        input_mt_init_slots(touch_input, MXT_MAX_NUM_TOUCHES);
+       input_set_abs_params(touch_input, ABS_X,
+                            TS_MIN_X, TS_MAX_X, 0, 0);
+       input_set_abs_params(touch_input, ABS_Y,
+                            TS_MIN_Y, TS_MAX_Y, 0, 0);
        input_set_abs_params(touch_input, ABS_MT_POSITION_X,
                             TS_MIN_X, TS_MAX_X, 0, 0);
        input_set_abs_params(touch_input, ABS_MT_POSITION_Y,