summaryrefslogtreecommitdiff
path: root/firmware/id3.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/id3.c')
-rw-r--r--firmware/id3.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index d63acbb8aa..181ce97c6c 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -143,10 +143,10 @@ const int afmt_rec_format[AFMT_NUM_CODECS] =
143#endif /* CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING) */ 143#endif /* CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING) */
144/****/ 144/****/
145 145
146unsigned long unsync(unsigned long b0, 146static unsigned long unsync(unsigned long b0,
147 unsigned long b1, 147 unsigned long b1,
148 unsigned long b2, 148 unsigned long b2,
149 unsigned long b3) 149 unsigned long b3)
150{ 150{
151 return (((long)(b0 & 0x7F) << (3*7)) | 151 return (((long)(b0 & 0x7F) << (3*7)) |
152 ((long)(b1 & 0x7F) << (2*7)) | 152 ((long)(b1 & 0x7F) << (2*7)) |
@@ -199,15 +199,6 @@ static bool id3_is_genre_string(const char *string)
199 string <= genres[sizeof(genres)/sizeof(char*) - 1] ); 199 string <= genres[sizeof(genres)/sizeof(char*) - 1] );
200} 200}
201 201
202char* id3_get_codec(const struct mp3entry* id3)
203{
204 if (id3->codectype < AFMT_NUM_CODECS) {
205 return (char*)audio_formats[id3->codectype].label;
206 } else {
207 return NULL;
208 }
209}
210
211/* 202/*
212 HOW TO ADD ADDITIONAL ID3 VERSION 2 TAGS 203 HOW TO ADD ADDITIONAL ID3 VERSION 2 TAGS
213 Code and comments by Thomas Paul Diffenbach 204 Code and comments by Thomas Paul Diffenbach