From 7996d6d3f99ad80385fdc85438d23139e5569d3c Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 29 Jun 2011 07:06:10 +0000 Subject: [PATCH] Knock out at least some red/yellow from r30097. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30098 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 2 ++ apps/plugin.c | 3 ++- apps/plugin.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/misc.c b/apps/misc.c index a0817d7e27..dfee05fb5a 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -264,7 +264,9 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) #endif { bool batt_safe = battery_level_safe(); +#if CONFIG_CODEC != SWCODEC || defined(HAVE_RECORDING) int audio_stat = audio_status(); +#endif FOR_NB_SCREENS(i) { diff --git a/apps/plugin.c b/apps/plugin.c index 10cb9263a4..bfb7f0e9c1 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -778,9 +778,10 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - +#if CONFIG_CODEC == SWCODEC mixer_channel_status, mixer_channel_get_buffer, +#endif }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 113296c19a..aa39829daf 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -908,8 +908,10 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ +#if CONFIG_CODEC == SWCODEC enum channel_status (*mixer_channel_status)(enum pcm_mixer_channel channel); void * (*mixer_channel_get_buffer)(enum pcm_mixer_channel channel, int *count); +#endif }; /* plugin header */