dubai: vibrator fix rtp issue

fix
rtp

Change-Id: I3e72f1f7f09513fa8bf90766236da942332911f5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
dengwei1 2022-03-02 17:05:00 +08:00 • committed by Wei Deng
commit 7409103418

View file

@ -3718,7 +3718,7 @@ static void aw8622x_vibrator_work_routine(struct work_struct *work)
aw8622x->activate_mode = AW8622X_HAPTIC_RTP_MODE;
/* rtp mode and no stop */
if (moto_mode > (AW8622X_SEQ_NO_RTP_BASE + AW8622X_SEQ_NO_RTP_REPEAT)) {
aw8622x->rtp_file_num = moto_mode - AW8622X_SEQ_NO_RTP_REPEAT;
aw8622x->rtp_file_num -= AW8622X_SEQ_NO_RTP_REPEAT;
aw8622x->activate_mode = AW8622X_HAPTIC_LOOP_RTP_MODE;
}
} else if ((aw8622x->duration < aw8622x->dts_info.duration_time[2]) || moto_mode > 2) {