From 7409103418d79c9c90144dec0d26da20ffbc8513 Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Wed, 2 Mar 2022 17:05:00 +0800 Subject: [PATCH] dubai: vibrator fix rtp issue fix rtp Change-Id: I3e72f1f7f09513fa8bf90766236da942332911f5 Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/2205249 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- drivers/misc/awinic/aw862x/aw8622x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/awinic/aw862x/aw8622x.c b/drivers/misc/awinic/aw862x/aw8622x.c index b99f9cf690e7..67393bb56d17 100644 --- a/drivers/misc/awinic/aw862x/aw8622x.c +++ b/drivers/misc/awinic/aw862x/aw8622x.c @@ -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) {