diff options
Diffstat (limited to 'firmware/drivers/audio')
-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 f4c622d7a6..7d6d7452df 100644 --- a/firmware/drivers/audio/sdl.c +++ b/firmware/drivers/audio/sdl.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <SDL_audio.h> | 22 | #include <SDL_audio.h> |
23 | #include "config.h" | 23 | #include "config.h" |
24 | #include "audiohw.h" | 24 | #include "audiohw.h" |
25 | #include "pcm_sampr.h" | ||
25 | 26 | ||
26 | /** | 27 | /** |
27 | * Audio Hardware api. Make them do nothing as we cannot properly simulate with | 28 | * 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) | |||
162 | void audiohw_set_depth_3d(int value) | 163 | void audiohw_set_depth_3d(int value) |
163 | { (void)value; } | 164 | { (void)value; } |
164 | #endif | 165 | #endif |
165 | #if defined(HAVE_SAMPR_TYPE_REC) | 166 | #ifdef HAVE_RECORDING |
166 | unsigned int pcm_sampr_type_rec_to_play(int samplerate) | 167 | #if SAMPR_TYPE_REC != 0 |
168 | unsigned int pcm_sampr_type_rec_to_play(unsigned int samplerate) | ||
167 | { return samplerate; } | 169 | { return samplerate; } |
168 | #endif | 170 | #endif |
171 | #endif /* HAVE_RECORDING */ | ||
169 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | 172 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) |
170 | int mas_codec_readreg(int reg) | 173 | int mas_codec_readreg(int reg) |
171 | { | 174 | { |