diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-09-20 02:53:06 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-09-20 02:53:06 +0000 |
commit | b183ef42950eb3ae30d0a288a2292ef238c598f0 (patch) | |
tree | c485100999c05617e482a00164a9aa98a74d8fc8 | |
parent | f7860976c133c342617d3b1450f7681c902e6811 (diff) | |
download | rockbox-b183ef42950eb3ae30d0a288a2292ef238c598f0.tar.gz rockbox-b183ef42950eb3ae30d0a288a2292ef238c598f0.zip |
Forgot to remove a must_boost reference. Unboost after fsync
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11008 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/pcm_record.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c index d0f9e21259..544ecb378d 100644 --- a/firmware/pcm_record.c +++ b/firmware/pcm_record.c | |||
@@ -560,8 +560,6 @@ static void pcmrec_callback(bool flush) | |||
560 | if (write(wav_file, enc_chunk, chunk_size) != chunk_size) | 560 | if (write(wav_file, enc_chunk, chunk_size) != chunk_size) |
561 | { | 561 | { |
562 | close_wave(); | 562 | close_wave(); |
563 | if(must_boost) | ||
564 | cpu_boost(false); | ||
565 | logf("pcmrec: write err"); | 563 | logf("pcmrec: write err"); |
566 | is_error = true; | 564 | is_error = true; |
567 | break; | 565 | break; |
@@ -580,11 +578,11 @@ static void pcmrec_callback(bool flush) | |||
580 | enc_rd_index = (enc_rd_index + 1) % enc_num_chunks; | 578 | enc_rd_index = (enc_rd_index + 1) % enc_num_chunks; |
581 | } | 579 | } |
582 | 580 | ||
583 | cpu_boost(false); | ||
584 | |||
585 | /* sync file */ | 581 | /* sync file */ |
586 | fsync(wav_file); | 582 | fsync(wav_file); |
587 | 583 | ||
584 | cpu_boost(false); | ||
585 | |||
588 | logf("done"); | 586 | logf("done"); |
589 | } | 587 | } |
590 | } | 588 | } |