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

Commit df1b68ed authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: fixes incorrect RDI empty frame handling"

parents c5ad262b a68fbe8c
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -3280,20 +3280,15 @@ static int msm_isp_request_frame(struct vfe_device *vfe_dev,
	trace_msm_cam_isp_bufcount("msm_isp_request_frame:",
		vfe_dev->pdev->id, frame_id, frame_src);

	/*
	 * If PIX stream is active then RDI path uses SOF frame ID of PIX
	 * In case of standalone RDI streaming, SOF are used from
	 * individual intf.
	 */
	/*
	 * If frame_id = 1 then no eof check is needed
	 */
	if (((vfe_dev->axi_data.src_info[VFE_PIX_0].active) && ((frame_id !=
	if (((frame_src == VFE_PIX_0) && ((frame_id !=
		vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id + vfe_dev->
		axi_data.src_info[VFE_PIX_0].sof_counter_step) ||
		(frame_id <= vfe_dev->
		axi_data.src_info[VFE_PIX_0].eof_id + 1))) ||
		((!vfe_dev->axi_data.src_info[VFE_PIX_0].active) && (frame_id !=
		((frame_src != VFE_PIX_0) && (frame_id !=
		vfe_dev->axi_data.src_info[frame_src].frame_id + vfe_dev->
		axi_data.src_info[frame_src].sof_counter_step)) ||
		stream_info->undelivered_request_cnt >= MAX_BUFFERS_IN_HW) {
+3 −0
Original line number Diff line number Diff line
@@ -497,6 +497,9 @@ static int msm_isp_cfg_rdi(struct vfe_device *vfe_dev,
		return -EINVAL;
	}

	vfe_dev->axi_data.
		src_info[input_cfg->input_src].sof_counter_step = 1;

	vfe_dev->axi_data.src_info[input_cfg->input_src].pixel_clock =
		input_cfg->input_pix_clk;
	vfe_dev->hw_info->vfe_ops.core_ops.cfg_rdi_reg(