Skip to content

Commit de8ef6d

Browse files
committed
drivers: i2s: esp32: add support for non-gdma SoCs
Adds support for: - esp32 - esp32s2 Signed-off-by: Marcio Ribeiro <[email protected]>
1 parent a183b17 commit de8ef6d

File tree

7 files changed

+8419
-12762
lines changed

7 files changed

+8419
-12762
lines changed

drivers/i2s/Kconfig.esp32

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ config I2S_ESP32
66
bool "ESP32 I2S driver"
77
default y
88
depends on DT_HAS_ESPRESSIF_ESP32_I2S_ENABLED
9-
depends on DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
10-
select DMA
9+
select DMA if DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
1110
help
1211
Enables the ESP32 I2S driver (GDMA SoCs only).
1312

@@ -25,4 +24,11 @@ config I2S_ESP32_TX_BLOCK_COUNT
2524
help
2625
Max number of blocks waiting to be transmitted by the I2S TX channel.
2726

27+
config I2S_ESP32_DMA_DESC_NUM_MAX
28+
int "ESP32 I2S number of link descriptors"
29+
default 10
30+
depends on !DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
31+
help
32+
Max number of link descriptor available for DMA transfers on each I2S channel
33+
2834
endif

0 commit comments

Comments
 (0)