summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-09-01 07:32:07 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-09-01 07:32:07 +0000
commit6d3a6f71d1f8bce9ab5e7b90ceab6a17271174b8 (patch)
tree3769e0c1036de254182761c48d25d9a079d36295 /apps/voice_thread.c
parent67f52495593ea66660bd3b63c1bb7bfbe7e5cef1 (diff)
downloadrockbox-6d3a6f71d1f8bce9ab5e7b90ceab6a17271174b8.tar.gz
rockbox-6d3a6f71d1f8bce9ab5e7b90ceab6a17271174b8.tar.bz2
rockbox-6d3a6f71d1f8bce9ab5e7b90ceab6a17271174b8.zip
Remove obsolete init cruft from audio system because of diminished dependencies. All talk/voice dependency in playback.c should be imminently removable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30401 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 5a3ad46801..2f216cde9d 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -217,9 +217,6 @@ void mp3_play_data(const unsigned char* start, int size,
/* Stop current voice clip from playing */
void mp3_play_stop(void)
{
- if(!audio_is_thread_ready())
- return;
-
LOGFQUEUE("mp3 >| voice Q_VOICE_STOP");
queue_send(&voice_queue, Q_VOICE_STOP, 0);
}
@@ -419,12 +416,6 @@ static void NORETURN_ATTR voice_thread(void)
voice_data_init(&td);
- /* audio thread will only set this once after it finished the final
- * audio hardware init so this little construct is safe - even
- * cross-core. */
- while (!audio_is_thread_ready())
- sleep(0);
-
while (1)
{
switch (state)
@@ -449,18 +440,11 @@ void voice_thread_init(void)
queue_init(&voice_queue, false);
voice_thread_id = create_thread(voice_thread, voice_stack,
- sizeof(voice_stack), CREATE_THREAD_FROZEN,
- voice_thread_name IF_PRIO(, PRIORITY_VOICE) IF_COP(, CPU));
+ sizeof(voice_stack), 0, voice_thread_name
+ IF_PRIO(, PRIORITY_VOICE) IF_COP(, CPU));
queue_enable_queue_send(&voice_queue, &voice_queue_sender_list,
voice_thread_id);
-} /* voice_thread_init */
-
-/* Unfreeze the voice thread */
-void voice_thread_resume(void)
-{
- logf("Thawing voice thread");
- thread_thaw(voice_thread_id);
}
#ifdef HAVE_PRIORITY_SCHEDULING