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

Commit 63d4ec46 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

Revert "msm: camera: icp: removes reference input depedency"



This change needs to happen in userspace hence reverting the
kernel change.

Change-Id: I9d126d59a01f91dd6d44d08fb0276d80987d604a
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent c336d8b1
Loading
Loading
Loading
Loading
+2 −15
Original line number Diff line number Diff line
@@ -3341,15 +3341,6 @@ static int cam_icp_mgr_process_cmd_desc(struct cam_icp_hw_mgr *hw_mgr,

	return rc;
}
static bool cam_icp_mgr_is_input_reference_buffer(uint32_t resource_type)
{
	if (resource_type == CAM_ICP_IPE_INPUT_IMAGE_FULL_REF ||
		resource_type == CAM_ICP_IPE_INPUT_IMAGE_DS4_REF ||
		resource_type == CAM_ICP_IPE_INPUT_IMAGE_DS16_REF)
		return true;
	else
		return false;
}

static int cam_icp_mgr_process_io_cfg(struct cam_icp_hw_mgr *hw_mgr,
	struct cam_icp_hw_ctx_data *ctx_data,
@@ -3369,9 +3360,6 @@ static int cam_icp_mgr_process_io_cfg(struct cam_icp_hw_mgr *hw_mgr,

	for (i = 0, j = 0, k = 0; i < packet->num_io_configs; i++) {
		if (io_cfg_ptr[i].direction == CAM_BUF_INPUT) {
			if (cam_icp_mgr_is_input_reference_buffer(
				io_cfg_ptr[i].resource_type))
				continue;
			sync_in_obj[j++] = io_cfg_ptr[i].fence;
			prepare_args->num_in_map_entries++;
		} else {
@@ -3379,9 +3367,8 @@ static int cam_icp_mgr_process_io_cfg(struct cam_icp_hw_mgr *hw_mgr,
				io_cfg_ptr[i].fence;
			prepare_args->num_out_map_entries++;
		}
		CAM_DBG(CAM_ICP, "dir[%d]: %u, fence: %u resource_type = %u",
			i, io_cfg_ptr[i].direction, io_cfg_ptr[i].fence,
			io_cfg_ptr[i].resource_type);
		CAM_DBG(CAM_ICP, "dir[%d]: %u, fence: %u",
			i, io_cfg_ptr[i].direction, io_cfg_ptr[i].fence);
	}

	if (prepare_args->num_in_map_entries > 1) {