diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-15 19:40:55 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch) | |
tree | 98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/plugin.c | |
parent | 17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff) | |
download | rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip |
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets
Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 34 |
1 files changed, 4 insertions, 30 deletions
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 = { | |||
318 | viewport_set_fullscreen, | 318 | viewport_set_fullscreen, |
319 | #endif | 319 | #endif |
320 | 320 | ||
321 | #ifdef HAVE_BACKLIGHT | ||
321 | /* lcd backlight */ | 322 | /* lcd backlight */ |
322 | /* The backlight_* functions must be present in the API regardless whether | 323 | /* For OLED targets like the Sansa Clip, the backlight_* functions control |
323 | * HAVE_BACKLIGHT is defined or not. The reason is that the stock Ondio has | ||
324 | * no backlight but can be modded to have backlight (it's prepared on the | ||
325 | * PCB). This makes backlight an all-target feature API wise, and keeps API | ||
326 | * compatible between stock and modded Ondio. | ||
327 | * For OLED targets like the Sansa Clip, the backlight_* functions control | ||
328 | * the display enable, which has essentially the same effect. */ | 324 | * the display enable, which has essentially the same effect. */ |
329 | is_backlight_on, | 325 | is_backlight_on, |
330 | backlight_on, | 326 | backlight_on, |
@@ -346,6 +342,7 @@ static const struct plugin_api rockbox_api = { | |||
346 | remote_backlight_set_timeout_plugged, | 342 | remote_backlight_set_timeout_plugged, |
347 | #endif | 343 | #endif |
348 | #endif /* HAVE_REMOTE_LCD */ | 344 | #endif /* HAVE_REMOTE_LCD */ |
345 | #endif /* HAVE_BACKLIGHT */ | ||
349 | 346 | ||
350 | /* list */ | 347 | /* list */ |
351 | gui_synclist_init, | 348 | gui_synclist_init, |
@@ -615,8 +612,7 @@ static const struct plugin_api rockbox_api = { | |||
615 | #ifdef AUDIOHW_HAVE_EQ | 612 | #ifdef AUDIOHW_HAVE_EQ |
616 | sound_enum_hw_eq_band_setting, | 613 | sound_enum_hw_eq_band_setting, |
617 | #endif | 614 | #endif |
618 | #if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ | 615 | #if ((CONFIG_CODEC == SWCODEC)) && defined (HAVE_PITCHCONTROL) |
619 | (CONFIG_CODEC == SWCODEC)) && defined (HAVE_PITCHCONTROL) | ||
620 | sound_set_pitch, | 616 | sound_set_pitch, |
621 | #endif | 617 | #endif |
622 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 618 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
@@ -684,13 +680,6 @@ static const struct plugin_api rockbox_api = { | |||
684 | keyclick_click, | 680 | keyclick_click, |
685 | #endif /* CONFIG_CODEC == SWCODEC */ | 681 | #endif /* CONFIG_CODEC == SWCODEC */ |
686 | 682 | ||
687 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
688 | peak_meter_scale_value, | ||
689 | peak_meter_set_use_dbfs, | ||
690 | peak_meter_get_use_dbfs, | ||
691 | #endif | ||
692 | |||
693 | |||
694 | /* metadata */ | 683 | /* metadata */ |
695 | get_metadata, | 684 | get_metadata, |
696 | mp3info, | 685 | mp3info, |
@@ -742,21 +731,6 @@ static const struct plugin_api rockbox_api = { | |||
742 | mpeg_get_last_header, | 731 | mpeg_get_last_header, |
743 | #endif | 732 | #endif |
744 | 733 | ||
745 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | ||
746 | /* MAS communication */ | ||
747 | mas_readmem, | ||
748 | mas_writemem, | ||
749 | mas_readreg, | ||
750 | mas_writereg, | ||
751 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
752 | mas_codec_writereg, | ||
753 | mas_codec_readreg, | ||
754 | i2c_begin, | ||
755 | i2c_end, | ||
756 | i2c_write, | ||
757 | #endif | ||
758 | #endif /* !SIMULATOR && CONFIG_CODEC != SWCODEC */ | ||
759 | |||
760 | /* menu */ | 734 | /* menu */ |
761 | root_menu_get_options, | 735 | root_menu_get_options, |
762 | do_menu, | 736 | do_menu, |