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>
This commit is contained in:
Shubhraprakash Das 2017-05-04 11:36:06 -07:00
parent 0e233eddfb
commit 2c1d34b8a3

View file

@ -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;