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

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

msm: camera: Fix continuous streaming for controllable output



Request frame number needs to be decremented when frame is ready.
Otherwise we could decide that there is no frame request while
current frame is on going.

Change-Id: I7a5d13c2a53dfcf36d13300470685a0aea9a749c
Signed-off-by: default avatarKonstantin Motov <kmotov@codeaurora.org>
parent 1559d923
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -825,6 +825,10 @@ static void msm_isp_get_done_buf(struct vfe_device *vfe_dev,
				__func__, pingpong_status);
		}
	}

	if (stream_info->controllable_output)
		stream_info->request_frm_num--;

	*done_buf = stream_info->buf[pingpong_bit];
	stream_info->buf[pingpong_bit] = NULL;
}
@@ -857,14 +861,6 @@ static int msm_isp_cfg_ping_pong_address(struct vfe_device *vfe_dev,
		goto buf_error;
	}

	if (stream_info->controllable_output) {
		if (!stream_info->request_frm_num) {
			pr_err("%s: Frame is not required!\n", __func__);
			rc = -EINVAL;
		}
		stream_info->request_frm_num--;
	}

	for (i = 0; i < stream_info->num_planes; i++)
		vfe_dev->hw_info->vfe_ops.axi_ops.update_ping_pong_addr(
			vfe_dev, stream_info->wm[i],