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

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

msm: camera: isp: Return success if buffer not available



If buffer is not available during stream start then do not treat
that as an error.

CRs-Fixed: 1087368
Change-Id: I8f56bbf621313676282e06449431d1961d4819eb
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 4d0a1adb
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2340,15 +2340,22 @@ static int msm_isp_init_stream_ping_pong_reg(
	/* Set address for both PING & PO NG register */
	rc = msm_isp_cfg_ping_pong_address(
		stream_info, VFE_PING_FLAG);
	/* No buffer available on start is not error */
	if (rc == -ENOMEM && stream_info->stream_type != BURST_STREAM)
		return 0;
	if (rc < 0) {
		pr_err("%s: No free buffer for ping\n",
			   __func__);
		return rc;
	}
	if (stream_info->stream_type != BURST_STREAM ||
		stream_info->runtime_num_burst_capture > 1)
		stream_info->runtime_num_burst_capture > 1) {
		rc = msm_isp_cfg_ping_pong_address(
			stream_info, VFE_PONG_FLAG);
		/* No buffer available on start is not error */
		if (rc == -ENOMEM)
			return 0;
	}

	if (rc < 0) {
		pr_err("%s: No free buffer for pong\n",