Browse Source

msm: camera: req_mgr: correct the condition check for apply req

For I-EXP to 2-EXP usecase in autoHDR (without SFE), the
condition which checks whether packet is applied was failing.

Req N-1 : 1-EXP, pd=1, dev_mask = 0xd,
Req N  : (2-EXP) added to CRM, dev_mask changed to 0xf for 2 IFE's,
Req N-1: after packet applied, the condition which checks
applied_map(0xd) with dev_mask(0xf) was failing.

Correct this by comparing the applied_map with the active device's
bit map.

Signed-off-by: Nirmal Abraham <[email protected]>
Change-Id: I2172208ce81d2d0e71a5f0e4eb57f3f7b5745194
Nirmal Abraham 1 năm trước cách đây
mục cha
commit
c3ae9488bf
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 2 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -2437,7 +2437,8 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
 			tbl_slot = &dev->pd_tbl->slot[idx];
 
 			if ((apply_data[pd].req_id != -1) &&
-				(tbl_slot->req_apply_map != dev->pd_tbl->dev_mask)) {
+				!(tbl_slot->req_apply_map & BIT(dev->dev_bit)) &&
+				(dev->is_active)) {
 				is_applied = false;
 				break;
 			}