media: i2c: imx219: fix binning and rate_factor for 480p and 1232p
authorVinay Varma <varmavinaym@gmail.com>
Fri, 22 Sep 2023 17:17:42 +0000 (18:17 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:40 +0000 (11:33 +0000)
commit011166dc482fbedac908149d6fe6ece90711212b
tree2a966d24dbe937ec2212dac989f70f2aa640cb13
parentac5ea890ef399f376a7ca6edaa18b86b70885ac3
media: i2c: imx219: fix binning and rate_factor for 480p and 1232p

At a high FPS with RAW10, there is frame corruption for 480p because the
rate_factor of 2 is used with the normal 2x2 bining [1]. This commit
ties the rate_factor to the selected binning mode. For the 480p mode,
analog 2x2 binning mode with a rate_factor of 2 is always used. For the
1232p mode the normal 2x2 binning mode is used for RAW10 while analog
2x2 binning mode is used for RAW8.

[1] raspberrypi#5493

Signed-off-by: Vinay Varma <varmavinaym@gmail.com>
Reworked due to upstream changes
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/imx219.c