bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1057-drivers-media-imx477-Set-horizontal-binning-when-dis.patch
1 From 8dcc16f0adc50f5cb8a11a6dde238131d0ca45a0 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Fri, 27 Oct 2023 12:14:22 +0100
4 Subject: [PATCH] drivers: media: imx477: Set horizontal binning when disabling
5 the scaler
6
7 The horizontal scaler has been disabled but actually the sensor is not
8 binning horizontally, resulting in images that are stretched 2x
9 horizontally (missing the right half of the field of view completely).
10
11 Therefore we must additionally set the horizontal binning mode. There
12 is only marginal change in output quality and noise levels.
13
14 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
15 Fixes: f075893e9b0e ("drivers: media: imx477: Disable the scaler")
16 ---
17 drivers/media/i2c/imx477.c | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/drivers/media/i2c/imx477.c
21 +++ b/drivers/media/i2c/imx477.c
22 @@ -607,7 +607,7 @@ static const struct imx477_reg mode_2028
23 {0x0385, 0x01},
24 {0x0387, 0x01},
25 {0x0900, 0x01},
26 - {0x0901, 0x12},
27 + {0x0901, 0x22},
28 {0x0902, 0x02},
29 {0x3140, 0x02},
30 {0x3c00, 0x00},
31 @@ -708,7 +708,7 @@ static const struct imx477_reg mode_2028
32 {0x0385, 0x01},
33 {0x0387, 0x01},
34 {0x0900, 0x01},
35 - {0x0901, 0x12},
36 + {0x0901, 0x22},
37 {0x0902, 0x02},
38 {0x3140, 0x02},
39 {0x3c00, 0x00},