[PATCH 2/2] Revert "media: imx: Round line size to 4 bytes"

From: Dorota Czaplejewicz
Date: Wed Sep 14 2022 - 07:59:04 EST


This reverts commit 056f9af9fbebb81ebc972540122fb3bdad81d8b1.

The method is no longer getting called on the i.MX8, meaning that
the responsibility for this functionality has been moved entirely to
imx7_csi_mbus_fmt_to_pix_fmt.

Signed-off-by: Dorota Czaplejewicz <dorota.czaplejewicz@xxxxxxx>
---
drivers/staging/media/imx/imx-media-utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/imx/imx-media-utils.c b/drivers/staging/media/imx/imx-media-utils.c
index 73cf0d855967..294c808b2ebe 100644
--- a/drivers/staging/media/imx/imx-media-utils.c
+++ b/drivers/staging/media/imx/imx-media-utils.c
@@ -545,13 +545,13 @@ int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
}

/* Round up width for minimum burst size */
- width = round_up(mbus->width, 4);
+ width = round_up(mbus->width, 8);

/* Round up stride for IDMAC line start address alignment */
if (cc->planar)
stride = round_up(width, 16);
else
- stride = round_up((width * cc->bpp) >> 3, 4);
+ stride = round_up((width * cc->bpp) >> 3, 8);

pix->width = width;
pix->height = mbus->height;
--
2.37.3

Attachment: pgp8ZfP7mkDuV.pgp
Description: OpenPGP digital signature