summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--apps/talk.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 81830a8..f965a94 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -230,8 +230,10 @@ static const struct plugin_api rockbox_api = {
mp3_play_pause,
mp3_play_stop,
mp3_is_playing,
+#if CONFIG_HWCODEC != MASNONE
bitswap,
#endif
+#endif
/* playback control */
PREFIX(audio_play),
diff --git a/apps/plugin.h b/apps/plugin.h
index ada71bf..d6e1813 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -276,8 +276,10 @@ struct plugin_api {
void (*mp3_play_pause)(bool play);
void (*mp3_play_stop)(void);
bool (*mp3_is_playing)(void);
+#if CONFIG_HWCODEC != MASNONE
void (*bitswap)(unsigned char *data, int length);
#endif
+#endif
/* playback control */
void (*PREFIX(audio_play))(int offset);
diff --git a/apps/talk.c b/apps/talk.c
index b6e2ec5..a896ca3 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -497,7 +497,9 @@ int talk_file(const char* filename, bool enqueue)
if (size)
{
+#if CONFIG_HWCODEC != MASNONE
bitswap(p_thumbnail, size);
+#endif
queue_clip(p_thumbnail, size, enqueue);
}