[PATCH] media: rzg2l-cru: Remove height alignment restriction

Prabhakar posted 1 patch 3 days, 6 hours ago
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] media: rzg2l-cru: Remove height alignment restriction
Posted by Prabhakar 3 days, 6 hours ago
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

The CRU hardware found on RZ/G2L and RZ/G3E SoCs does not impose any
height alignment requirement, so enforcing power-of-two alignment on
the frame height is unnecessary.

Remove the power-of-two height alignment restriction in the call to
v4l_bound_align_image() by changing the height alignment argument
from 2 to 0.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
index 1ab4b4c1745e..8d8103c51f29 100644
--- a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
+++ b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c
@@ -843,7 +843,7 @@ static void rzg2l_cru_format_align(struct rzg2l_cru_dev *cru,
 
 	/* Limit to CRU capabilities */
 	v4l_bound_align_image(&pix->width, 320, info->max_width, 1,
-			      &pix->height, 240, info->max_height, 2, 0);
+			      &pix->height, 240, info->max_height, 0, 0);
 
 	v4l2_fill_pixfmt(pix, pix->pixelformat, pix->width, pix->height);
 
-- 
2.54.0