]> Gentwo Git Trees - linux/.git/commit
media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 17 Oct 2025 08:13:49 +0000 (13:43 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 13:07:01 +0000 (14:07 +0100)
commit9ef6e4db152c34580cc52792f32485c193945395
tree502ac9fe89582793f7f5fe309d330d1ab35c6124
parentc423487bf66740b111c99ecf19fa7f6607a41431
media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio

Commit 0af46fbc333d ("media: i2c: imx219: Calculate crop rectangle
dynamically") meant that the 1920x1080 mode switched from using no
binning to using vertical binning but no horizontal binning, which
resulted in stretched pixels.

Until proper controls are available to independently select horizontal
and vertical binning, restore the original 1:1 pixel aspect ratio by
forcing binning to be uniform in both directions.

Cc: stable@vger.kernel.org
Fixes: 0af46fbc333d ("media: i2c: imx219: Calculate crop rectangle dynamically")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
[Add comment & reword commit message]
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/imx219.c