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

Commit e31e9dc0 authored by Srikanth Uyyala's avatar Srikanth Uyyala Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp: initialize pd stats buffer index



In dual vfe usecase pd_stats buffer index is valid
for one vfe only, for other vfe it should be set as
invalid value (0xF)

Change-Id: Idf7e11fa89fe447dec578dfac2906d2ce8f610c2
Signed-off-by: default avatarSrikanth Uyyala <suyyala@codeaurora.org>
parent 630218f7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -948,6 +948,8 @@ static void msm_isp_update_pd_stats_idx(struct vfe_device *vfe_dev,
	uint32_t pingpong_status = 0, pingpong_bit = 0;
	struct msm_isp_buffer *done_buf = NULL;
	int vfe_idx = -1;
	/* initialize pd_buf_idx with an invalid index 0xF */
	vfe_dev->pd_buf_idx = 0xF;

	if (frame_src < VFE_RAW_0 || frame_src >  VFE_RAW_2)
		return;