Skip to content

Commit 08a3d32

Browse files
committed
Merge branch 'main' into remote_ctrl
2 parents 9c8aad7 + d5f77b8 commit 08a3d32

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

main/Kconfig.projbuild

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,22 +279,30 @@ config USE_EMOTION_REMOTE
279279

280280
config USE_AUDIO_CODEC_ENCODE_OPUS
281281
depends on BOARD_TYPE_DOIT_AI_01_KIT || BOARD_TYPE_DOIT_AI_01_KIT_LCD || BOARD_TYPE_DOIT_AI_02_KIT_LCD
282+
select USE_CUSTOM_TASK_STACK_SIZE
282283
bool "use audio codec encode opus"
283284
default y
284285

285286
config USE_AUDIO_CODEC_DECODE_OPUS
286287
depends on BOARD_TYPE_DOIT_AI_01_KIT || BOARD_TYPE_DOIT_AI_01_KIT_LCD || BOARD_TYPE_DOIT_AI_02_KIT_LCD
288+
select USE_CUSTOM_TASK_STACK_SIZE
287289
bool "use audio codec decode opus"
288290
default n
289291

292+
config USE_CUSTOM_TASK_STACK_SIZE
293+
bool "use custom task stack size"
294+
default n
295+
290296
config TACKGROUND_TASK_STACK_SIZE
297+
depends on USE_CUSTOM_TASK_STACK_SIZE
291298
int "background task stack size"
292299
default 2048 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3) && (USE_AUDIO_CODEC_ENCODE_OPUS && USE_AUDIO_CODEC_DECODE_OPUS))
293300
default 8960 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3) && (USE_AUDIO_CODEC_ENCODE_OPUS))
294301
default 26624 if ((IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3))
295302
default 32768
296303

297304
config AUDIO_LOOP_TASK_STACK_SIZE
305+
depends on USE_CUSTOM_TASK_STACK_SIZE
298306
int "audio_loop task stack size"
299307
default 2048 if IDF_TARGET_ESP32C2
300308
default 8192

main/application.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
#error "audoio_processor or wake_word_detect need opus encoder"
2929
#endif
3030

31+
#ifndef CONFIG_TACKGROUND_TASK_STACK_SIZE
32+
#define CONFIG_TACKGROUND_TASK_STACK_SIZE (4096*8)
33+
#endif
34+
35+
#ifndef CONFIG_AUDIO_LOOP_TASK_STACK_SIZE
36+
#define CONFIG_AUDIO_LOOP_TASK_STACK_SIZE (4096*2)
37+
#endif
38+
3139
static const char* const STATE_STRINGS[] = {
3240
"unknown",
3341
"starting",

0 commit comments

Comments
 (0)