blob: 63f3a8528a6cfc051d230f6eef46073ef18cdb44 [file] [log] [blame] [edit]
# 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.
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
config I2S_ESP32_ALLOWED_EMPTY_TX_QUEUE_DEFERRAL_TIME_MS
int "ESP32 I2S empty TX queue processing deferral time"
default 0
help
Allowed deferral time for processing an empty tx queue in milliseconds
endif