diff options
Diffstat (limited to 'firmware/drivers')
| -rw-r--r-- | firmware/drivers/audio/sdl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/drivers/audio/sdl.c b/firmware/drivers/audio/sdl.c index f4c622d..7d6d745 100644 --- a/firmware/drivers/audio/sdl.c +++ b/firmware/drivers/audio/sdl.c @@ -22,6 +22,7 @@ #include <SDL_audio.h> #include "config.h" #include "audiohw.h" +#include "pcm_sampr.h" /** * Audio Hardware api. Make them do nothing as we cannot properly simulate with @@ -162,10 +163,12 @@ void audiohw_set_eq_band_width(unsigned int band, int value) void audiohw_set_depth_3d(int value) { (void)value; } #endif -#if defined(HAVE_SAMPR_TYPE_REC) -unsigned int pcm_sampr_type_rec_to_play(int samplerate) +#ifdef HAVE_RECORDING +#if SAMPR_TYPE_REC != 0 +unsigned int pcm_sampr_type_rec_to_play(unsigned int samplerate) { return samplerate; } #endif +#endif /* HAVE_RECORDING */ #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) int mas_codec_readreg(int reg) { |