From 51a73d81cda6136f901e8d56f4720dc28edf648a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 7 May 2012 04:13:50 -0400 Subject: [PATCH] Stop clickiness on manual track changes as best as possible. Get the DSP_FLUSH sprinkled in the right spot so that history- keeping prcessing stages are cleared on a forced stop. They already were on a seek. Change-Id: I560f1bc5fd813a4142fa099bf53ee1658e49cd8c --- apps/codec_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( if (!queue_empty(&codec_queue) && codec_check_queue__have_msg() < 0) { - dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */ return; } } @@ -383,6 +382,7 @@ static enum codec_command_action case Q_CODEC_STOP: /* Must only return 0 in main loop */ LOGFQUEUE("codec < Q_CODEC_STOP"); action = CODEC_ACTION_HALT; + dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */ break; default: /* This is in error in this context. */