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

Commit 53d230c7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Reset request queue at stop"

parents f9df140f c7089bf8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -175,6 +175,8 @@ static void msm_isp_axi_destroy_stream(
			stream_info->bufq_handle[k] = 0;
		stream_info->vfe_mask = 0;
		stream_info->state = AVAILABLE;
		memset(&stream_info->request_queue_cmd,
			0, sizeof(stream_info->request_queue_cmd));
	}
}

@@ -3650,6 +3652,9 @@ static int msm_isp_request_frame(struct vfe_device *vfe_dev,
			stream_info->undelivered_request_cnt--;
			pr_err_ratelimited("%s:%d fail to cfg HAL buffer\n",
				__func__, __LINE__);
			queue_req->cmd_used = 0;
			list_del(&queue_req->list);
			stream_info->request_q_cnt--;
			return rc;
		}

@@ -3686,6 +3691,9 @@ static int msm_isp_request_frame(struct vfe_device *vfe_dev,
						flags);
			pr_err_ratelimited("%s:%d fail to cfg HAL buffer\n",
				__func__, __LINE__);
			queue_req->cmd_used = 0;
			list_del(&queue_req->list);
			stream_info->request_q_cnt--;
			return rc;
		}
	} else {