summaryrefslogtreecommitdiff
path: root/tcm/synaptics_touchcom_core_dev.h
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2022-03-30 10:51:41 +0800
committerdavidycchen <davidycchen@google.com>2022-05-11 12:48:08 +0800
commit6f4670c7013b792875b8ce24fc66162c0a4f8009 (patch)
tree83fbea188d076b6d8ae05752d4e102e71e7c126f /tcm/synaptics_touchcom_core_dev.h
parent921d8675e43f11ab8ec2b41b22824ba18439bf88 (diff)
downloadsynaptics_touch-6f4670c7013b792875b8ce24fc66162c0a4f8009.tar.gz
synaptics: Support touch orientation
Update the vendor driver to v1.2.7 to support touch orientation and google defined major/minor. Add the touch offload capability for orientation. Bug: 227402881. Test: Check the touch reports by getevent. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I42277e0e717b22c56ec0482fcb42c962b1d910d7
Diffstat (limited to 'tcm/synaptics_touchcom_core_dev.h')
-rw-r--r--tcm/synaptics_touchcom_core_dev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcm/synaptics_touchcom_core_dev.h b/tcm/synaptics_touchcom_core_dev.h
index 0871dbc..c42607d 100644
--- a/tcm/synaptics_touchcom_core_dev.h
+++ b/tcm/synaptics_touchcom_core_dev.h
@@ -44,7 +44,7 @@
#include "syna_tcm2_platform.h"
-#define SYNA_TCM_CORE_LIB_VERSION 0x0118
+#define SYNA_TCM_CORE_LIB_VERSION 0x0119
/**
@@ -515,6 +515,7 @@ struct tcm_objects_data_blob {
unsigned int z;
unsigned int tx_pos;
unsigned int rx_pos;
+ unsigned int custom_data[5];
};
struct tcm_gesture_data_blob {
union {
@@ -533,6 +534,7 @@ struct tcm_gesture_data_blob {
struct tcm_touch_data_blob {
/* for each active objects */
+ unsigned int obji;
unsigned int num_of_active_objects;
struct tcm_objects_data_blob object_data[MAX_NUM_OBJECTS];
@@ -982,7 +984,6 @@ static inline void syna_tcm_buf_lock(struct tcm_buffer *pbuf)
{
if (pbuf->ref_cnt != 0) {
LOGE("Buffer access out-of balance, %d\n", pbuf->ref_cnt);
- return;
}
syna_pal_mutex_lock(&pbuf->buf_mutex);
@@ -1003,7 +1004,6 @@ static inline void syna_tcm_buf_unlock(struct tcm_buffer *pbuf)
{
if (pbuf->ref_cnt != 1) {
LOGE("Buffer access out-of balance, %d\n", pbuf->ref_cnt);
- return;
}
pbuf->ref_cnt--;