summaryrefslogtreecommitdiff
path: root/apps/codecs/mpa.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/mpa.c')
-rw-r--r--apps/codecs/mpa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c
index d3da63b430..4d6c52f2b3 100644
--- a/apps/codecs/mpa.c
+++ b/apps/codecs/mpa.c
@@ -211,7 +211,7 @@ static void mad_synth_thread(void)
211{ 211{
212 while(1) { 212 while(1) {
213 ci->semaphore_release(&synth_done_sem); 213 ci->semaphore_release(&synth_done_sem);
214 ci->semaphore_wait(&synth_pending_sem); 214 ci->semaphore_wait(&synth_pending_sem, TIMEOUT_BLOCK);
215 215
216 if(die) 216 if(die)
217 break; 217 break;
@@ -224,7 +224,7 @@ static void mad_synth_thread(void)
224 * synthesized */ 224 * synthesized */
225static inline void mad_synth_thread_wait_pcm(void) 225static inline void mad_synth_thread_wait_pcm(void)
226{ 226{
227 ci->semaphore_wait(&synth_done_sem); 227 ci->semaphore_wait(&synth_done_sem, TIMEOUT_BLOCK);
228} 228}
229 229
230/* increment the done semaphore - used after a wait for idle to preserve the 230/* increment the done semaphore - used after a wait for idle to preserve the