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 <quic_c_nabrah@quicinc.com>
Change-Id: I2172208ce81d2d0e71a5f0e4eb57f3f7b5745194
This commit is contained in:
Nirmal Abraham 2024-02-21 13:12:50 +05:30
parent 6a766662e7
commit c3ae9488bf

View File

@ -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;
}