From 4d1adc6213f552c5abdb275ca56e315fbe2aa811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20B=C3=A9rub=C3=A9?= Date: Thu, 12 Sep 2024 23:05:58 -0400 Subject: [PATCH] (Continued) --- src/hal/hisi/v4_hal.c | 3 ++- src/hal/hisi/v4_snr.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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,