summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c2
-rw-r--r--apps/plugin.c3
-rw-r--r--apps/plugin.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index a0817d7..dfee05f 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 10cb926..bfb7f0e 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 113296c..aa39829 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 */