Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c0f1d7f authored by Srikanth Uyyala's avatar Srikanth Uyyala
Browse files

msm: isp: camera_v2: use vfe0 when dual_isp_sync enabled



when dual vfe sync is enabled vfe0 struct is used access
common variable, if disabled use vfe1.

Change-Id: Ib418cfe8c4ceec8c204f36482402e0746dc5755b
Signed-off-by: default avatarSrikanth Uyyala <suyyala@codeaurora.org>
parent 495096f0
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -695,7 +695,8 @@ void msm_isp_process_reg_upd_epoch_irq(struct vfe_device *vfe_dev,
				uint32_t drop_reconfig =
					vfe_dev->isp_page->drop_reconfig;
				if (stream_info->num_isp > 1 &&
					vfe_dev->pdev->id == ISP_VFE0) {
					vfe_dev->pdev->id == ISP_VFE0 &&
					!vfe_dev->dual_vfe_sync_mode) {
					c_data = vfe_dev->common_data;
					temp = c_data->dual_vfe_res->vfe_dev[
						ISP_VFE1];
@@ -3700,8 +3701,14 @@ static int msm_isp_request_frame(struct vfe_device *vfe_dev,
		return -EINVAL;
	}

	/* return early for dual vfe0 */
	if (stream_info->num_isp > 1 && vfe_dev->pdev->id == ISP_VFE0)
	/* return early for dual vfe */
	if (stream_info->num_isp > 1 &&
		vfe_dev->pdev->id == ISP_VFE1 &&
		vfe_dev->dual_vfe_sync_mode)
		return 0;
	if (stream_info->num_isp > 1 &&
		vfe_dev->pdev->id == ISP_VFE0 &&
		!vfe_dev->dual_vfe_sync_mode)
		return 0;

	if (stream_info->stream_src >= VFE_AXI_SRC_MAX) {