]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:05 +0000 (10:17 +0100)
commit378deae752a229b018ab546b551897d4ab705c2d
tree6e9aab7e4c8301941f29cc3339849b5589c248cd
parent2e9b9a658d42cd13dec9e900c261e7ead0d589db
media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio

commit 9ef6e4db152c34580cc52792f32485c193945395 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/imx219.c