From: David Plowman Date: Fri, 27 Oct 2023 11:14:22 +0000 (+0100) Subject: drivers: media: imx477: Set horizontal binning when disabling the scaler X-Git-Tag: accepted/tizen/unified/20240422.153132~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02b98f344c7d038cde211c785f0aac60aa2af78a;p=platform%2Fkernel%2Flinux-rpi.git drivers: media: imx477: Set horizontal binning when disabling the scaler The horizontal scaler has been disabled but actually the sensor is not binning horizontally, resulting in images that are stretched 2x horizontally (missing the right half of the field of view completely). Therefore we must additionally set the horizontal binning mode. There is only marginal change in output quality and noise levels. Signed-off-by: David Plowman Fixes: f075893e9b0e ("drivers: media: imx477: Disable the scaler") --- diff --git a/drivers/media/i2c/imx477.c b/drivers/media/i2c/imx477.c index e848f64..bab0da0 100644 --- a/drivers/media/i2c/imx477.c +++ b/drivers/media/i2c/imx477.c @@ -607,7 +607,7 @@ static const struct imx477_reg mode_2028x1520_regs[] = { {0x0385, 0x01}, {0x0387, 0x01}, {0x0900, 0x01}, - {0x0901, 0x12}, + {0x0901, 0x22}, {0x0902, 0x02}, {0x3140, 0x02}, {0x3c00, 0x00}, @@ -708,7 +708,7 @@ static const struct imx477_reg mode_2028x1080_regs[] = { {0x0385, 0x01}, {0x0387, 0x01}, {0x0900, 0x01}, - {0x0901, 0x12}, + {0x0901, 0x22}, {0x0902, 0x02}, {0x3140, 0x02}, {0x3c00, 0x00},