summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-07-09 07:36:22 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-07-09 07:36:22 -0400
commit5f0692b98ca67ebefd02e94dac78e4de7c37dcfb (patch)
tree27c8be6101877b52a27911cd58dc3fc210b552ed /apps/recorder
parent95bc93194e18d1f5c7bf49683bcbe1b6ecc2a073 (diff)
downloadrockbox-5f0692b98ca67ebefd02e94dac78e4de7c37dcfb.tar.gz
rockbox-5f0692b98ca67ebefd02e94dac78e4de7c37dcfb.tar.bz2
rockbox-5f0692b98ca67ebefd02e94dac78e4de7c37dcfb.zip
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
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/pcm_record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 6babd5ea6f..2170e473bc 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -1623,6 +1623,8 @@ static void on_record_stop(void)
if (record_state == REC_STATE_IDLE)
return;
+ trigger_cpu_boost();
+
/* Drain encoder and PCM buffers */
pcm_pause = true;
finish_stream(true);