summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-06 00:34:07 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-06 00:34:07 +0000
commita12ccabf040f44c60fb677d7f5c969f55aaf8e2b (patch)
treee0d41740420be1ba05dd34f5ab0db85a056377f3 /apps
parenta9d62c34d7cbb9236c3a078f4380823d90abc674 (diff)
downloadrockbox-a12ccabf040f44c60fb677d7f5c969f55aaf8e2b.zip
rockbox-a12ccabf040f44c60fb677d7f5c969f55aaf8e2b.tar.gz
rockbox-a12ccabf040f44c60fb677d7f5c969f55aaf8e2b.tar.bz2
rockbox-a12ccabf040f44c60fb677d7f5c969f55aaf8e2b.tar.xz
Don't bitswap on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6583 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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);
}