diff --git a/src/hal/hisi/v4_hal.c b/src/hal/hisi/v4_hal.c index 5b1621c..9220c65 100644 --- a/src/hal/hisi/v4_hal.c +++ b/src/hal/hisi/v4_hal.c @@ -230,7 +230,8 @@ int v4_pipeline_create(void) { v4_sys_oper mode[4]; v4_sys.fnGetViVpssMode((v4_sys_oper*)mode); - mode[_v4_vi_dev] = V4_SYS_OPER_VIOFF_VPSSON; + for (char i = 0; i < 4; i++) + mode[i] = V4_SYS_OPER_VIOFF_VPSSON; if (ret = v4_sys.fnSetViVpssMode((v4_sys_oper*)mode)) return ret; } diff --git a/src/hal/hisi/v4_snr.h b/src/hal/hisi/v4_snr.h index d8d2d93..bea8223 100644 --- a/src/hal/hisi/v4_snr.h +++ b/src/hal/hisi/v4_snr.h @@ -9,6 +9,7 @@ #define V4_SNR_LVDS_LANE_NUM 4 #define V4_SNR_MIPI_LANE_NUM 4 #define V4_SNR_WDR_VC_NUM 2 +#define V4A_SNR_WDR_VC_NUM 4 enum { V4_SNR_CMD_CONF_DEV = 1,