From 8cb555460ff79e636a7907fb2589e16db98c8600 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 00:01:32 -0400 Subject: [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 --- apps/main.c | 49 +++---------------------------------------------- 1 file changed, 3 insertions(+), 46 deletions(-) (limited to 'apps/main.c') 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("