From 8423346d940ab47a4ef0f87801fd3a10a4d8799c Mon Sep 17 00:00:00 2001 From: davidycchen Date: Tue, 9 Aug 2022 16:47:25 +0800 Subject: synaptics: clear touch_offload coords while release all touches When the screen is off, touch driver releases all the input touch events. This makes the status different from touch_offload so we need to synchronize the status. Bug: 238536533 Test: Touch events are cleared while suspending. Signed-off-by: davidycchen Change-Id: I65e22a9ddc5d4366be5992afd082af390ff65f43 --- syna_tcm2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'syna_tcm2.h') diff --git a/syna_tcm2.h b/syna_tcm2.h index 0aaee81..cd52b28 100644 --- a/syna_tcm2.h +++ b/syna_tcm2.h @@ -470,6 +470,7 @@ struct syna_tcm { u16 *heatmap_buff; struct touch_offload_frame *reserved_frame; bool offload_reserved_coords; + u8 touch_offload_active_coords; #endif #if IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP) -- cgit v1.2.3