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
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.
11 Reduce X_OFFSET to 0, and increase IMAGE_WIDTH to the full array.
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
15 drivers/media/i2c/imx258.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
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
34 @@ -458,11 +458,11 @@ static const struct imx258_reg mode_1048