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
This commit is contained in:
Michael Sevakis 2012-05-07 04:13:50 -04:00
parent c4a51d2d88
commit 51a73d81cd

View file

@ -237,7 +237,6 @@ static void codec_pcmbuf_insert_callback(
if (!queue_empty(&codec_queue) && if (!queue_empty(&codec_queue) &&
codec_check_queue__have_msg() < 0) codec_check_queue__have_msg() < 0)
{ {
dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */
return; return;
} }
} }
@ -383,6 +382,7 @@ static enum codec_command_action
case Q_CODEC_STOP: /* Must only return 0 in main loop */ case Q_CODEC_STOP: /* Must only return 0 in main loop */
LOGFQUEUE("codec < Q_CODEC_STOP"); LOGFQUEUE("codec < Q_CODEC_STOP");
action = CODEC_ACTION_HALT; action = CODEC_ACTION_HALT;
dsp_configure(ci.dsp, DSP_FLUSH, 0); /* Discontinuity */
break; break;
default: /* This is in error in this context. */ default: /* This is in error in this context. */