Skip to content

Commit 9c4c8db

Browse files
Alain Volmatfourmone
authored andcommitted
media: stm32: dcmipp: fix RGB888 format support overall
Correct the swap cycle for the RGB888. RGB888 is a 3 cycles format in parallel, which cannot be swapped (and it is not necessary). Performing cycle swap here was ignored by the HW. Change-Id: Ic3f86f6aaddfcd6911d14aa91a52c1f40215cad6 Signed-off-by: Alain Volmat <[email protected]> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/422111 Reviewed-by: Alain VOLMAT <[email protected]> Tested-by: Alain VOLMAT <[email protected]> Reviewed-by: Philippe CORNU <[email protected]> ACI: CITOOLS <[email protected]> Domain-Review: Philippe CORNU <[email protected]>
1 parent 44ea73b commit 9c4c8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static const struct dcmipp_inp_pix_map dcmipp_inp_pix_map_list[] = {
8383
PIXMAP_SINK_SRC_PRCR_SWAP(RGB565_2X8_BE, RGB565_2X8_LE, RGB565, 0, MIPI_CSI2_DT_RGB565),
8484
PIXMAP_SINK_SRC_PRCR_SWAP(RGB565_1X16, RGB565_1X16, RGB565, 0, MIPI_CSI2_DT_RGB565),
8585
/* RGB888 */
86-
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_3X8, RGB888_3X8, RGB888, 1, MIPI_CSI2_DT_RGB888),
86+
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_3X8, RGB888_3X8, RGB888, 0, MIPI_CSI2_DT_RGB888),
8787
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_1X24, RGB888_1X24, RGB888, 0, MIPI_CSI2_DT_RGB888),
8888
/* YUV422 */
8989
PIXMAP_SINK_SRC_PRCR_SWAP(YUYV8_2X8, YUYV8_2X8, YUV422, 0, MIPI_CSI2_DT_YUV422_8B),

0 commit comments

Comments
 (0)