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

Commit 11d34a9f authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: reqmgr: Fix frame skip condition



During transiting from non-sync mode to sync mode with
pending requests to be still serviced in non-sync mode
the frame skip condition needs to be reset.

Change-Id: I613ae5bb98e67a9f613e3ea02ce4a8c1a078814d
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 4593b601
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -890,7 +890,6 @@ static int __cam_req_mgr_check_sync_req_is_ready(
		CAM_DBG(CAM_CRM,
			"Req: %lld [other link] not next req to be applied on link: %x",
			req_id, sync_link->link_hdl);
		link->sync_link_sof_skip = true;
		return -EAGAIN;
	}

@@ -1036,6 +1035,9 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
		}
		spin_unlock_bh(&link->link_state_spin_lock);

		if (link->sync_link_sof_skip)
			link->sync_link_sof_skip = false;

		if (link->trigger_mask == link->subscribe_event) {
			slot->status = CRM_SLOT_STATUS_REQ_APPLIED;
			link->trigger_mask = 0;