bcm27xx: update 6.1 patches to latest version
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-6.1 / 950-1049-drivers-media-imx477-Disable-the-scaler.patch
1 From f075893e9b0e241879998c0b12cf8af0ba7737da Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Mon, 23 Oct 2023 10:03:03 +0100
4 Subject: [PATCH] drivers: media: imx477: Disable the scaler
5
6 The horizontal scaler was enabled for the 2028x1520 and 2028x1080 modes,
7 with a scale factor of 1. It caused a single column of bad pixels on the
8 right edge of the image. Since scaling is not needed for these modes,
9 disable it entirely.
10
11 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
12 ---
13 drivers/media/i2c/imx477.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/drivers/media/i2c/imx477.c
17 +++ b/drivers/media/i2c/imx477.c
18 @@ -632,7 +632,7 @@ static const struct imx477_reg mode_2028
19 {0x9e9f, 0x00},
20 {0xa2a9, 0x60},
21 {0xa2b7, 0x00},
22 - {0x0401, 0x01},
23 + {0x0401, 0x00},
24 {0x0404, 0x00},
25 {0x0405, 0x20},
26 {0x0408, 0x00},
27 @@ -733,7 +733,7 @@ static const struct imx477_reg mode_2028
28 {0x9e9f, 0x00},
29 {0xa2a9, 0x60},
30 {0xa2b7, 0x00},
31 - {0x0401, 0x01},
32 + {0x0401, 0x00},
33 {0x0404, 0x00},
34 {0x0405, 0x20},
35 {0x0408, 0x00},