From d319116be43db7ed638e5941674e06859fc69aea Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Fri, 27 Jan 2006 11:39:46 +0000 Subject: iriver: Init audio on background. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8465 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 44d92c1198..fcefa00898 100644 --- a/apps/main.c +++ b/apps/main.c @@ -65,6 +65,7 @@ #include "splash.h" #if (CONFIG_CODEC == SWCODEC) +#include "playback.h" #include "pcmbuf.h" #else #define pcmbuf_init() @@ -178,6 +179,9 @@ void init(void) global_settings.mdb_shape, global_settings.mdb_enable, global_settings.superbass); +#if CONFIG_CODEC == SWCODEC + audio_preinit(); +#endif audio_init(); button_clear_queue(); /* Empty the keyboard buffer */ #if CONFIG_CODEC == SWCODEC @@ -200,6 +204,7 @@ void init(void) #ifdef HAVE_ADJUSTABLE_CPU_FREQ set_cpu_frequency(CPUFREQ_NORMAL); + cpu_boost(true); #endif buffer_init(); @@ -244,6 +249,10 @@ void init(void) button_init(); powermgmt_init(); + +#if CONFIG_CODEC == SWCODEC + audio_preinit(); +#endif #ifdef CONFIG_TUNER radio_init(); @@ -360,16 +369,13 @@ void init(void) global_settings.mdb_enable, global_settings.superbass); audio_init(); -#if (CONFIG_CODEC == SWCODEC) - sound_settings_apply(); -#endif #if (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)) && !defined(SIMULATOR) pcm_rec_init(); #endif talk_init(); /* runtime database has to be initialized after audio_init() */ rundb_init(); - + cpu_boost(false); #ifdef AUTOROCK { -- cgit v1.2.3