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 /apps/plugins | |
parent | 9b43f14165cdb4fd77a5e9c8a1213486dcb8ca67 (diff) | |
download | rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.tar.gz rockbox-39946a56d8e4c4edda8a7be22bd65a00f0bd1b2f.zip |
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
Diffstat (limited to 'apps/plugins')
-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 920be54d56..7523d9e9aa 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -910,8 +910,6 @@ menu: | |||
910 | boost_settings, 2, NULL); | 910 | boost_settings, 2, NULL); |
911 | goto menu; | 911 | goto menu; |
912 | } | 912 | } |
913 | if(boost) | ||
914 | rb->cpu_boost(true); | ||
915 | #endif | 913 | #endif |
916 | 914 | ||
917 | if (result == QUIT) | 915 | if (result == QUIT) |
@@ -963,6 +961,11 @@ menu: | |||
963 | goto exit; | 961 | goto exit; |
964 | } | 962 | } |
965 | 963 | ||
964 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
965 | if (boost) | ||
966 | rb->cpu_boost(true); | ||
967 | #endif | ||
968 | |||
966 | if (scandir) { | 969 | if (scandir) { |
967 | /* Test all files in the same directory as the file selected by the | 970 | /* Test all files in the same directory as the file selected by the |
968 | user */ | 971 | user */ |
@@ -1003,12 +1006,13 @@ menu: | |||
1003 | log_text("Wrote /test.wav",true); | 1006 | log_text("Wrote /test.wav",true); |
1004 | } | 1007 | } |
1005 | } | 1008 | } |
1006 | plugin_quit(); | ||
1007 | 1009 | ||
1008 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 1010 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
1009 | if(boost) | 1011 | if (boost) |
1010 | rb->cpu_boost(false); | 1012 | rb->cpu_boost(false); |
1011 | #endif | 1013 | #endif |
1014 | |||
1015 | plugin_quit(); | ||
1012 | 1016 | ||
1013 | rb->button_clear_queue(); | 1017 | rb->button_clear_queue(); |
1014 | goto show_menu; | 1018 | goto show_menu; |