From 4e81cac423f36ca6da764cd63d1065eced41d022 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Mon, 27 Jun 2022 02:32:19 +0200 Subject: [PATCH 342/464] media: i2c: imx258: Fix 4208x3120 mode Parameters were a bit weird. Real resolution is 4208x3120. Signed-off-by: Ondrej Jirman --- drivers/media/i2c/imx258.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c index ef7c5be6549d..4d0f6c725f58 100644 --- a/drivers/media/i2c/imx258.c +++ b/drivers/media/i2c/imx258.c @@ -443,11 +443,11 @@ static const struct imx258_reg common_regs[] = { REG8(HDR_MODE, 0x00), }; -static const struct imx258_reg mode_4208x3118_regs[] = { +static const struct imx258_reg mode_4208x3120_regs[] = { REG16(CSI_DT_FMT, 0x0a0a), REG8(CSI_LANE_MODE, 0x03), REG16(LINE_LENGTH_PCK, 5352), - REG16(FRM_LENGTH_LINES, 3152), + REG16(FRM_LENGTH_LINES, 3224), REG16(X_ADD_STA, 0), REG16(Y_ADD_STA, 0), REG16(X_ADD_END, 4207), @@ -470,7 +470,7 @@ static const struct imx258_reg mode_4208x3118_regs[] = { REG16(X_OUT_SIZE, 4208), REG16(Y_OUT_SIZE, 3120), REG8(FRM_LENGTH_CTL, 0x01), - REG16(COARSE_INTEG_TIME, 3142), + REG16(COARSE_INTEG_TIME, 3184), }; static const struct imx258_reg mode_4032x3024_regs[] = { @@ -633,12 +633,12 @@ static const struct imx258_link_freq_config link_freq_configs[] = { static const struct imx258_mode supported_modes[] = { { .width = 4208, - .height = 3118, + .height = 3120, .vts_def = IMX258_VTS_30FPS, .vts_min = IMX258_VTS_30FPS, .reg_list = { - .num_of_regs = ARRAY_SIZE(mode_4208x3118_regs), - .regs = mode_4208x3118_regs, + .num_of_regs = ARRAY_SIZE(mode_4208x3120_regs), + .regs = mode_4208x3120_regs, }, .link_freq_index = IMX258_LINK_FREQ_1224MBPS, }, -- 2.34.1