mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
: Fix fod event not working during touch resume
Why: Fix fod event not working during touch resume Change-Id: Ib451c2296c53c6e1ef42d5e396a9d1725c01cc61 Signed-off-by: Yan Zhang <zhangy26@motorola.com> Reviewed-on: https://gerrit.mot.com/2208743 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
7b51d6aa5c
commit
cb60550be0
2 changed files with 5 additions and 1 deletions
|
|
@ -336,6 +336,8 @@ static int gsx_gesture_init(struct goodix_ts_core *cd,
|
|||
/*enable all gesture wakeup by default */
|
||||
gsx->ts_core->gesture_type = GESTURE_SINGLE_TAP |GESTURE_FOD_PRESS;
|
||||
cd->zerotap_data[0] = 0;
|
||||
//default on the fod event
|
||||
cd->fod_enable = true;
|
||||
atomic_set(&gsx_gesture->registered, 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -270,7 +270,9 @@ static void ts_mmi_queued_resume(struct ts_mmi_dev *touch_cdev)
|
|||
touch_cdev->delay_baseline_update = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (touch_cdev->pdata.fod_detection) {
|
||||
TRY_TO_CALL(update_fod_mode, touch_cdev->fps_state);
|
||||
}
|
||||
if (NEED_TO_SET_POWER) {
|
||||
/* power turn on in PANEL_EVENT_PRE_DISPLAY_ON.
|
||||
* IC need some time to boot up.
|
||||
|
|
|
|||
Loading…
Reference in a new issue