mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
camera: ois: avoid ois power down twice when download firmware failed
[detail] ois will power down when received CAM_RELEASE_DEV command. Change-Id: I58a573356614670d898095772c28c873d43eb830 Signed-off-by: liuwang2 <liuwang2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2350085 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: <zhaoxy41@motorola.com> Reviewed-by: Yongqin Wan <wanyq1@motorola.com> Reviewed-by: <hedj3@motorola.com> Reviewed-by: Long Cheng <chengl1@motorola.com> Reviewed-by: Zhichao Chen <chenzc2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
6466772790
commit
dd8ca877e3
1 changed files with 5 additions and 1 deletions
|
|
@ -167,6 +167,8 @@ static int cam_ois_power_up(struct cam_ois_ctrl_t *o_ctrl)
|
|||
return rc;
|
||||
}
|
||||
|
||||
CAM_INFO(CAM_OIS, "OIS Power up successfully");
|
||||
|
||||
rc = camera_io_init(&o_ctrl->io_master_info);
|
||||
if (rc) {
|
||||
CAM_ERR(CAM_OIS, "cci_init failed: rc: %d", rc);
|
||||
|
|
@ -216,6 +218,8 @@ static int cam_ois_power_down(struct cam_ois_ctrl_t *o_ctrl)
|
|||
return rc;
|
||||
}
|
||||
|
||||
CAM_INFO(CAM_OIS, "OIS power down successed");
|
||||
|
||||
camera_io_release(&o_ctrl->io_master_info);
|
||||
|
||||
return rc;
|
||||
|
|
@ -1680,7 +1684,7 @@ static int cam_ois_pkt_parse(struct cam_ois_ctrl_t *o_ctrl, void *arg)
|
|||
if (!rc)
|
||||
return rc;
|
||||
pwr_dwn:
|
||||
cam_ois_power_down(o_ctrl);
|
||||
//cam_ois_power_down(o_ctrl); /* ois will pown down in CAM_RELEASE_DEV when closed camera */
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue