esp32s3/i2s: Add CONFIG_ESP32S3_I2S_MAXINFLIGHT to Kconfig

Enable setting the number of in-flight buffers to be used by the
I2S peripheral on ESP32-S3 using Kconfig.
This commit is contained in:
Tiago Medicci Serrano 2024-07-02 14:09:30 -03:00 committed by Xiang Xiao
parent 3637040d73
commit 1ab1a905b8
2 changed files with 11 additions and 6 deletions

View File

@ -52,7 +52,7 @@ config ARCH_CHIP_ESP32S3CUSTOM
select ARCH_HAVE_I2CRESET
---help---
Generic module with an embedded ESP32-S3. Chip Flash Size should be selected
under SPI FLash Menu.
under SPI Flash Menu.
endchoice # ESP32-S3 Chip Selection
@ -322,6 +322,15 @@ config ESP32S3_I2S
if ESP32S3_I2S
config ESP32S3_I2S_MAXINFLIGHT
int "I2S queue size"
default 4
---help---
This is the total number of transfers, both RX and TX, that can be
enqueued before the caller is required to wait. This setting
determines the number certain queue data structures that will be
pre-allocated.
config ESP32S3_I2S0
bool "I2S 0"
default n
@ -1892,7 +1901,7 @@ config ESP32S3_SPI_FLASH_USE_32BIT_ADDRESS
if select the option, it will force to use source code instead
of functions in ROM, so that SPI flash driver can access full
32-bit address.
choice ESP32S3_FLASH_SIZE
prompt "ESP32S3 Custom Module Flash Size"
depends on ARCH_CHIP_ESP32S3CUSTOM

View File

@ -123,10 +123,6 @@
# undef CONFIG_ESP32S3_I2S_DUMPBUFFERS
#endif
#ifndef CONFIG_ESP32S3_I2S_MAXINFLIGHT
# define CONFIG_ESP32S3_I2S_MAXINFLIGHT 4
#endif
#define I2S_GPIO_UNUSED -1 /* For signals which are not used */
/****************************************************************************