diff options
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) | |||
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); |