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

Commit 45498845 authored by Meera Gande's avatar Meera Gande
Browse files

mm-camera2:isp2: Avoid multiple frame requests



While handling request frames with internal remap
during register update ioctl miss, we need to avoid
frame requests for both the vfe's.

Change-Id: Ia92be21184f208ece61c16a701552b2a2defe03a
Signed-off-by: default avatarMeera Gande <mgande@codeaurora.org>
parent 6b3f84f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2409,14 +2409,14 @@ int msm_isp_drop_frame(struct vfe_device *vfe_dev,
		/*this notify is per ping and pong buffer*/
		done_buf->is_drop_reconfig = 1;
		stream_info->current_framedrop_period = 1;
		/*Avoid Multiple request frames for single SOF*/
		vfe_dev->axi_data.src_info[VFE_PIX_0].accept_frame = false;

		if (stream_info->current_framedrop_period !=
			stream_info->requested_framedrop_period) {
			msm_isp_cfg_framedrop_reg(stream_info);
		}
	}
	/* Avoid Multiple request frames for single SOF */
	vfe_dev->axi_data.src_info[VFE_PIX_0].accept_frame = false;
	spin_unlock_irqrestore(&stream_info->lock, flags);

	/* if buf done will not come, we need to process it ourself */