mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
: Do not disable Zero Tap when FOD is not enabled.
FOD: Do not disable Zero Tap when FOD is not enabled. Change-Id: Ica9d40e412ecdc00df44d0ed09103b7cda997092 Signed-off-by: Yan Zhang <zhangy26@motorola.com> Reviewed-on: https://gerrit.mot.com/2246137 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng <dengwei1@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
af80d00771
commit
42cef9e7de
1 changed files with 0 additions and 9 deletions
|
|
@ -422,10 +422,6 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd,
|
|||
fodx = le16_to_cpup((__le16 *)gs_event.gesture_data);
|
||||
fody = le16_to_cpup((__le16 *)(gs_event.gesture_data + 2));
|
||||
overlay_area = gs_event.gesture_data[4];
|
||||
if(!cd->fod_enable) {
|
||||
ts_info("Get FOD-DOWN gesture when fod is not enabled, ignore");
|
||||
goto gesture_ist_exit;
|
||||
}
|
||||
//goodix firmware do not send coordinate, need mmi touch to define a vaild coordinate thru dts
|
||||
mmi_event.evcode = 2;
|
||||
mmi_event.evdata.x= 0;
|
||||
|
|
@ -446,11 +442,6 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd,
|
|||
}
|
||||
fod_down++;
|
||||
}else if(cd->gesture_type & GESTURE_FOD_PRESS && gs_event.gesture_type == GOODIX_GESTURE_FOD_UP) {
|
||||
if(!cd->fod_enable) {
|
||||
ts_info("Get FOD-UP gesture when fod is not enabled, ignore");
|
||||
fod_down = 0;
|
||||
goto gesture_ist_exit;
|
||||
}
|
||||
ts_info("Get FOD-UP gesture");
|
||||
mmi_event.evcode = 3;
|
||||
mmi_event.evdata.x= 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue