summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codec_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index dd745d3916..523f0b8e35 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -237,7 +237,6 @@ static void codec_pcmbuf_insert_callback(
237 if (!queue_empty(&codec_queue) && 237 if (!queue_empty(&codec_queue) &&
238 codec_check_queue__have_msg() < 0) 238 codec_check_queue__have_msg() < 0)
239 { 239 {
240 dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */
241 return; 240 return;
242 } 241 }
243 } 242 }
@@ -383,6 +382,7 @@ static enum codec_command_action
383 case Q_CODEC_STOP: /* Must only return 0 in main loop */ 382 case Q_CODEC_STOP: /* Must only return 0 in main loop */
384 LOGFQUEUE("codec < Q_CODEC_STOP"); 383 LOGFQUEUE("codec < Q_CODEC_STOP");
385 action = CODEC_ACTION_HALT; 384 action = CODEC_ACTION_HALT;
385 dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */
386 break; 386 break;
387 387
388 default: /* This is in error in this context. */ 388 default: /* This is in error in this context. */