mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
rhode: vibrator move camera notice after enable
move camera notice after enable Change-Id: I6013833c4658ec4784868742c3f5900f465b53f6 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/2245040 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:
parent
cb1ec726fe
commit
387f5b5716
1 changed files with 12 additions and 11 deletions
|
|
@ -50,17 +50,6 @@ static inline int moto_vib_ldo_enable(struct vib_ldo_chip *chip, bool enable)
|
|||
if (chip->vib_enabled == enable)
|
||||
return 0;
|
||||
|
||||
#ifdef CONFIG_VIBRATOR_NOISE_CAMERA
|
||||
if ((chip->vib_play_ms > 70) && (enable)) {
|
||||
mot_actuator_on_vibrate_start();
|
||||
mot_actuator_started = 1;
|
||||
}
|
||||
if(!(enable) && (mot_actuator_started == 1 )) {
|
||||
mot_actuator_on_vibrate_stop();
|
||||
mot_actuator_started = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
pr_debug("moto_vib_ldo_enable enable = %d\n", enable);
|
||||
|
||||
if (enable) {
|
||||
|
|
@ -76,6 +65,18 @@ static inline int moto_vib_ldo_enable(struct vib_ldo_chip *chip, bool enable)
|
|||
chip->vib_enabled = false;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_VIBRATOR_NOISE_CAMERA
|
||||
if ((chip->vib_play_ms > 70) && (enable)) {
|
||||
mot_actuator_on_vibrate_start();
|
||||
mot_actuator_started = 1;
|
||||
}
|
||||
if(!(enable) && (mot_actuator_started == 1 )) {
|
||||
mot_actuator_on_vibrate_stop();
|
||||
mot_actuator_started = 0;
|
||||
}
|
||||
pr_debug("moto_vib_ldo_enable camera done\n");
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue