From 67bea32c0827db96e1daa47d2efb63903360dc42 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 17 May 2003 20:38:38 +0000 Subject: [PATCH] Moved the power_init() call to after the mpeg_init() call, this is supposed to solve the startup voltage bug git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3678 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/main.c b/apps/main.c index 3909000798..04f3f7890e 100644 --- a/apps/main.c +++ b/apps/main.c @@ -172,12 +172,11 @@ void init(void) status_init(); usb_start_monitoring(); - power_init(); playlist_init(); tree_init(); - /* This one must be the last one, since it wants the rest of the buffer - space */ + /* No buffer allocation (see buffer.c) may take place after the call to + mpeg_init() since the mpeg thread takes the rest of the buffer space */ mpeg_init( global_settings.volume, global_settings.bass, global_settings.treble, @@ -186,6 +185,8 @@ void init(void) global_settings.bass_boost, global_settings.avc, global_settings.channel_config ); + + power_init(); } int main(void)