diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-21 22:19:57 -0400 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-21 22:19:57 -0400 |
| commit | 39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f (patch) | |
| tree | 828bcb4785916c7b4390d3341b15b42f487ded33 | |
| parent | 9b43f14165cdb4fd77a5e9c8a1213486dcb8ca67 (diff) | |
| download | rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.zip rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.tar.gz rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.tar.bz2 rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.tar.xz | |
Fix CPU boosting in test_codec.
Boost only for tests and unboost immediately afterwards. It was leaving
the CPU boosted after exiting.
Change-Id: I010c4b975bd27e8990dc057ddd244dab233411ca
| -rw-r--r-- | apps/plugins/test_codec.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 920be54..7523d9e 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -910,8 +910,6 @@ menu: boost_settings, 2, NULL); goto menu; } - if(boost) - rb->cpu_boost(true); #endif if (result == QUIT) @@ -963,6 +961,11 @@ menu: goto exit; } +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + if (boost) + rb->cpu_boost(true); +#endif + if (scandir) { /* Test all files in the same directory as the file selected by the user */ @@ -1003,12 +1006,13 @@ menu: log_text("Wrote /test.wav",true); } } - plugin_quit(); - #ifdef HAVE_ADJUSTABLE_CPU_FREQ - if(boost) - rb->cpu_boost(false); - #endif +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + if (boost) + rb->cpu_boost(false); +#endif + + plugin_quit(); rb->button_clear_queue(); goto show_menu; |