diff options
| author | Shubhraprakash Das <sadas@codeaurora.org> | 2017-05-04 11:36:06 -0700 |
|---|---|---|
| committer | Shubhraprakash Das <sadas@codeaurora.org> | 2017-05-04 11:45:04 -0700 |
| commit | 2c1d34b8a3ebccc46361469d2ed7d0b676f9eeb2 (patch) | |
| tree | 6d69795228e8d62afcf4d3891a8f1e3d1269b4e9 | |
| parent | 0e233eddfb42d60c1b1a1a23a5dc3bd68dad5908 (diff) | |
msm: camera: isp: Set the sync mode to async
Set the dual camera sync mode to async if all the dual
camera interfaces has shut down. This prevents the
camera from being in sync mode on next start if
sync mode is not requested.
Change-Id: I0b1aae4d77b3c1e73f57214825c2f5fb542833fe
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
| -rw-r--r-- | drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c index 63e46125c292..11de4c3594f0 100644 --- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c +++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c @@ -2289,6 +2289,8 @@ static void msm_isp_input_disable(struct vfe_device *vfe_dev, int cmd_type) ms_res->src_info[src_info->dual_hw_ms_info.index] = NULL; ms_res->num_src--; + if (ms_res->num_src == 0) + ms_res->dual_sync_mode = MSM_ISP_DUAL_CAM_ASYNC; src_info->dual_hw_ms_info.sync_state = MSM_ISP_DUAL_CAM_ASYNC; src_info->dual_hw_type = DUAL_NONE; |
