76b117928c237f6fbe8505dc7a18be29a057815e
[openwrt/staging/wigyori.git] /
1 From 7d8df6dbf26f0a3155590f1278a95cb13f47c9c8 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 30 Mar 2022 14:55:01 +0100
4 Subject: [PATCH] media: i2c: imx258: Disable digital cropping on
5 binned modes
6
7 The binned modes set DIG_CROP_X_OFFSET and DIG_CROP_IMAGE_WIDTH
8 to less than the full image, even though the image being captured
9 is meant to be a scaled version of the full array size.
10
11 Reduce X_OFFSET to 0, and increase IMAGE_WIDTH to the full array.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 ---
15 drivers/media/i2c/imx258.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
17
18 --- a/drivers/media/i2c/imx258.c
19 +++ b/drivers/media/i2c/imx258.c
20 @@ -339,11 +339,11 @@ static const struct imx258_reg mode_2104
21 { 0x0404, 0x00 },
22 { 0x0405, 0x20 },
23 { 0x0408, 0x00 },
24 - { 0x0409, 0x02 },
25 + { 0x0409, 0x00 },
26 { 0x040A, 0x00 },
27 { 0x040B, 0x00 },
28 { 0x040C, 0x10 },
29 - { 0x040D, 0x6A },
30 + { 0x040D, 0x70 },
31 { 0x040E, 0x06 },
32 { 0x040F, 0x18 },
33 { 0x3038, 0x00 },
34 @@ -458,11 +458,11 @@ static const struct imx258_reg mode_1048
35 { 0x0404, 0x00 },
36 { 0x0405, 0x40 },
37 { 0x0408, 0x00 },
38 - { 0x0409, 0x06 },
39 + { 0x0409, 0x00 },
40 { 0x040A, 0x00 },
41 { 0x040B, 0x00 },
42 { 0x040C, 0x10 },
43 - { 0x040D, 0x64 },
44 + { 0x040D, 0x70 },
45 { 0x040E, 0x03 },
46 { 0x040F, 0x0C },
47 { 0x3038, 0x00 },