summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 63097a2..e7758df 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -292,9 +292,11 @@ static const struct plugin_api rockbox_api = {
pcm_set_frequency,
pcm_is_playing,
pcm_play_pause,
- pcm_calculate_peaks,
#endif
#endif
+#if CONFIG_CODEC == SWCODEC
+ pcm_calculate_peaks,
+#endif
/* playback control */
PREFIX(audio_play),