From 5ac96fa45d594f68637a324e6d30a48b6e13d780 Mon Sep 17 00:00:00 2001 From: Super Liu Date: Fri, 5 Nov 2021 09:36:11 +0800 Subject: 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 Change-Id: Ifb17d424e1f2ee80fc4147396126518e915dc95d --- sec_ts.c | 31 ------------------------------- 1 file changed, 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, -- cgit v1.2.3