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 --- firmware/id3.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'firmware/id3.c') diff --git a/firmware/id3.c b/firmware/id3.c index 90500663c1..8685d86790 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -83,14 +83,14 @@ static const char* const codec_labels[] = { "ERR", /* Invalid codec type */ "???", /* Unknown file format */ -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC "MP1", /* MPEG Audio layer 1 */ #endif "MP2", /* MPEG Audio layer 2 */ "MP3", /* MPEG Audio layer 3 */ -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC "WAV", /* Uncompressed PCM in a WAV file */ "OGG", /* Ogg Vorbis */ "FLAC", /* FLAC */ @@ -310,7 +310,7 @@ static int parsegenre( struct mp3entry* entry, char* tag, int bufferpos ) } } -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC /* parse user defined text, looking for replaygain information. */ static int parseuser( struct mp3entry* entry, char* tag, int bufferpos ) { @@ -352,7 +352,7 @@ static const struct tag_resolver taglist[] = { { "TCOM", 4, offsetof(struct mp3entry, composer), NULL }, { "TCON", 4, offsetof(struct mp3entry, genre_string), &parsegenre }, { "TCO", 3, offsetof(struct mp3entry, genre_string), &parsegenre }, -#if CONFIG_HWCODEC == MASNONE +#if CONFIG_CODEC == SWCODEC { "TXXX", 4, 0, &parseuser }, #endif }; @@ -885,7 +885,7 @@ static int getsonglength(int fd, struct mp3entry *entry) entry->version = info.version; entry->layer = info.layer; switch(entry->layer) { -#if CONFIG_HWCODEC==MASNONE +#if CONFIG_CODEC==SWCODEC case 0: entry->codectype=AFMT_MPA_L1; break; @@ -947,7 +947,7 @@ bool mp3info(struct mp3entry *entry, const char *filename, bool v1first) if(-1 == fd) return true; -#if CONFIG_HWCODEC != MASNONE +#if CONFIG_CODEC != SWCODEC memset(entry, 0, sizeof(struct mp3entry)); #endif -- cgit v1.2.3