Skip to content

Commit 25634da

Browse files
committed
Merge branch 'bugfix/ai_audio_build_issue_without_psram' into 'main'
gmf_ai_audio: Fixed the bug that caused the build to fail when PSRAM was disabled See merge request adf/multimedia/esp-gmf!97
2 parents a1c60f6 + 4420b67 commit 25634da

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

elements/gmf_ai_audio/src/esp_gmf_afe_manager.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,24 @@ esp_gmf_err_t esp_gmf_afe_manager_create(esp_gmf_afe_manager_cfg_t *cfg, esp_gmf
199199
&afe_manager->fetch.task);
200200
ESP_GOTO_ON_FALSE(afe_manager->fetch.task, ESP_GMF_ERR_MEMORY_LACK, __err, TAG, "Create afe fetch task failed");
201201
#else
202-
xTaskCreatePinnedToCore(feed_task, "afe_feed", cfg->feed_stack, afe, cfg->feed_prio, &afe_manager->feed.task, cfg->feed_core);
202+
ESP_LOGW(TAG, "The AFE Manager may not work when PSRAM is disabled");
203+
204+
xTaskCreatePinnedToCore(feed_task,
205+
"afe_feed",
206+
cfg->feed_task_setting.stack_size,
207+
afe_manager,
208+
cfg->feed_task_setting.prio,
209+
&afe_manager->feed.task,
210+
cfg->feed_task_setting.core);
203211
ESP_GOTO_ON_FALSE(afe_manager->feed.task, ESP_GMF_ERR_MEMORY_LACK, __err, TAG, "Create afe feed task failed");
204212

205-
xTaskCreatePinnedToCore(fetch_task, "afe_fetch", cfg->fetch_stack, afe, cfg->fetch_prio, &afe_manager->fetch.task, cfg->fetch_core);
213+
xTaskCreatePinnedToCore(fetch_task,
214+
"afe_fetch",
215+
cfg->fetch_task_setting.stack_size,
216+
afe_manager,
217+
cfg->fetch_task_setting.prio,
218+
&afe_manager->fetch.task,
219+
cfg->fetch_task_setting.core);
206220
ESP_GOTO_ON_FALSE(afe_manager->fetch.task, ESP_GMF_ERR_MEMORY_LACK, __err, TAG, "Create afe fetch task failed");
207221
#endif /* (configSUPPORT_STATIC_ALLOCATION == 1) */
208222

0 commit comments

Comments
 (0)