fix(audio): recover cleanly after barge-in

This commit is contained in:
chenjintao
2026-09-22 17:50:42 +08:00
parent 1c9f16da39
commit 8b01debe4d
2 changed files with 34 additions and 9 deletions
@@ -187,6 +187,9 @@ static void key_thread_entry(void *parameter)
if(ql_rtos_get_systicks() - key_press_mic_time > KEY_LONG_PRESS_3S && power_down_status==0){
nfc_tx_click_count = 0;
power_down_status = 1;
/* Shutdown audio must own the codec. Stop VAD and any
* interrupted TTS before queueing the power-off prompt. */
stop_player_func();
app_play_tips_file(10);
power_down_status = 2;
//ql_rtos_task_sleep_s(3);