linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] media: i2c: imx219: Fix regressions introduced by 1x2/2x1 binning
@ 2025-10-17  8:13 Jai Luthra
  2025-10-17  8:13 ` [PATCH 1/2] media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio Jai Luthra
  2025-10-17  8:13 ` [PATCH 2/2] media: i2c: imx219: Simplify imx219_get_binning() function Jai Luthra
  0 siblings, 2 replies; 6+ messages in thread
From: Jai Luthra @ 2025-10-17  8:13 UTC (permalink / raw)
  To: Sakari Ailus, Dave Stevenson, Mauro Carvalho Chehab,
	Laurent Pinchart, Hans Verkuil, Jacopo Mondi
  Cc: linux-media, linux-kernel, Tomi Valkeinen,
	Barnabás Pőcze, Jai Luthra, stable

This series fixes a regression introduced in commit 0af46fbc333d
("media: i2c: imx219: Calculate crop rectangle dynamically") that
started using vertical binning for 1920x1080 without binning
horizontally, causing the captured images to be stretched in one
dimension.

In a subsequent patch, simplify the binning mode calculation logic as
well. This is done separately, without a fixes tag, as it is cleaning up
code that was introduced much later to the regression commit, and
doesn't strictly require backporting.

Once Sakari's metadata series with binning controls [1] is merged, this
and other existing sensor drivers may be extended to support free
configuration of resolution, and give the userspace freedom to bin
pixels in only one dimension if required, of course, as long as it
doesn't cause regressions with exsiting userspace applications.

[1]: https://lore.kernel.org/all/20250825095107.1332313-44-sakari.ailus@linux.intel.com/

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
Dave Stevenson (1):
      media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio

Jai Luthra (1):
      media: i2c: imx219: Simplify imx219_get_binning() function

 drivers/media/i2c/imx219.c | 25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)
---
base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
change-id: 20251016-imx219-1080p-ad3fbdce70d1

Best regards,
-- 
Jai Luthra <jai.luthra@ideasonboard.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-17 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17  8:13 [PATCH 0/2] media: i2c: imx219: Fix regressions introduced by 1x2/2x1 binning Jai Luthra
2025-10-17  8:13 ` [PATCH 1/2] media: i2c: imx219: Fix 1920x1080 mode to use 1:1 pixel aspect ratio Jai Luthra
2025-10-17  9:23   ` Jacopo Mondi
2025-10-17  8:13 ` [PATCH 2/2] media: i2c: imx219: Simplify imx219_get_binning() function Jai Luthra
2025-10-17  9:49   ` Jacopo Mondi
2025-10-17 14:59     ` Jai Luthra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).