diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-05-17 20:38:38 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-05-17 20:38:38 +0000 |
commit | 67bea32c0827db96e1daa47d2efb63903360dc42 (patch) | |
tree | 5a7f22333c6ba2ec0dc94cf76333e9dc126a60a4 /apps/main.c | |
parent | b1bb610cba285cc76554650231ccea1695451daa (diff) |
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
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 7 |
1 files 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) |