summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-05-17 20:38:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-05-17 20:38:38 +0000
commit67bea32c0827db96e1daa47d2efb63903360dc42 (patch)
tree5a7f22333c6ba2ec0dc94cf76333e9dc126a60a4 /apps/main.c
parentb1bb610cba285cc76554650231ccea1695451daa (diff)
downloadrockbox-67bea32c0827db96e1daa47d2efb63903360dc42.tar.gz
rockbox-67bea32c0827db96e1daa47d2efb63903360dc42.zip
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.c7
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)
172 172
173 status_init(); 173 status_init();
174 usb_start_monitoring(); 174 usb_start_monitoring();
175 power_init();
176 playlist_init(); 175 playlist_init();
177 tree_init(); 176 tree_init();
178 177
179 /* This one must be the last one, since it wants the rest of the buffer 178 /* No buffer allocation (see buffer.c) may take place after the call to
180 space */ 179 mpeg_init() since the mpeg thread takes the rest of the buffer space */
181 mpeg_init( global_settings.volume, 180 mpeg_init( global_settings.volume,
182 global_settings.bass, 181 global_settings.bass,
183 global_settings.treble, 182 global_settings.treble,
@@ -186,6 +185,8 @@ void init(void)
186 global_settings.bass_boost, 185 global_settings.bass_boost,
187 global_settings.avc, 186 global_settings.avc,
188 global_settings.channel_config ); 187 global_settings.channel_config );
188
189 power_init();
189} 190}
190 191
191int main(void) 192int main(void)