fix(dma2d): fix non-usable DMA2D_CSC_TX_SCRAMBLE option

This commit is contained in:
Song Ruo Jing
2026-07-08 23:03:41 +08:00
parent 278e2c2b41
commit ca2a029722
2 changed files with 2 additions and 1 deletions
@@ -1019,7 +1019,7 @@ static inline void dma2d_ll_tx_configure_color_space_conv(dma2d_dev_t *dev, uint
input_sel = 7;
break;
case DMA2D_CSC_TX_SCRAMBLE:
input_sel = 2; // Or 3
input_sel = 3; // only 3 bytes/pixel format is supported for scrambling
proc_en = false;
output_sel = 2;
break;
+1
View File
@@ -147,6 +147,7 @@ typedef enum {
* @brief Enumeration of 2D-DMA pixel bytes scamble order in color space conversion
*
* Assuming the original pixel byte order (from MSB to LSB) is 2-1-0 .
* This scramble only fits 3 bytes/pixel format. For non-3 bytes/pixel format, the pixels will be messed up if scrambling is used.
*/
typedef enum {
DMA2D_SCRAMBLE_ORDER_BYTE2_1_0, /*!< 2D-DMA pixel data scrambled as BYTE2-1-0 (no scramble) */