media: i2c: imx258: Disable digital cropping on binned modes
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 30 Mar 2022 13:55:01 +0000 (14:55 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:32 +0000 (11:33 +0000)
commit90e95f37d109f3a2f064abe9228d481120f3ab9f
tree8d690ea768674cfec8c530daccd8accacf2fd19e
parent00746bf806add473d1c36fe030a2b4bf68fe4550
media: i2c: imx258: Disable digital cropping on binned modes

The binned modes set DIG_CROP_X_OFFSET and DIG_CROP_IMAGE_WIDTH
to less than the full image, even though the image being captured
is meant to be a scaled version of the full array size.

Reduce X_OFFSET to 0, and increase IMAGE_WIDTH to the full array.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/imx258.c