]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: imx219: Scale the pixel rate for analog binning
authorJai Luthra <jai.luthra@ideasonboard.com>
Tue, 4 Feb 2025 07:04:40 +0000 (12:34 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:23:01 +0000 (15:23 +0100)
commitf513997119f481a3a3bb9a0a8fc55b6cd50a0940
tree7d64ac0f1556acb2f1dc3b5b32aff17fde440b2f
parent79199bfd8c2a38a90b137413ff998202988f64e0
media: i2c: imx219: Scale the pixel rate for analog binning

When the analog binning mode is used for high framerate operation, the
pixel rate is effectively doubled. Account for this when setting up the
pixel clock rate, and applying the vblank and exposure controls.

The previous logic only used analog binning for RAW8, but normal binning
limits the framerate on RAW10 480p [1]. So with this patch we switch to
using special binning (with 2x pixel rate) wherever possible.

[1]: https://github.com/raspberrypi/linux/issues/5493

Co-developed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Co-developed-by: Vinay Varma <varmavinaym@gmail.com>
Signed-off-by: Vinay Varma <varmavinaym@gmail.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx219.c