drivers: media: imx477: Set horizontal binning when disabling the scaler
authorDavid Plowman <david.plowman@raspberrypi.com>
Fri, 27 Oct 2023 11:14:22 +0000 (12:14 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:10 +0000 (11:35 +0000)
commit02b98f344c7d038cde211c785f0aac60aa2af78a
treef0881e42ab17ba18411591c96bf4af0b8665d830
parentf1ddd7ed402047295656d417d4b479f4d86982f2
drivers: media: imx477: Set horizontal binning when disabling the scaler

The horizontal scaler has been disabled but actually the sensor is not
binning horizontally, resulting in images that are stretched 2x
horizontally (missing the right half of the field of view completely).

Therefore we must additionally set the horizontal binning mode. There
is only marginal change in output quality and noise levels.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Fixes: f075893e9b0e ("drivers: media: imx477: Disable the scaler")
drivers/media/i2c/imx477.c