From 092c340a2062fa98b7387fc5fd63578ddae7d0b6 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 15 Jul 2020 19:40:55 -0400 Subject: [1/4] Remove SH support and all archos targets This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061 --- apps/plugin.c | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 4293d861f9..959232ddb7 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -318,13 +318,9 @@ static const struct plugin_api rockbox_api = { viewport_set_fullscreen, #endif +#ifdef HAVE_BACKLIGHT /* lcd backlight */ - /* The backlight_* functions must be present in the API regardless whether - * HAVE_BACKLIGHT is defined or not. The reason is that the stock Ondio has - * no backlight but can be modded to have backlight (it's prepared on the - * PCB). This makes backlight an all-target feature API wise, and keeps API - * compatible between stock and modded Ondio. - * For OLED targets like the Sansa Clip, the backlight_* functions control + /* For OLED targets like the Sansa Clip, the backlight_* functions control * the display enable, which has essentially the same effect. */ is_backlight_on, backlight_on, @@ -346,6 +342,7 @@ static const struct plugin_api rockbox_api = { remote_backlight_set_timeout_plugged, #endif #endif /* HAVE_REMOTE_LCD */ +#endif /* HAVE_BACKLIGHT */ /* list */ gui_synclist_init, @@ -615,8 +612,7 @@ static const struct plugin_api rockbox_api = { #ifdef AUDIOHW_HAVE_EQ sound_enum_hw_eq_band_setting, #endif -#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ - (CONFIG_CODEC == SWCODEC)) && defined (HAVE_PITCHCONTROL) +#if ((CONFIG_CODEC == SWCODEC)) && defined (HAVE_PITCHCONTROL) sound_set_pitch, #endif #if (CONFIG_PLATFORM & PLATFORM_NATIVE) @@ -684,13 +680,6 @@ static const struct plugin_api rockbox_api = { keyclick_click, #endif /* CONFIG_CODEC == SWCODEC */ -#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) - peak_meter_scale_value, - peak_meter_set_use_dbfs, - peak_meter_get_use_dbfs, -#endif - - /* metadata */ get_metadata, mp3info, @@ -742,21 +731,6 @@ static const struct plugin_api rockbox_api = { mpeg_get_last_header, #endif -#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) - /* MAS communication */ - mas_readmem, - mas_writemem, - mas_readreg, - mas_writereg, -#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) - mas_codec_writereg, - mas_codec_readreg, - i2c_begin, - i2c_end, - i2c_write, -#endif -#endif /* !SIMULATOR && CONFIG_CODEC != SWCODEC */ - /* menu */ root_menu_get_options, do_menu, -- cgit v1.2.3