msm: camera: isp: Use default epoch config for SFE use-cases

Skip epoch height config from userland for CSID CAMIF, if
they are not subscribed for as primary events in non-SFE
use-cases.

CRs-Fixed: 3306019
Change-Id: I08546d568661cbf040dbb22c3bc9d4e92cec332b
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Dieser Commit ist enthalten in:
Karthik Anantha Ram
2022-10-03 08:36:10 -07:00
committet von “Savita
Ursprung 8737f407d3
Commit 3d3636beb9

Datei anzeigen

@@ -5679,6 +5679,10 @@ static int cam_ife_csid_init_config_update(
}
path_cfg = (struct cam_ife_csid_ver2_path_cfg *)res->res_priv;
/* Skip epoch update if resource does not handle camif IRQs */
if (!path_cfg->handle_camif_irq)
goto end;
path_cfg->epoch_cfg = (path_cfg->end_line - path_cfg->start_line) *
init_cfg->init_config->epoch_cfg.epoch_factor / 100;
@@ -5691,7 +5695,7 @@ static int cam_ife_csid_init_config_update(
CAM_DBG(CAM_ISP,
"Init Update for res_name: %s epoch_factor: %x",
res->res_name, path_cfg->epoch_cfg);
end:
return 0;
}