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

Commit f5640f2c authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: camera: isp: Initialize completion structure



When setting the stream satte to UPDATING the active completion
should be initialized since we wait on that completion.

CRs-Fixed: 1064457
Change-Id: Ia17d8fb224ef2709761f03464aaf2d4541566817
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent fa501262
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1412,6 +1412,7 @@ static void __msm_isp_axi_stream_update(
	switch (stream_info->state) {
	case UPDATING:
		stream_info->state = ACTIVE;
		complete_all(&stream_info->active_comp);
		break;
	case STOP_PENDING:
		msm_isp_axi_stream_enable_cfg(stream_info);
@@ -3388,9 +3389,11 @@ static void msm_isp_remove_buf_queue(struct vfe_device *vfe_dev,

	if (stream_info->bufq_handle[bufq_id]) {
		stream_info->bufq_handle[bufq_id] = 0;
		if (stream_info->state == ACTIVE)
		if (stream_info->state == ACTIVE) {
			init_completion(&stream_info->active_comp);
			stream_info->state = UPDATING;
		}
	}
	spin_unlock_irqrestore(&stream_info->lock, flags);
	if (stream_info->state == UPDATING)
		msm_isp_axi_wait_for_stream_cfg_done(stream_info, 1);