summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2019-03-22 16:41:29 +0800
committerSuper Liu <supercjliu@google.com>2019-03-22 16:41:29 +0800
commit93f13c69a57dff4c36adc000502c50654f20823a (patch)
tree106551a4d2ef796cc8612080a7e975a955ea1860
parentcec6c5b535525c9c118e249b05d12dfc76828d9d (diff)
downloadfts_touch-93f13c69a57dff4c36adc000502c50654f20823a.tar.gz
input: touchscreen: stm: recover heatmap mode for abnormal case
Somehow host data memroy(hdm) mode was modified to non-heatmap mode. Need to have a one entry to manage the hdm mode for totoal solution later. Bug: 129088217 Bug: 128954987 Change-Id: I30ae427883baba6035d4cd6232fb78ec0cdc35dc Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--fts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fts.c b/fts.c
index 45d1ff8..85a5f76 100644
--- a/fts.c
+++ b/fts.c
@@ -3427,6 +3427,7 @@ static bool read_heatmap_raw(struct v4l2_heatmap *v4l2, strength_t *data)
if (report.mode != LOCAL_HEATMAP_MODE) {
pr_err("Touch IC not in local heatmap mode: %X %X %i",
report.prefix, report.mode, report.counter);
+ heatmap_enable();
return false;
}