summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2021-11-05 09:36:11 +0800
committerSuper Liu <supercjliu@google.com>2021-11-05 07:22:21 +0000
commit5ac96fa45d594f68637a324e6d30a48b6e13d780 (patch)
tree1c0ebb2b0b8b5e74baae8de04d0eae841749f4ff
parent52400f503cff6d3e3d63f264d2bb22bb30d352ff (diff)
downloadsec_touch-5ac96fa45d594f68637a324e6d30a48b6e13d780.tar.gz
touch/sec: abandon the cancel event for FoD.
Since there is no T-IC reset after applying pa/1993460, the persistent finger from AOC to APC will keep sensing without losing signal. No additional cancel event requires for FoD case. Bug: 204553185 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ifb17d424e1f2ee80fc4147396126518e915dc95d
-rw-r--r--sec_ts.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sec_ts.c b/sec_ts.c
index a417eea..8af51d7 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -2728,37 +2728,6 @@ static void sec_ts_handle_fod_event(struct sec_ts_data *ts,
input_info(true, &ts->client->dev,
"STATUS: FoD: %s, X,Y: %d, %d\n", p_fod->status ? "ON" : "OFF", x, y);
-
- if (p_fod->status == false) {
- mutex_lock(&ts->eventlock);
- input_mt_slot(ts->input_dev, 0);
- input_report_key(ts->input_dev, BTN_TOUCH, 1);
- input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, 1);
- input_report_abs(ts->input_dev, ABS_MT_POSITION_X, x);
- input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, y);
- input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, 140);
- input_report_abs(ts->input_dev, ABS_MT_TOUCH_MINOR, 140);
-#ifndef SKIP_PRESSURE
- input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 1);
-#endif
- input_sync(ts->input_dev);
-
- /* Report MT_TOOL_PALM for canceling the touch event. */
- input_mt_slot(ts->input_dev, 0);
- input_report_key(ts->input_dev, BTN_TOUCH, 1);
- input_mt_report_slot_state(ts->input_dev, MT_TOOL_PALM, 1);
- input_sync(ts->input_dev);
-
- /* Release slot 0. */
- input_mt_slot(ts->input_dev, 0);
- input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 0);
- input_mt_report_slot_state(ts->input_dev,
- MT_TOOL_FINGER, 0);
- input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, -1);
- input_report_key(ts->input_dev, BTN_TOUCH, 0);
- input_sync(ts->input_dev);
- mutex_unlock(&ts->eventlock);
- }
}
static void sec_ts_read_vendor_event(struct sec_ts_data *ts,