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

Commit d5748bca authored by Konstantin Motov's avatar Konstantin Motov
Browse files

msm: camera: Fix ISP output buffer handling



Clear buffer only if WM's is not configured instead of during
get buffer function. This is needed because sometime we need to
continue use same buffer in case of new buffer is not available.

Change-Id: I33fc9ef1f7cfbffee2e76190165be43d2c637991
Signed-off-by: default avatarKonstantin Motov <kmotov@codeaurora.org>
parent b97d19d1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -830,7 +830,6 @@ static void msm_isp_get_done_buf(struct vfe_device *vfe_dev,
		stream_info->request_frm_num--;

	*done_buf = stream_info->buf[pingpong_bit];
	stream_info->buf[pingpong_bit] = NULL;
}

static int msm_isp_cfg_ping_pong_address(struct vfe_device *vfe_dev,
@@ -842,8 +841,10 @@ static int msm_isp_cfg_ping_pong_address(struct vfe_device *vfe_dev,
	uint32_t bufq_handle = 0;
	uint32_t stream_idx = HANDLE_TO_IDX(stream_info->stream_handle);

	if (stream_info->controllable_output && !stream_info->request_frm_num)
	if (stream_info->controllable_output && !stream_info->request_frm_num) {
		stream_info->buf[pingpong_bit] = NULL;
		return 0;
	}

	bufq_handle = stream_info->bufq_handle;