Loading drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +12 −11 Original line number Original line Diff line number Diff line Loading @@ -3481,17 +3481,25 @@ static int cam_ife_mgr_cmd_get_sof_timestamp( list_for_each_entry(hw_mgr_res, &ife_ctx->res_list_ife_csid, list) { list_for_each_entry(hw_mgr_res, &ife_ctx->res_list_ife_csid, list) { for (i = 0; i < CAM_ISP_HW_SPLIT_MAX; i++) { for (i = 0; i < CAM_ISP_HW_SPLIT_MAX; i++) { if (!hw_mgr_res->hw_res[i] || if (!hw_mgr_res->hw_res[i]) (i == CAM_ISP_HW_SPLIT_RIGHT)) continue; continue; /* /* * Get the SOF time stamp from left resource only. * Get the SOF time stamp from left resource only. * Left resource is master for dual vfe case and * Left resource is master for dual vfe case and * Rdi only context case left resource only hold * Rdi only context case left resource only hold * the RDI resource * the RDI resource */ */ hw_intf = hw_mgr_res->hw_res[i]->hw_intf; hw_intf = hw_mgr_res->hw_res[i]->hw_intf; if (hw_intf->hw_ops.process_cmd) { if (hw_intf->hw_ops.process_cmd) { /* * Single VFE case, Get the time stamp from * available one csid hw in the context * Dual VFE case, get the time stamp from * master(left) would be sufficient */ csid_get_time.node_res = csid_get_time.node_res = hw_mgr_res->hw_res[i]; hw_mgr_res->hw_res[i]; rc = hw_intf->hw_ops.process_cmd( rc = hw_intf->hw_ops.process_cmd( Loading @@ -3500,23 +3508,16 @@ static int cam_ife_mgr_cmd_get_sof_timestamp( &csid_get_time, &csid_get_time, sizeof( sizeof( struct cam_csid_get_time_stamp_args)); struct cam_csid_get_time_stamp_args)); if (!rc) { if (!rc && (i == CAM_ISP_HW_SPLIT_LEFT)) { *time_stamp = *time_stamp = csid_get_time.time_stamp_val; csid_get_time.time_stamp_val; *boot_time_stamp = *boot_time_stamp = csid_get_time.boot_timestamp; csid_get_time.boot_timestamp; } } /* * Single VFE case, Get the time stamp from available * one csid hw in the context * Dual VFE case, get the time stamp from master(left) * would be sufficient */ goto end; } } } } } } end: if (rc) if (rc) CAM_ERR(CAM_ISP, "Getting sof time stamp failed"); CAM_ERR(CAM_ISP, "Getting sof time stamp failed"); Loading drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2177,10 +2177,10 @@ static int cam_ife_csid_get_hbi_vbi( rdi_reg->csid_rdi_format_measure2_addr); rdi_reg->csid_rdi_format_measure2_addr); } } CAM_INFO_RATE_LIMIT(CAM_ISP, "Resource %u HBI: 0x%x", res->res_id, CAM_INFO_RATE_LIMIT(CAM_ISP, hbi); "Device %s index %u Resource %u HBI: 0x%x VBI: 0x%x", CAM_INFO_RATE_LIMIT(CAM_ISP, "Resource %u VBI: 0x%x", res->res_id, soc_info->dev_name, soc_info->index, vbi); res->res_id, hbi, vbi); return 0; return 0; } } Loading Loading
drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +12 −11 Original line number Original line Diff line number Diff line Loading @@ -3481,17 +3481,25 @@ static int cam_ife_mgr_cmd_get_sof_timestamp( list_for_each_entry(hw_mgr_res, &ife_ctx->res_list_ife_csid, list) { list_for_each_entry(hw_mgr_res, &ife_ctx->res_list_ife_csid, list) { for (i = 0; i < CAM_ISP_HW_SPLIT_MAX; i++) { for (i = 0; i < CAM_ISP_HW_SPLIT_MAX; i++) { if (!hw_mgr_res->hw_res[i] || if (!hw_mgr_res->hw_res[i]) (i == CAM_ISP_HW_SPLIT_RIGHT)) continue; continue; /* /* * Get the SOF time stamp from left resource only. * Get the SOF time stamp from left resource only. * Left resource is master for dual vfe case and * Left resource is master for dual vfe case and * Rdi only context case left resource only hold * Rdi only context case left resource only hold * the RDI resource * the RDI resource */ */ hw_intf = hw_mgr_res->hw_res[i]->hw_intf; hw_intf = hw_mgr_res->hw_res[i]->hw_intf; if (hw_intf->hw_ops.process_cmd) { if (hw_intf->hw_ops.process_cmd) { /* * Single VFE case, Get the time stamp from * available one csid hw in the context * Dual VFE case, get the time stamp from * master(left) would be sufficient */ csid_get_time.node_res = csid_get_time.node_res = hw_mgr_res->hw_res[i]; hw_mgr_res->hw_res[i]; rc = hw_intf->hw_ops.process_cmd( rc = hw_intf->hw_ops.process_cmd( Loading @@ -3500,23 +3508,16 @@ static int cam_ife_mgr_cmd_get_sof_timestamp( &csid_get_time, &csid_get_time, sizeof( sizeof( struct cam_csid_get_time_stamp_args)); struct cam_csid_get_time_stamp_args)); if (!rc) { if (!rc && (i == CAM_ISP_HW_SPLIT_LEFT)) { *time_stamp = *time_stamp = csid_get_time.time_stamp_val; csid_get_time.time_stamp_val; *boot_time_stamp = *boot_time_stamp = csid_get_time.boot_timestamp; csid_get_time.boot_timestamp; } } /* * Single VFE case, Get the time stamp from available * one csid hw in the context * Dual VFE case, get the time stamp from master(left) * would be sufficient */ goto end; } } } } } } end: if (rc) if (rc) CAM_ERR(CAM_ISP, "Getting sof time stamp failed"); CAM_ERR(CAM_ISP, "Getting sof time stamp failed"); Loading
drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2177,10 +2177,10 @@ static int cam_ife_csid_get_hbi_vbi( rdi_reg->csid_rdi_format_measure2_addr); rdi_reg->csid_rdi_format_measure2_addr); } } CAM_INFO_RATE_LIMIT(CAM_ISP, "Resource %u HBI: 0x%x", res->res_id, CAM_INFO_RATE_LIMIT(CAM_ISP, hbi); "Device %s index %u Resource %u HBI: 0x%x VBI: 0x%x", CAM_INFO_RATE_LIMIT(CAM_ISP, "Resource %u VBI: 0x%x", res->res_id, soc_info->dev_name, soc_info->index, vbi); res->res_id, hbi, vbi); return 0; return 0; } } Loading