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

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

msm: camera: reqmgr: Deliver matching frames for master-slave sync



If an SOF is skipped on one link due to request packet unavailability,
skip the corresponding SOF on the sync link as well.

Change-Id: Ife894d22393eb87ae60e3af3af23225ec81d43f0
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 7e3fc4b2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -691,6 +691,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
			CAM_DBG(CAM_CRM,
				"Req: %lld [master] not ready on link: %x, rc=%d",
				req_id, link->link_hdl, rc);
			link->sync_link_sof_skip = true;
			return rc;
		}

@@ -710,6 +711,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
				CAM_DBG(CAM_CRM,
					"Prev Req: %lld [master] not found on link: %x [slave]",
					sync_req_id, sync_link->link_hdl);
				link->sync_link_sof_skip = true;
				return -EINVAL;
			}

@@ -733,6 +735,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
				CAM_DBG(CAM_CRM,
					"Req: %lld not ready on [slave] link: %x, rc=%d",
					sync_req_id, sync_link->link_hdl, rc);
				link->sync_link_sof_skip = true;
				return rc;
			}
		}
@@ -754,6 +757,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
			CAM_DBG(CAM_CRM,
				"Req: %lld [slave] not ready on link: %x, rc=%d",
				req_id, link->link_hdl, rc);
			link->sync_link_sof_skip = true;
			return rc;
		}

@@ -773,6 +777,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
				CAM_DBG(CAM_CRM,
					"Next Req: %lld [slave] not found on link: %x [master]",
					sync_req_id, sync_link->link_hdl);
				link->sync_link_sof_skip = true;
				return -EINVAL;
			}

@@ -795,6 +800,7 @@ static int __cam_req_mgr_check_sync_for_mslave(
				CAM_DBG(CAM_CRM,
					"Next Req: %lld [slave] not ready on [master] link: %x, rc=%d",
					sync_req_id, sync_link->link_hdl, rc);
				link->sync_link_sof_skip = true;
				return rc;
			}
		}