1
0
Fork 0
forked from len0rd/rockbox

SWCODEC recording: Boost CPU frequency before doing flush on stop

If CPU is not boosted for some reason already, then the stop flush
can take longer than it really ought to.

Change-Id: I0572cc83067749e9945b3eb825f976db21d914f9
This commit is contained in:
Michael Sevakis 2013-07-09 07:36:22 -04:00
parent 95bc93194e
commit 5f0692b98c

View file

@ -1623,6 +1623,8 @@ static void on_record_stop(void)
if (record_state == REC_STATE_IDLE) if (record_state == REC_STATE_IDLE)
return; return;
trigger_cpu_boost();
/* Drain encoder and PCM buffers */ /* Drain encoder and PCM buffers */
pcm_pause = true; pcm_pause = true;
finish_stream(true); finish_stream(true);