mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
aw8695: move camera start entry before the vibrator timer
-In the current logic,the camera process is after setting the vibrator timer. The camera will take some time,which cause the vibration duration to be shorter. Especially when we use launch_lens to move lens step-by-step. -So move camera process before setting vibrator timer. Change-Id: Ib8115444015f6160c25177e9065aa0f6a2fcede3 Signed-off-by: wangshuo18 <wangshuo18@lenovo.com> Reviewed-on: https://gerrit.mot.com/1976296 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Long Cheng <chengl1@motorola.com> Reviewed-by: Xingyun Fu <fuxy7@motorola.com> Reviewed-by: Qiang Guo <guoq8@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
f572e51181
commit
83117789d0
1 changed files with 6 additions and 8 deletions
|
|
@ -604,14 +604,6 @@ static int aw8695_haptic_play_go(struct aw8695 *aw8695, bool flag)
|
|||
}
|
||||
}
|
||||
if(flag == true) {
|
||||
#ifdef CONFIG_AF_NOISE_ELIMINATION
|
||||
if (aw8695->haptic_mode == HAPTIC_LONG) {
|
||||
pr_info("%s: %d: mot_actuator_on_vibrate_start, duration=%d, haptic_mode=%d, play_mode=%hhu \n", __func__,__LINE__
|
||||
,aw8695->duration,aw8695->haptic_mode,aw8695->play_mode);
|
||||
is_af_enabled = true;
|
||||
mot_actuator_on_vibrate_start();
|
||||
}
|
||||
#endif
|
||||
aw8695_i2c_write_bits(aw8695, AW8695_REG_GO,
|
||||
AW8695_BIT_GO_MASK, AW8695_BIT_GO_ENABLE);
|
||||
GET_TIME_OF_DAY(&aw8695->pre_enter_time);
|
||||
|
|
@ -1982,6 +1974,12 @@ static void aw8695_vibrate(struct aw8695 *aw8695, int value)
|
|||
aw8695_haptic_play_wav_seq(aw8695, 0x01);
|
||||
break;
|
||||
case HAPTIC_LONG:
|
||||
#ifdef CONFIG_AF_NOISE_ELIMINATION
|
||||
pr_info("%s: %d: mot_actuator_on_vibrate_start, duration=%d, haptic_mode=%d, play_mode=%hhu \n", __func__,__LINE__
|
||||
,aw8695->duration,aw8695->haptic_mode,aw8695->play_mode);
|
||||
is_af_enabled = true;
|
||||
mot_actuator_on_vibrate_start();
|
||||
#endif
|
||||
aw8695->duration = value;
|
||||
/* wav index config */
|
||||
aw8695->index = 0x02;
|
||||
|
|
|
|||
Loading…
Reference in a new issue