diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c index 8163295661..994b223d43 100644 --- a/firmware/target/arm/audio-pp.c +++ b/firmware/target/arm/audio-pp.c @@ -29,6 +29,7 @@ void audio_set_output_source(int source) void audio_set_source(int source, unsigned flags) { + (void)flags; /* Prevent pops from unneeded switching */ static int last_source = AUDIO_SRC_PLAYBACK; #ifdef CONFIG_TUNER @@ -39,6 +40,7 @@ void audio_set_source(int source, unsigned flags) { default: /* playback - no recording */ source = AUDIO_SRC_PLAYBACK; +#ifdef HAVE_RECORDING case AUDIO_SRC_PLAYBACK: if (source != last_source) { @@ -46,7 +48,6 @@ void audio_set_source(int source, unsigned flags) audiohw_set_monitor(false); } break; - case AUDIO_SRC_MIC: /* recording only */ if (source != last_source) { @@ -62,6 +63,7 @@ void audio_set_source(int source, unsigned flags) audiohw_set_monitor(false); } break; +#endif #ifdef CONFIG_TUNER case AUDIO_SRC_FMRADIO: /* recording and playback */ if (!recording) diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c index 77dedc1535..d05884e8eb 100644 --- a/firmware/target/arm/pcm-pp.c +++ b/firmware/target/arm/pcm-pp.c @@ -32,8 +32,10 @@ /* peaks */ +#ifdef HAVE_RECORDING static unsigned long *rec_peak_addr; static int rec_peak_left, rec_peak_right; +#endif /** DMA **/ #if CONFIG_CPU == PP5020 @@ -356,6 +358,7 @@ void pcm_init(void) /**************************************************************************** ** Recording DMA transfer **/ +#ifdef HAVE_RECORDING static short peak_l, peak_r IBSS_ATTR; void fiq_record(void) ICODE_ATTR __attribute__ ((interrupt ("FIQ"))); @@ -502,6 +505,7 @@ void pcm_calculate_rec_peaks(int *left, int *right) *left = rec_peak_left; *right = rec_peak_right; } +#endif /* * This function goes directly into the DMA buffer to calculate the left and