summaryrefslogtreecommitdiff
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 7bf52d4d0d..6e70f43cc5 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -424,12 +424,14 @@ void voice_thread_init(void)
424{ 424{
425 logf("Starting voice thread"); 425 logf("Starting voice thread");
426 queue_init(&voice_queue, false); 426 queue_init(&voice_queue, false);
427 queue_enable_queue_send(&voice_queue, &voice_queue_sender_list);
428 mutex_init(&voice_mutex); 427 mutex_init(&voice_mutex);
429 event_init(&voice_event, STATE_SIGNALED | EVENT_MANUAL); 428 event_init(&voice_event, STATE_SIGNALED | EVENT_MANUAL);
430 voice_thread_p = create_thread(voice_thread, voice_stack, 429 voice_thread_p = create_thread(voice_thread, voice_stack,
431 sizeof(voice_stack), CREATE_THREAD_FROZEN, 430 sizeof(voice_stack), CREATE_THREAD_FROZEN,
432 voice_thread_name IF_PRIO(, PRIORITY_PLAYBACK) IF_COP(, CPU)); 431 voice_thread_name IF_PRIO(, PRIORITY_PLAYBACK) IF_COP(, CPU));
432
433 queue_enable_queue_send(&voice_queue, &voice_queue_sender_list,
434 voice_thread_p);
433} /* voice_thread_init */ 435} /* voice_thread_init */
434 436
435/* Unfreeze the voice thread */ 437/* Unfreeze the voice thread */