summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorRavi Jain <raviajain@google.com>2022-12-26 19:57:48 +0800
committerWendly Li <wendlyli@google.com>2023-03-07 13:05:46 +0000
commit899bce3ec61d0699d62f3ce265590ae077167452 (patch)
tree9d60e00cf3757db7d988fe3a20845dcec559c70e /goodix_ts_core.h
parent9a1bdd15f21249e755ef38ce2439e6ca407ca54c (diff)
downloadgoodix_touch-899bce3ec61d0699d62f3ce265590ae077167452.tar.gz
touch: goodix: Update report stylus event
- Fix pen pressure algo - Report entry timestamp to input subsystem - Add systrace node Test: Tested by flashing locally Bug: 262478113 Bug: 263444046 Change-Id: I4fb791708b2893cb74ccdc050cb1732f96414b33 Signed-off-by: Ravi Jain <raviajain@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 44f136c..19f6930 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -47,6 +47,12 @@
#if IS_ENABLED(CONFIG_GOOG_TOUCH_INTERFACE)
#include <goog_touch_interface.h>
#endif
+#if IS_ENABLED(CONFIG_VH_SYSTRACE)
+#include <trace/hooks/systrace.h>
+#else
+#define ATRACE_BEGIN(f)
+#define ATRACE_END()
+#endif
#define GOODIX_CORE_DRIVER_NAME "goodix_ts"
#define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen"