blob: 8cc13d01dc92e6d1b00c5e7765387ce0b7c4a7f7 [file] [log] [blame]
# Copyright (c) 2024 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
config I2S_ESP32
bool "ESP32 I2S driver"
default y
depends on DT_HAS_ESPRESSIF_ESP32_I2S_ENABLED
select DMA if DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
help
Enables the ESP32 I2S driver (GDMA SoCs only).
if I2S_ESP32
config I2S_ESP32_RX_BLOCK_COUNT
int "ESP32 I2S RX block count"
default 5
help
Max number of blocks waiting to be read from the I2S RX channel.
config I2S_ESP32_TX_BLOCK_COUNT
int "ESP32 I2S TX block count"
default 5
help
Max number of blocks waiting to be transmitted by the I2S TX channel.
config I2S_ESP32_DMA_DESC_NUM_MAX
int "ESP32 I2S number of link descriptors"
default 10
depends on !DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
help
Max number of link descriptor available for DMA transfers on each I2S channel
endif