diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-09-20 02:42:54 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-09-20 02:42:54 +0000 |
commit | f7860976c133c342617d3b1450f7681c902e6811 (patch) | |
tree | 04d3ff8b6b20793d5f0cdd2209f4516a3e3b8944 /firmware/pcm_record.c | |
parent | 1000af6ed4cfa771c790fe1c999ee44c68490082 (diff) |
Make sure CPU is boosted when writing recorded data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11007 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r-- | firmware/pcm_record.c | 8 |
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) /* near full state reached: less than 5sec remaining space */ if (enc_num_chunks - num_ready < WRITE_THRESHOLD || flush) { - bool must_boost = (boost_counter ? false : true); - logf("writing: %d (%d)", num_ready, flush); - if(must_boost) - cpu_boost(true); + cpu_boost(true); size_yield = 0; for (i=0; i<num_ready; i++) @@ -583,8 +580,7 @@ static void pcmrec_callback(bool flush) enc_rd_index = (enc_rd_index + 1) % enc_num_chunks; } - if(must_boost) - cpu_boost(false); + cpu_boost(false); /* sync file */ fsync(wav_file); |