summaryrefslogtreecommitdiff
path: root/bootloader/main.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-06 18:07:30 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-06 18:07:30 +0000
commit0f5cb94aa4a334366a746fcbb22f3335ca413265 (patch)
tree8f89a96628c1810d51ee9816daf78edb8c76fcd4 /bootloader/main.c
parent0b22795e26ee09de14f6ac23219adeda12f2fd5b (diff)
downloadrockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.tar.gz
rockbox-0f5cb94aa4a334366a746fcbb22f3335ca413265.zip
Big Patch adds primarily: Samplerate and format selection to recording for SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main.c')
-rw-r--r--bootloader/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootloader/main.c b/bootloader/main.c
index 99eb449151..0f3d706d7b 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -204,6 +204,7 @@ void main(void)
204 kernel_init(); 204 kernel_init();
205 205
206 set_cpu_frequency(CPUFREQ_NORMAL); 206 set_cpu_frequency(CPUFREQ_NORMAL);
207 coldfire_set_pllcr_audio_bits(DEFAULT_PLLCR_AUDIO_BITS);
207 208
208 set_irq_level(0); 209 set_irq_level(0);
209 lcd_init(); 210 lcd_init();
@@ -311,6 +312,9 @@ void main(void)
311#ifdef HAVE_ADJUSTABLE_CPU_FREQ 312#ifdef HAVE_ADJUSTABLE_CPU_FREQ
312 /* Set up waitstates for the peripherals */ 313 /* Set up waitstates for the peripherals */
313 set_cpu_frequency(0); /* PLL off */ 314 set_cpu_frequency(0); /* PLL off */
315#ifdef CPU_COLDFIRE
316 coldfire_set_pllcr_audio_bits(DEFAULT_PLLCR_AUDIO_BITS);
317#endif
314#endif 318#endif
315 319
316#ifdef HAVE_UDA1380 320#ifdef HAVE_UDA1380