From d6c054575b4561b4c657565ecb4ff82565fa6c78 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 29 Aug 2005 21:15:27 +0000 Subject: Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'apps/codecs.h') diff --git a/apps/codecs.h b/apps/codecs.h index 47cd571..fe30955 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -43,7 +43,7 @@ #include "mpeg.h" #include "audio.h" #include "mp3_playback.h" -#if (HWCODEC == MASNONE) +#if (HWCODEC == SWCODEC) #include "pcm_playback.h" #endif #include "settings.h" @@ -234,10 +234,10 @@ struct codec_api { void (*mp3_play_pause)(bool play); void (*mp3_play_stop)(void); bool (*mp3_is_playing)(void); -#if CONFIG_HWCODEC != MASNONE +#if CONFIG_CODEC != SWCODEC void (*bitswap)(unsigned char *data, int length); #endif -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC void (*pcm_play_data)(void (*get_more)(unsigned char** start, long*size)); void (*pcm_play_stop)(void); void (*pcm_set_frequency)(unsigned int frequency); @@ -261,20 +261,20 @@ struct codec_api { struct mp3entry* (*audio_current_track)(void); void (*audio_flush_and_reload_tracks)(void); int (*audio_get_file_pos)(void); -#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) +#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) unsigned long (*mpeg_get_last_header)(void); #endif -#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) void (*sound_set_pitch)(int pitch); #endif /* MAS communication */ -#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE) +#if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len); int (*mas_readreg)(int reg); int (*mas_writereg)(int reg, unsigned int val); -#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) int (*mas_codec_writereg)(int reg, unsigned int val); int (*mas_codec_readreg)(int reg); #endif @@ -311,7 +311,7 @@ struct codec_api { long max_offset, unsigned long last_header); int (*battery_level)(void); bool (*battery_level_safe)(void); -#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) unsigned short (*peak_meter_scale_value)(unsigned short val, int meterwidth); void (*peak_meter_set_use_dbfs)(bool use); @@ -332,7 +332,7 @@ struct codec_api { }; /* defined by the codec loader (codec.c) */ -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap, struct codec_api *api); int codec_load_file(const char* codec, struct codec_api *api); -- cgit v1.1