input: touchscreen: qtouch: update palm suppression cfg params
authormakarand.karvekar <makarand.karvekar@motorola.com>
Thu, 13 Jan 2011 19:49:02 +0000 (13:49 -0600)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 14 Jan 2011 20:02:23 +0000 (12:02 -0800)
Change-Id: I74d99c06ee8b73a2ed59cbfe5264f2f7370c4e48
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
drivers/input/touchscreen/qtouch_obp_ts.c
include/linux/qtouch_obp_ts.h

index 3d239e5bc586e41c07b7e54d67802f869f38346e..9f4b18c7f4892175b361a22aff4c0a977939df6d 100644 (file)
@@ -863,7 +863,8 @@ static int do_touch_multi_msg(struct qtouch_ts_data *ts, struct qtm_object *obj,
                return 1;
        }
 
-       down = !(msg->status & QTM_TOUCH_MULTI_STATUS_RELEASE);
+       down = !(msg->status & (QTM_TOUCH_MULTI_STATUS_RELEASE |
+                QTM_TOUCH_MULTI_STATUS_SUPPRESS));
 
        ts->finger_data[finger].x_data = x;
        ts->finger_data[finger].y_data = y;
index 022176259a895b74139b49708e37525a47ee5e02..4d506589dbb7460ce5484c0fbca156b9f1959cdf 100644 (file)
@@ -140,6 +140,7 @@ struct qtm_cmd_proc_msg {
 #define QTM_TOUCH_MULTI_STATUS_MOVE            (1 << 4)
 #define QTM_TOUCH_MULTI_STATUS_VECTOR          (1 << 3)
 #define QTM_TOUCH_MULTI_STATUS_AMPLITUDE       (1 << 2)
+#define QTM_TOUCH_MULTI_STATUS_SUPPRESS                (1 << 1)
 struct qtm_touch_multi_msg {
        uint8_t                 report_id;
        uint8_t                 status;
@@ -426,6 +427,7 @@ struct qtm_proci_palm_suppression_cfg {
        uint8_t         large_obj_thr;
        uint8_t         distance_thr;
        uint8_t         sup_ext_to;
+       uint8_t         strength;
 } __attribute__ ((packed));
 
 /* QTM_OBJ_SPT_DIGITIZER T43 */