summaryrefslogtreecommitdiffstats
path: root/apps/codecs.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-11-18 19:03:45 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-11-18 19:03:45 +0000
commit1a41c8afeefd4884a5369c79808c68b3514eec8b (patch)
tree9200eef9f09c86fd19929733ab45f1a3acee6152 /apps/codecs.h
parent984a6b023684de78e41dae320721b4b28f17f108 (diff)
downloadrockbox-1a41c8afeefd4884a5369c79808c68b3514eec8b.tar.gz
rockbox-1a41c8afeefd4884a5369c79808c68b3514eec8b.zip
SPC Codec: Run SPC emulation on COP and audio sample processing on CPU on dual-core PortalPlayer targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15673 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs.h')
-rw-r--r--apps/codecs.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index d2ba00ca2a..29ed2d351b 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -80,7 +80,7 @@
#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
/* increase this every time the api struct changes */
-#define CODEC_API_VERSION 20
+#define CODEC_API_VERSION 21
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -236,6 +236,23 @@ struct codec_api {
#endif
struct dsp_config *dsp;
+
+#if NUM_CORES > 1
+ struct thread_entry *
+ (*create_thread)(void (*function)(void), void* stack,
+ int stack_size, unsigned flags, const char *name
+ IF_PRIO(, int priority)
+ IF_COP(, unsigned int core));
+
+ void (*thread_thaw)(struct thread_entry *thread);
+ void (*thread_wait)(struct thread_entry *thread);
+ void (*semaphore_init)(struct semaphore *s, int max, int start);
+ void (*semaphore_wait)(struct semaphore *s);
+ void (*semaphore_release)(struct semaphore *s);
+ void (*event_init)(struct event *e, unsigned int flags);
+ void (*event_wait)(struct event *e, unsigned int for_state);
+ void (*event_set_state)(struct event *e, unsigned int state);
+#endif /* NUM_CORES */
};
/* codec header */