Skip to content

Commit

Permalink
media: stm32: dcmipp: fix RGB888 format support overall
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Alain Volmat authored and fourmone committed Dec 3, 2024
1 parent 44ea73b commit 9c4c8db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static const struct dcmipp_inp_pix_map dcmipp_inp_pix_map_list[] = {
PIXMAP_SINK_SRC_PRCR_SWAP(RGB565_2X8_BE, RGB565_2X8_LE, RGB565, 0, MIPI_CSI2_DT_RGB565),
PIXMAP_SINK_SRC_PRCR_SWAP(RGB565_1X16, RGB565_1X16, RGB565, 0, MIPI_CSI2_DT_RGB565),
/* RGB888 */
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_3X8, RGB888_3X8, RGB888, 1, MIPI_CSI2_DT_RGB888),
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_3X8, RGB888_3X8, RGB888, 0, MIPI_CSI2_DT_RGB888),
PIXMAP_SINK_SRC_PRCR_SWAP(RGB888_1X24, RGB888_1X24, RGB888, 0, MIPI_CSI2_DT_RGB888),
/* YUV422 */
PIXMAP_SINK_SRC_PRCR_SWAP(YUYV8_2X8, YUYV8_2X8, YUV422, 0, MIPI_CSI2_DT_YUV422_8B),
Expand Down

0 comments on commit 9c4c8db

Please sign in to comment.