From a12ccabf040f44c60fb677d7f5c969f55aaf8e2b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 6 Jun 2005 00:34:07 +0000 Subject: [PATCH] Don't bitswap on the iRiver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6583 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 2 ++ apps/plugin.h | 2 ++ apps/talk.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index 81830a8823..f965a94fad 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -230,7 +230,9 @@ 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 */ diff --git a/apps/plugin.h b/apps/plugin.h index ada71bf059..d6e181393f 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -276,7 +276,9 @@ 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 */ diff --git a/apps/talk.c b/apps/talk.c index b6e2ec57a1..a896ca3a1a 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); }