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

Commit 77e60950 authored by Konstantin Motov's avatar Konstantin Motov Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: fix freme id for memory to memory ISP processing



Frame is must increase each frame and it should start from 1.

Change-Id: I3f4791e00283ac596fab324d2811ea194e6c5b10
Signed-off-by: default avatarKonstantin Motov <kmotov@codeaurora.org>
parent f1637604
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -485,6 +485,11 @@ void msm_isp_fetch_engine_done_notify(struct vfe_device *vfe_dev,
	struct msm_isp_event_data fe_rd_done_event;
	if (!fetch_engine_info->is_busy)
		return;

	vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id++;
	if (vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id == 0)
		vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id = 1;

	memset(&fe_rd_done_event, 0, sizeof(struct msm_isp_event_data));
	fe_rd_done_event.frame_id =
		vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id;