diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-06-26 10:37:41 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-06-26 10:37:41 +0000 |
| commit | e0bb92f00fdbcfd726407c688f5d82d3fa470a99 (patch) | |
| tree | cefba4ff20c1d1bee274a6a4af4b16abc232679a /firmware/drivers | |
| parent | c3eca575b637201658dc7a1222c17b144d19686d (diff) | |
| download | rockbox-e0bb92f00fdbcfd726407c688f5d82d3fa470a99.zip rockbox-e0bb92f00fdbcfd726407c688f5d82d3fa470a99.tar.gz rockbox-e0bb92f00fdbcfd726407c688f5d82d3fa470a99.tar.bz2 rockbox-e0bb92f00fdbcfd726407c688f5d82d3fa470a99.tar.xz | |
Should clear up rest of red. Add a required #define in the config for c200. Fix up some preprocessing directives. Hope it's all taken care of now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27141 a1c6a512-1295-4272-9138-f99709370657
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) { |