Sfoglia il codice sorgente

cam: isp: tfe: fix buffer alignment for shdr usecase

For shdr usecase, buffer alignment is not happening to
right resource due to wrong resource id mapping.

Correct the resource id mapping for shdr buffer alignment.

CRs-Fixed: 3696470
Signed-off-by: Alok Chauhan <[email protected]>
Change-Id: I9921add8a434cce04229cea5bdcd1c720a9b680a
Alok Chauhan 1 anno fa
parent
commit
5f072e257c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

+ 1 - 1
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

@@ -4200,7 +4200,7 @@ static int cam_isp_tfe_blob_buffer_alignment_update(
 			return -EINVAL;
 		}
 
-		hw_mgr_res = &ctx->res_list_tfe_out[res_id_out];
+		hw_mgr_res = &ctx->res_list_tfe_out[ctx->tfe_out_map[res_id_out]];
 		res = hw_mgr_res->hw_res[0];
 		hw_intf = res->hw_intf;
 		if (hw_intf && hw_intf->hw_ops.process_cmd) {