summaryrefslogtreecommitdiff
path: root/apps/recorder/pcm_record.c
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/pcm_record.c
parent95bc93194e18d1f5c7bf49683bcbe1b6ecc2a073 (diff)
downloadrockbox-5f0692b98ca67ebefd02e94dac78e4de7c37dcfb.tar.gz
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/pcm_record.c')
-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)
1623 if (record_state == REC_STATE_IDLE) 1623 if (record_state == REC_STATE_IDLE)
1624 return; 1624 return;
1625 1625
1626 trigger_cpu_boost();
1627
1626 /* Drain encoder and PCM buffers */ 1628 /* Drain encoder and PCM buffers */
1627 pcm_pause = true; 1629 pcm_pause = true;
1628 finish_stream(true); 1630 finish_stream(true);