diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-17 00:01:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 8cb555460ff79e636a7907fb2589e16db98c8600 (patch) | |
tree | 930a3878c7641c9ce045b24f0ade1309e36d5806 /apps/main.c | |
parent | 0c4f89370d05056faa789aa9cabcccc4e509fb9f (diff) | |
download | rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.gz rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.bz2 rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.zip |
[3/4] Completely remove HWCODEC support
'swcodec' is now always set (and recording_swcodec for recording-capable
units) in feature.txt so the manual and language strings don't need to
all be fixed up.
Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/apps/main.c b/apps/main.c index fe15675c69..4f468fa65b 100644 --- a/apps/main.c +++ b/apps/main.c @@ -45,7 +45,6 @@ #include "serial.h" #endif #include "audio.h" -#include "mp3_playback.h" #include "settings.h" #include "backlight.h" #include "status.h" @@ -87,12 +86,10 @@ #include "iap.h" #endif -#if (CONFIG_CODEC == SWCODEC) #include "audio_thread.h" #include "playback.h" #include "tdspeed.h" -#endif -#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && !defined(SIMULATOR) +#if defined(HAVE_RECORDING) && !defined(SIMULATOR) #include "pcm_record.h" #endif @@ -258,7 +255,7 @@ static void init_tagcache(void) INIT_ATTR; static void init_tagcache(void) { bool clear = false; -#if 0 /* CONFIG_CODEC == SWCODEC */ +#if 0 long talked_tick = 0; #endif tagcache_init(); @@ -269,7 +266,7 @@ static void init_tagcache(void) if (ret > 0) { -#if 0 /* FIXME: Audio isn't even initialized yet! */ /* CONFIG_CODEC == SWCODEC */ +#if 0 /* FIXME: Audio isn't even initialized yet! */ /* hwcodec can't use voice here, as the database commit * uses the audio buffer. */ if(global_settings.talk_menu @@ -365,10 +362,8 @@ static void init(void) viewportmanager_init(); storage_init(); -#if CONFIG_CODEC == SWCODEC pcm_init(); dsp_init(); -#endif settings_reset(); settings_load(SETTINGS_ALL); settings_apply(true); @@ -384,23 +379,6 @@ static void init(void) playlist_init(); shortcuts_init(); -#if CONFIG_CODEC != SWCODEC - mp3_init( global_settings.volume, - global_settings.bass, - global_settings.treble, - global_settings.balance, - global_settings.loudness, - global_settings.avc, - global_settings.channel_config, - global_settings.stereo_width, - global_settings.mdb_strength, - global_settings.mdb_harmonics, - global_settings.mdb_center, - global_settings.mdb_shape, - global_settings.mdb_enable, - global_settings.superbass); -#endif /* CONFIG_CODEC != SWCODEC */ - if (global_settings.audioscrobbler) scrobbler_init(); @@ -599,10 +577,8 @@ static void init(void) } } -#if CONFIG_CODEC == SWCODEC pcm_init(); dsp_init(); -#endif #if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IRIVER_H10_PAD) @@ -669,25 +645,6 @@ static void init(void) shortcuts_init(); -#if CONFIG_CODEC != SWCODEC - /* No buffer allocation (see buffer.c) may take place after the call to - audio_init() since the mpeg thread takes the rest of the buffer space */ - mp3_init( global_settings.volume, - global_settings.bass, - global_settings.treble, - global_settings.balance, - global_settings.loudness, - global_settings.avc, - global_settings.channel_config, - global_settings.stereo_width, - global_settings.mdb_strength, - global_settings.mdb_harmonics, - global_settings.mdb_center, - global_settings.mdb_shape, - global_settings.mdb_enable, - global_settings.superbass); -#endif /* CONFIG_CODEC != SWCODEC */ - CHART(">audio_init"); audio_init(); CHART("<audio_init"); |