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

Commit 76ef29c4 authored by Harsh Shah's avatar Harsh Shah Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Dump hbi & vbi info incase of dual VFE" into dev/msm-4.14-camx

parents 167e25aa c280c003
Loading
Loading
Loading
Loading
+12 −11
Original line number Original line Diff line number Diff line
@@ -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(
@@ -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");


+4 −4
Original line number Original line Diff line number Diff line
@@ -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;
}
}