summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 767c593f57..e0455c51a2 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -109,7 +109,9 @@ static const struct plugin_api rockbox_api = {
109 lcd_clear_display, 109 lcd_clear_display,
110 lcd_getstringsize, 110 lcd_getstringsize,
111 lcd_putsxy, 111 lcd_putsxy,
112 lcd_putsxyf,
112 lcd_puts, 113 lcd_puts,
114 lcd_putsf,
113 lcd_puts_scroll, 115 lcd_puts_scroll,
114 lcd_stop_scroll, 116 lcd_stop_scroll,
115#ifdef HAVE_LCD_CHARCELLS 117#ifdef HAVE_LCD_CHARCELLS
@@ -382,8 +384,10 @@ static const struct plugin_api rockbox_api = {
382 trigger_cpu_boost, 384 trigger_cpu_boost,
383 cancel_cpu_boost, 385 cancel_cpu_boost,
384#endif 386#endif
385#if NUM_CORES > 1 387#ifdef HAVE_CPUCACHE_FLUSH
386 cpucache_flush, 388 cpucache_flush,
389#endif
390#ifdef HAVE_CPUCACHE_INVALIDATE
387 cpucache_invalidate, 391 cpucache_invalidate,
388#endif 392#endif
389 timer_register, 393 timer_register,
@@ -620,9 +624,6 @@ static const struct plugin_api rockbox_api = {
620 plugin_get_audio_buffer, 624 plugin_get_audio_buffer,
621 plugin_tsr, 625 plugin_tsr,
622 plugin_get_current_filename, 626 plugin_get_current_filename,
623#ifdef PLUGIN_USE_IRAM
624 plugin_iram_init,
625#endif
626#if defined(DEBUG) || defined(SIMULATOR) 627#if defined(DEBUG) || defined(SIMULATOR)
627 debugf, 628 debugf,
628#endif 629#endif
@@ -721,9 +722,6 @@ static const struct plugin_api rockbox_api = {
721 722
722 /* new stuff at the end, sort into place next time 723 /* new stuff at the end, sort into place next time
723 the API gets incompatible */ 724 the API gets incompatible */
724
725 lcd_putsf,
726 lcd_putsxyf,
727}; 725};
728 726
729int plugin_load(const char* plugin, const void* parameter) 727int plugin_load(const char* plugin, const void* parameter)
@@ -919,23 +917,6 @@ void* plugin_get_audio_buffer(size_t *buffer_size)
919#endif 917#endif
920} 918}
921 919
922#ifdef PLUGIN_USE_IRAM
923/* Initializes plugin IRAM */
924void plugin_iram_init(char *iramstart, char *iramcopy, size_t iram_size,
925 char *iedata, size_t iedata_size)
926{
927 /* We need to stop audio playback in order to use codec IRAM */
928 audio_hard_stop();
929 memcpy(iramstart, iramcopy, iram_size);
930 memset(iedata, 0, iedata_size);
931 memset(iramcopy, 0, iram_size);
932#if NUM_CORES > 1
933 /* writeback cleared iedata and iramcopy areas */
934 cpucache_flush();
935#endif
936}
937#endif /* PLUGIN_USE_IRAM */
938
939/* The plugin wants to stay resident after leaving its main function, e.g. 920/* The plugin wants to stay resident after leaving its main function, e.g.
940 runs from timer or own thread. The callback is registered to later 921 runs from timer or own thread. The callback is registered to later
941 instruct it to free its resources before a new plugin gets loaded. */ 922 instruct it to free its resources before a new plugin gets loaded. */