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

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

msm: camera: Fix controllable output.



Buffers history should be clear in get buffer for controllable outputs
because set ping pong address is calling only if we have more requests.

Change-Id: Iffc1b6b4cdede703176cd43c8f933c70601570d2
Signed-off-by: default avatarKonstantin Motov <kmotov@codeaurora.org>
parent c30e0fc0
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -850,10 +850,12 @@ static void msm_isp_get_done_buf(struct vfe_device *vfe_dev,
		}
	}

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

	*done_buf = stream_info->buf[pingpong_bit];

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

static int msm_isp_cfg_ping_pong_address(struct vfe_device *vfe_dev,
@@ -869,10 +871,9 @@ static int msm_isp_cfg_ping_pong_address(struct vfe_device *vfe_dev,
		pr_err("%s: Invalid stream_idx", __func__);
		return rc;
	}
	if (stream_info->controllable_output && !stream_info->request_frm_num) {
		stream_info->buf[pingpong_bit] = NULL;

	if (stream_info->controllable_output && !stream_info->request_frm_num)
		return 0;
	}

	bufq_handle = stream_info->bufq_handle;