summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_detector.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-30 20:47:53 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-30 20:47:53 +0000
commitda16248e47901c826a90291d2bb2a7aae78b209a (patch)
treefcc2a1944dd1b543e21346b46f50252ffc27fb7c /apps/plugins/pitch_detector.c
parenta1997c13c168beeb41bf2f5b814115cdd5cb574c (diff)
downloadrockbox-da16248e47901c826a90291d2bb2a7aae78b209a.tar.gz
rockbox-da16248e47901c826a90291d2bb2a7aae78b209a.zip
Plugins: modify IRAM copying code
Move to plugin_crt0.c, plugins don't need PLUGIN_IRAM_* macros anymore IRAM is no longered zeroed before copying (as it is at the same address than BSS) -> Fix FS#11581 Use cpucache_invalidate() (and not cpucache_flush), needed for self-modifying code on cached IRAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27948 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r--apps/plugins/pitch_detector.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index 22e8f75a7b..2b80f5c089 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -69,8 +69,6 @@
69#include "pluginbitmaps/pitch_notes.h" 69#include "pluginbitmaps/pitch_notes.h"
70 70
71 71
72PLUGIN_IRAM_DECLARE
73
74/* Some fixed point calculation stuff */ 72/* Some fixed point calculation stuff */
75typedef int32_t fixed_data; 73typedef int32_t fixed_data;
76struct _fixed 74struct _fixed
@@ -1056,12 +1054,10 @@ static void init_everything(void)
1056 /* Disable all talking before initializing IRAM */ 1054 /* Disable all talking before initializing IRAM */
1057 rb->talk_disable(true); 1055 rb->talk_disable(true);
1058 1056
1059 PLUGIN_IRAM_INIT(rb);
1060
1061 load_settings(); 1057 load_settings();
1062 rb->storage_sleep(); 1058 rb->storage_sleep();
1063 1059
1064 /* Stop all playback (if no IRAM, otherwise IRAM_INIT would have) */ 1060 /* Stop all playback */
1065 rb->plugin_get_audio_buffer(NULL); 1061 rb->plugin_get_audio_buffer(NULL);
1066 1062
1067 /* --------- Init the audio recording ----------------- */ 1063 /* --------- Init the audio recording ----------------- */