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

Commit 1877961e authored by Megha Tak's avatar Megha Tak Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Resetting init framedrop if source is active



Resetting init framedrop if source is active, else framedrop
is wrong and liveshot does not work.

Change-Id: I324975c973eb904f62da5873b6cbe45e955d32d2
Signed-off-by: default avatarMegha Tak <mtak@codeaurora.org>
parent b940677f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -491,14 +491,15 @@ void msm_isp_reset_framedrop(struct vfe_device *vfe_dev,
	 * is taken into consideration But if skip frame has already
	 * passed, burst count has to be updated accordingly
	 */
	if (vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id == 0)
	if (vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id == 0) {
		stream_info->runtime_burst_frame_count =
			stream_info->burst_frame_count;
	else
	} else {
		stream_info->runtime_burst_frame_count =
			stream_info->burst_frame_count -
			stream_info->runtime_init_frame_drop;

		stream_info->runtime_init_frame_drop = 0;
	}
	stream_info->runtime_num_burst_capture =
		stream_info->num_burst_capture;
	stream_info->runtime_framedrop_update = stream_info->framedrop_update;