From f1d0da4f719b1f68c6cb6fca4efb59268a9a82af Mon Sep 17 00:00:00 2001 From: Alain Volmat Date: Wed, 13 Nov 2024 17:14:17 +0100 Subject: [PATCH] media: stm32: dcmipp: fix 32bit RGB format in pixelcap Correct mapping between the V4L2 PIX format and DCMIPP formats. Change-Id: Ie38561b1817f32fd8d8bc37565e7ccd24633018f Signed-off-by: Alain Volmat Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/422112 Tested-by: Alain VOLMAT Domain-Review: Philippe CORNU Reviewed-by: Philippe CORNU ACI: CITOOLS Reviewed-by: Alain VOLMAT --- .../media/platform/st/stm32/stm32-dcmipp/dcmipp-pixelcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-pixelcap.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-pixelcap.c index 7bb2938f6505b7..dcf63987b26fa7 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-pixelcap.c +++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-pixelcap.c @@ -118,9 +118,9 @@ static const struct dcmipp_pixelcap_pix_map dcmipp_pixelcap_pix_map_list[] = { PIXMAP_MBUS_PFMT(YUV8_1X24, GREY, 1, DCMIPP_PxPPCR_FORMAT_Y8, 0), PIXMAP_MBUS_PFMT(RGB888_1X24, RGB24, 1, DCMIPP_PxPPCR_FORMAT_RGB888, 1), PIXMAP_MBUS_PFMT(RGB888_1X24, BGR24, 1, DCMIPP_PxPPCR_FORMAT_RGB888, 0), - PIXMAP_MBUS_PFMT(RGB888_1X24, ARGB32, 1, DCMIPP_PxPPCR_FORMAT_ARGB8888, 1), + PIXMAP_MBUS_PFMT(RGB888_1X24, ARGB32, 1, DCMIPP_PxPPCR_FORMAT_RGBA8888, 1), PIXMAP_MBUS_PFMT(RGB888_1X24, ABGR32, 1, DCMIPP_PxPPCR_FORMAT_ARGB8888, 0), - PIXMAP_MBUS_PFMT(RGB888_1X24, RGBA32, 1, DCMIPP_PxPPCR_FORMAT_RGBA8888, 1), + PIXMAP_MBUS_PFMT(RGB888_1X24, RGBA32, 1, DCMIPP_PxPPCR_FORMAT_ARGB8888, 1), PIXMAP_MBUS_PFMT(RGB888_1X24, BGRA32, 1, DCMIPP_PxPPCR_FORMAT_RGBA8888, 0), /* Semiplanar & planar formats (plane_nb > 1) are only supported on main pipe */