msm: camera: icp: Handle RT/NRT flags for IPE/BPS device types

The device type is only needed to create the handle with FW,
internally to the KMD we can unify the different device types.

CRs-Fixed: 2534504
Change-Id: I92b77f54556d840f49136ea187df939350951078
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram 2019-09-17 15:49:27 -07:00 • committed by Gerrit - the friendly Code Review server
commit 0eee5ccc3f

View file

@ -5061,6 +5061,9 @@ static int cam_icp_mgr_acquire_hw(void *hw_mgr_priv, void *acquire_hw_args)
goto acquire_info_failed;
icp_dev_acquire_info = ctx_data->icp_dev_acquire_info;
dev_type = icp_dev_acquire_info->dev_type;
icp_dev_acquire_info->dev_type =
cam_icp_unify_dev_type(dev_type);
CAM_DBG(CAM_ICP, "acquire io buf handle %d",
icp_dev_acquire_info->io_config_cmd_handle);
@ -5109,7 +5112,7 @@ static int cam_icp_mgr_acquire_hw(void *hw_mgr_priv, void *acquire_hw_args)
}
CAM_DBG(CAM_ICP, "ping ack received");
rc = cam_icp_mgr_create_handle(icp_dev_acquire_info->dev_type,
rc = cam_icp_mgr_create_handle(dev_type,
ctx_data);
if (rc) {
CAM_ERR(CAM_ICP, "create handle failed");
@ -5118,7 +5121,7 @@ static int cam_icp_mgr_acquire_hw(void *hw_mgr_priv, void *acquire_hw_args)
CAM_DBG(CAM_ICP,
"created stream handle for dev_type %u",
icp_dev_acquire_info->dev_type);
dev_type);
cmd_mem_region.num_regions = 1;
cmd_mem_region.map_info_array[0].mem_handle =
@ -5179,13 +5182,11 @@ static int cam_icp_mgr_acquire_hw(void *hw_mgr_priv, void *acquire_hw_args)
/* Start context timer*/
cam_icp_ctx_timer_start(ctx_data);
hw_mgr->ctxt_cnt++;
dev_type = cam_icp_unify_dev_type(icp_dev_acquire_info->dev_type);
icp_dev_acquire_info->dev_type = dev_type;
mutex_unlock(&hw_mgr->hw_mgr_mutex);
CAM_DBG(CAM_ICP, "Acquire Done for ctx_id %u dev type %d",
ctx_data->ctx_id,
icp_dev_acquire_info->dev_type);
ctx_data->icp_dev_acquire_info->dev_type);
return 0;