summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2021-06-30 03:11:46 +0000
committerSuper Liu <supercjliu@google.com>2021-06-30 03:11:46 +0000
commitb8087beeee726fb474db1feea55412bc0b0acfb1 (patch)
tree03af19e5d7e075ab83ab50b216074ff335c849a9
parent25a6c26963084adabbd9ab9e279cad2ef2170c60 (diff)
downloadfts_touch-b8087beeee726fb474db1feea55412bc0b0acfb1.tar.gz
touch/fts: refine input timestamp for normal report
Bug: 192412885 Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: Ia334495b874691f6b56a5e301d168e678d0807cd
-rw-r--r--fts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fts.c b/fts.c
index 7dadd7a..d88640a 100644
--- a/fts.c
+++ b/fts.c
@@ -4342,6 +4342,7 @@ static irqreturn_t fts_interrupt_handler(int irq, void *handle)
if (info->touch_id == 0)
input_report_key(info->input_dev, BTN_TOUCH, 0);
+ input_set_timestamp(info->input_dev, info->timestamp);
input_sync(info->input_dev);
mutex_unlock(&info->input_report_mutex);
@@ -4971,9 +4972,6 @@ static irqreturn_t fts_isr(int irq, void *handle)
struct fts_ts_info *info = handle;
info->timestamp = ktime_get();
-#if !IS_ENABLED(CONFIG_TOUCHSCREEN_OFFLOAD)
- input_set_timestamp(info->input_dev, info->timestamp);
-#endif
return IRQ_WAKE_THREAD;
}