summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-09-20 02:42:54 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-09-20 02:42:54 +0000
commitf7860976c133c342617d3b1450f7681c902e6811 (patch)
tree04d3ff8b6b20793d5f0cdd2209f4516a3e3b8944
parent1000af6ed4cfa771c790fe1c999ee44c68490082 (diff)
downloadrockbox-f7860976c133c342617d3b1450f7681c902e6811.tar.gz
rockbox-f7860976c133c342617d3b1450f7681c902e6811.zip
Make sure CPU is boosted when writing recorded data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11007 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/pcm_record.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index bce6fb5f25..d0f9e21259 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -539,12 +539,9 @@ static void pcmrec_callback(bool flush)
539 /* near full state reached: less than 5sec remaining space */ 539 /* near full state reached: less than 5sec remaining space */
540 if (enc_num_chunks - num_ready < WRITE_THRESHOLD || flush) 540 if (enc_num_chunks - num_ready < WRITE_THRESHOLD || flush)
541 { 541 {
542 bool must_boost = (boost_counter ? false : true);
543
544 logf("writing: %d (%d)", num_ready, flush); 542 logf("writing: %d (%d)", num_ready, flush);
545 543
546 if(must_boost) 544 cpu_boost(true);
547 cpu_boost(true);
548 545
549 size_yield = 0; 546 size_yield = 0;
550 for (i=0; i<num_ready; i++) 547 for (i=0; i<num_ready; i++)
@@ -583,8 +580,7 @@ static void pcmrec_callback(bool flush)
583 enc_rd_index = (enc_rd_index + 1) % enc_num_chunks; 580 enc_rd_index = (enc_rd_index + 1) % enc_num_chunks;
584 } 581 }
585 582
586 if(must_boost) 583 cpu_boost(false);
587 cpu_boost(false);
588 584
589 /* sync file */ 585 /* sync file */
590 fsync(wav_file); 586 fsync(wav_file);