diff --git a/arch/xtensa/src/esp32s3/esp32s3_i2s.c b/arch/xtensa/src/esp32s3/esp32s3_i2s.c index 9841881103..f21ff64eef 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_i2s.c +++ b/arch/xtensa/src/esp32s3/esp32s3_i2s.c @@ -3162,10 +3162,6 @@ struct i2s_dev_s *esp32s3_i2sbus_initialize(int port) return NULL; } - flags = spin_lock_irqsave(&priv->slock); - - i2s_configure(priv); - /* Allocate buffer containers */ ret = i2s_buf_initialize(priv); @@ -3174,6 +3170,10 @@ struct i2s_dev_s *esp32s3_i2sbus_initialize(int port) goto err; } + flags = spin_lock_irqsave(&priv->slock); + + i2s_configure(priv); + ret = i2s_dma_setup(priv); if (ret < 0) { diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/audio/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/audio/defconfig index eedfc0de17..59efb86383 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/audio/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/audio/defconfig @@ -83,6 +83,8 @@ CONFIG_RAM_SIZE=114688 CONFIG_RAM_START=0x20000000 CONFIG_RR_INTERVAL=200 CONFIG_SCHED_WAITPID=y +CONFIG_SMP=y +CONFIG_SMP_NCPUS=2 CONFIG_SPIFFS_NAME_MAX=128 CONFIG_START_DAY=6 CONFIG_START_MONTH=12