[PATCH 2/2] Revert "media: imx: Round line size to 4 bytes"
Dorota Czaplejewicz
dorota.czaplejewicz at puri.sm
Wed Sep 14 04:58:15 PDT 2022
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 at puri.sm>
---
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220914/75b9afc9/attachment.sig>
More information about the linux-arm-kernel
mailing list