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

Commit 6ea25e95 authored by Peter Liu's avatar Peter Liu Committed by Shuzhen Wang
Browse files

msm: camera: runtime reset sof frame id only for RDI



One RDI interface only have one AXI stream.
Therefore, when getting AXI start, we can reset the frame id.

However, one pix interface may have multiple stream,
we should not reset the pix frame id during runtime.

Change-Id: Iee95173ef85afb9f2da74ebe5363d0a13ded1df5
Signed-off-by: default avatarPeter Liu <pingchie@codeaurora.org>
parent 62a8ead9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1205,8 +1205,10 @@ static int msm_isp_start_axi_stream(struct vfe_device *vfe_dev,
			msm_isp_axi_stream_enable_cfg(vfe_dev, stream_info);
			stream_info->state = ACTIVE;
		}
		vfe_dev->axi_data.src_info[
			SRC_TO_INTF(stream_info->stream_src)].frame_id = 0;
		if (SRC_TO_INTF(stream_info->stream_src) != VFE_PIX_0) {
			vfe_dev->axi_data.src_info[SRC_TO_INTF(
				stream_info->stream_src)].frame_id = 0;
		}
	}
	msm_isp_update_stream_bandwidth(vfe_dev);
	vfe_dev->hw_info->vfe_ops.axi_ops.reload_wm(vfe_dev, wm_reload_mask);