Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
camera_v2: disable actuator lens parking for daisy
Browse files Browse the repository at this point in the history
fixes actuator power cycling during initialization

Signed-off-by: LinkBoi00 <[email protected]>
  • Loading branch information
Jebaitedneko authored and LinkBoi00 committed Jul 10, 2021
1 parent 8ee8ef6 commit b25f865
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1132,12 +1132,14 @@ static int32_t msm_actuator_power_down(struct msm_actuator_ctrl_t *a_ctrl)
CDBG("Enter\n");
if (a_ctrl->actuator_state != ACT_DISABLE_STATE) {

#ifndef CONFIG_MACH_XIAOMI_DAISY
if (a_ctrl->func_tbl && a_ctrl->func_tbl->actuator_park_lens) {
rc = a_ctrl->func_tbl->actuator_park_lens(a_ctrl);
if (rc < 0)
pr_err("%s:%d Lens park failed.\n",
__func__, __LINE__);
}
#endif

rc = msm_actuator_vreg_control(a_ctrl, 0);
if (rc < 0) {
Expand Down

0 comments on commit b25f865

Please sign in to comment.