summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2022-04-25 14:11:28 +0800
committerdavidycchen <davidycchen@google.com>2022-04-25 14:19:46 +0800
commited306c939e810754f6cb52b46ac4cda9bb5755b9 (patch)
treec642e71339a8e0e5689341efbb3c95eae1c04aad
parentb85fd5939c20d5cbac45ab426a94aca730d7342a (diff)
downloadsec_touch-ed306c939e810754f6cb52b46ac4cda9bb5755b9.tar.gz
Align the ABS_MT_ORIENTATION range as touch_offload. Bug: 230270099 Test: Touch works fine. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I8eb584063b739ec23f0cce16c8d746fa1cb3fff2
-rw-r--r--sec_ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sec_ts.c b/sec_ts.c
index 20a9fda..abd4b6f 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -4197,10 +4197,10 @@ static void sec_ts_set_input_prop(struct sec_ts_data *ts,
input_set_abs_params(dev, ABS_MT_PRESSURE, 0,
SEC_TS_PRESSURE_MAX, 0, 0);
- /* Units are (-8192, 8192), representing the range between rotation
+ /* Units are (-4096, 4096), representing the range between rotation
* 90 degrees to left and 90 degrees to the right.
*/
- input_set_abs_params(dev, ABS_MT_ORIENTATION, -8192, 8192, 0, 0);
+ input_set_abs_params(dev, ABS_MT_ORIENTATION, -4096, 4096, 0, 0);
if (propbit == INPUT_PROP_POINTER)
input_mt_init_slots(dev, MAX_SUPPORT_TOUCH_COUNT,