Browse Source

msm: camera: reqmgr: increase the rd idx if no lower pd device

For link with maximum pipeline delay of 1 e.g.,
TPG use case or sensors with pipeline delay of 1,
if the request is not submitted before 2
consecutive triggers we do not get chance to
increment rd idx, in the mean time the slot which
was last applied will be reset and we will not be
able to apply request even if new requests are scheduled.

This will cause the camera to not apply any request
further, hence increasing the rd idx if no lower pd
devices are pending will fix the issue.

CRs-Fixed: 2622845
Change-Id: I012e242c7fca22abecc171ef4d7063d851bb5748
Signed-off-by: Tejas Prajapati <[email protected]>
Tejas Prajapati 5 năm trước cách đây
mục cha
commit
ede10a2048
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 2 - 0
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -2683,6 +2683,8 @@ static int cam_req_mgr_process_trigger(void *priv, void *data)
 			CAM_DBG(CAM_REQ,
 				"No pending req to apply to lower pd devices");
 			rc = 0;
+			__cam_req_mgr_inc_idx(&in_q->rd_idx,
+				1, in_q->num_slots);
 			goto release_lock;
 		}
 		__cam_req_mgr_inc_idx(&in_q->rd_idx, 1, in_q->num_slots);