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

Commit ffe07942 authored by Nagesh Subba Reddy's avatar Nagesh Subba Reddy Committed by Sagar Gore
Browse files

msm: camera: Fix request frame while CDS is on



When CDS is in progress, request frame should be supported.
Added additional check for validation of state.

Change-Id: I3ced45a6a50f2ee2cc64c154b402c8dee6cedd74
Signed-off-by: default avatarNagesh Subba Reddy <nageshsreddy@codeaurora.org>
parent 0dab3364
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2850,8 +2850,14 @@ int msm_isp_update_axi_stream(struct vfe_device *vfe_dev, void *arg)
		if (SRC_TO_INTF(stream_info->stream_src) >= VFE_SRC_MAX)
			continue;
		if (stream_info->state != ACTIVE &&
			stream_info->state != INACTIVE) {
			pr_err("%s: Invalid stream state\n", __func__);
			stream_info->state != INACTIVE &&
			update_cmd->update_type !=
			UPDATE_STREAM_REQUEST_FRAMES &&
			update_cmd->update_type !=
			UPDATE_STREAM_REMOVE_BUFQ) {
			pr_err("%s: Invalid stream state %d, update cmd %d\n",
				__func__, stream_info->state,
				stream_info->stream_id);
			return -EINVAL;
		}
		if (update_cmd->update_type == UPDATE_STREAM_AXI_CONFIG &&