|
@@ -323,6 +323,7 @@ static bool cam_vfe_bus_ver3_can_be_secure(uint32_t out_type)
|
|
|
case CAM_VFE_BUS_VER3_VFE_OUT_STATS_IHIST:
|
|
|
case CAM_VFE_BUS_VER3_VFE_OUT_STATS_CAF:
|
|
|
case CAM_VFE_BUS_VER3_VFE_OUT_STATS_BAYER_RS:
|
|
|
+ case CAM_VFE_BUS_VER3_VFE_OUT_STATS_ALSC:
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
@@ -438,6 +439,9 @@ static enum cam_vfe_bus_ver3_vfe_out_type
|
|
|
case CAM_ISP_IFE_OUT_RES_PDAF_PARSED_DATA:
|
|
|
vfe_out_type = CAM_VFE_BUS_VER3_VFE_OUT_PDAF_PARSED;
|
|
|
break;
|
|
|
+ case CAM_ISP_IFE_OUT_RES_STATS_ALSC:
|
|
|
+ vfe_out_type = CAM_VFE_BUS_VER3_VFE_OUT_STATS_ALSC;
|
|
|
+ break;
|
|
|
default:
|
|
|
CAM_WARN(CAM_ISP, "Invalid isp res id: %d , assigning max",
|
|
|
res_type);
|
|
@@ -560,6 +564,9 @@ static int cam_vfe_bus_ver3_get_comp_vfe_out_res_id_list(
|
|
|
if (comp_mask & (BIT_ULL(CAM_VFE_BUS_VER3_VFE_OUT_PDAF_PARSED)))
|
|
|
out_list[count++] = CAM_ISP_IFE_OUT_RES_PDAF_PARSED_DATA;
|
|
|
|
|
|
+ if (comp_mask & (BIT_ULL(CAM_VFE_BUS_VER3_VFE_OUT_STATS_ALSC)))
|
|
|
+ out_list[count++] = CAM_ISP_IFE_OUT_RES_STATS_ALSC;
|
|
|
+
|
|
|
*num_out = count;
|
|
|
return 0;
|
|
|
}
|
|
@@ -1220,7 +1227,8 @@ static int cam_vfe_bus_ver3_acquire_wm(
|
|
|
rsrc_data->width = rsrc_data->width / 2;
|
|
|
rsrc_data->en_cfg = 0x1;
|
|
|
|
|
|
- } else if (vfe_out_res_id == CAM_VFE_BUS_VER3_VFE_OUT_AWB_BFW) {
|
|
|
+ } else if ((vfe_out_res_id == CAM_VFE_BUS_VER3_VFE_OUT_AWB_BFW) ||
|
|
|
+ (vfe_out_res_id == CAM_VFE_BUS_VER3_VFE_OUT_STATS_ALSC)) {
|
|
|
switch (rsrc_data->format) {
|
|
|
case CAM_FORMAT_PLAIN64:
|
|
|
rsrc_data->width = 0;
|