summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/id3.h1
-rw-r--r--firmware/id3.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 8c91456040..2751fde6f5 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -153,6 +153,7 @@ struct mp3entry {
153 char* composer; 153 char* composer;
154 char* comment; 154 char* comment;
155 char* albumartist; 155 char* albumartist;
156 char* grouping;
156 int discnum; 157 int discnum;
157 int tracknum; 158 int tracknum;
158 int version; 159 int version;
diff --git a/firmware/id3.c b/firmware/id3.c
index a66318b2fc..851aa83a5a 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -460,7 +460,9 @@ static const struct tag_resolver taglist[] = {
460 { "TYE", 3, offsetof(struct mp3entry, year_string), &parseyearnum, false }, 460 { "TYE", 3, offsetof(struct mp3entry, year_string), &parseyearnum, false },
461 { "TCOM", 4, offsetof(struct mp3entry, composer), NULL, false }, 461 { "TCOM", 4, offsetof(struct mp3entry, composer), NULL, false },
462 { "TPE2", 4, offsetof(struct mp3entry, albumartist), NULL, false }, 462 { "TPE2", 4, offsetof(struct mp3entry, albumartist), NULL, false },
463 { "TP2", 3, offsetof(struct mp3entry, albumartist), NULL, false }, 463 { "TP2", 3, offsetof(struct mp3entry, albumartist), NULL, false },
464 { "TIT1", 4, offsetof(struct mp3entry, grouping), NULL, false },
465 { "TT1", 3, offsetof(struct mp3entry, grouping), NULL, false },
464 { "COMM", 4, offsetof(struct mp3entry, comment), NULL, false }, 466 { "COMM", 4, offsetof(struct mp3entry, comment), NULL, false },
465 { "TCON", 4, offsetof(struct mp3entry, genre_string), &parsegenre, false }, 467 { "TCON", 4, offsetof(struct mp3entry, genre_string), &parsegenre, false },
466 { "TCO", 3, offsetof(struct mp3entry, genre_string), &parsegenre, false }, 468 { "TCO", 3, offsetof(struct mp3entry, genre_string), &parsegenre, false },
@@ -1192,6 +1194,8 @@ void adjust_mp3entry(struct mp3entry *entry, void *dest, void *orig)
1192 entry->comment += offset; 1194 entry->comment += offset;
1193 if (entry->albumartist) 1195 if (entry->albumartist)
1194 entry->albumartist += offset; 1196 entry->albumartist += offset;
1197 if (entry->grouping)
1198 entry->grouping += offset;
1195#if CONFIG_CODEC == SWCODEC 1199#if CONFIG_CODEC == SWCODEC
1196 if (entry->track_gain_string) 1200 if (entry->track_gain_string)
1197 entry->track_gain_string += offset; 1201 entry->track_gain_string += offset;