diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-03 16:20:35 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-03 16:20:35 +0000 |
commit | 630c300660ed6c0aec9f8458b31fa2d7a578429f (patch) | |
tree | 0ccc0a8228ae933bb667afb31aa34771d5db42a7 /apps | |
parent | 6ae43305882e71ec2d3c63406314363cdab4d861 (diff) | |
download | rockbox-630c300660ed6c0aec9f8458b31fa2d7a578429f.tar.gz rockbox-630c300660ed6c0aec9f8458b31fa2d7a578429f.zip |
Fixed cpu incorrectly unboosted at boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/recording.c | 16 | ||||
-rw-r--r-- | apps/tagtree.c | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index e964db1e23..ff002d7685 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -534,6 +534,20 @@ int rec_create_directory(void) | |||
534 | } | 534 | } |
535 | 535 | ||
536 | #if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR) | 536 | #if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR) |
537 | |||
538 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
539 | static void rec_boost(bool state) | ||
540 | { | ||
541 | static bool cpu_boosted = false; | ||
542 | |||
543 | if (state != cpu_boosted) | ||
544 | { | ||
545 | cpu_boost(state); | ||
546 | cpu_boosted = state; | ||
547 | } | ||
548 | } | ||
549 | #endif | ||
550 | |||
537 | /** | 551 | /** |
538 | * Selects an audio source for recording or playback | 552 | * Selects an audio source for recording or playback |
539 | * powers/unpowers related devices. | 553 | * powers/unpowers related devices. |
@@ -567,7 +581,7 @@ void rec_set_source(int source, int flags) | |||
567 | 581 | ||
568 | #ifdef HAVE_SPDIF_IN | 582 | #ifdef HAVE_SPDIF_IN |
569 | if ((source == AUDIO_SRC_SPDIF) != (source == last_source)) | 583 | if ((source == AUDIO_SRC_SPDIF) != (source == last_source)) |
570 | cpu_boost(source == AUDIO_SRC_SPDIF); | 584 | rec_boost(source == AUDIO_SRC_SPDIF); |
571 | 585 | ||
572 | #ifdef HAVE_SPDIF_POWER | 586 | #ifdef HAVE_SPDIF_POWER |
573 | /* Check if S/PDIF output power should be switched off or on. NOTE: assumes | 587 | /* Check if S/PDIF output power should be switched off or on. NOTE: assumes |
diff --git a/apps/tagtree.c b/apps/tagtree.c index 8ef78699dd..7ef8e89d4f 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -1062,6 +1062,7 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue) | |||
1062 | if (!tagcache_search(&tcs, tag_filename)) | 1062 | if (!tagcache_search(&tcs, tag_filename)) |
1063 | { | 1063 | { |
1064 | gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); | 1064 | gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); |
1065 | cpu_boost(false); | ||
1065 | return false; | 1066 | return false; |
1066 | } | 1067 | } |
1067 | 1068 | ||
@@ -1207,6 +1208,7 @@ struct tagentry* tagtree_get_entry(struct tree_context *c, int id) | |||
1207 | false) < 0) | 1208 | false) < 0) |
1208 | { | 1209 | { |
1209 | logf("retrieve failed"); | 1210 | logf("retrieve failed"); |
1211 | cpu_boost(false); | ||
1210 | return NULL; | 1212 | return NULL; |
1211 | } | 1213 | } |
1212 | realid = id - current_offset; | 1214 | realid = id - current_offset; |