From 6b807b2d248baee699eb2b5e43344cd278a7f01d Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 30 Jul 2005 13:46:38 +0000 Subject: Fixed MAC initialization problem with mpa codec and removed workaround for that bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7260 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/mpa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/codecs/mpa.c') diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index fb47822..8cfd6ef 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -24,6 +24,7 @@ #include "playback.h" #include "dsp.h" #include "lib/codeclib.h" +#include "system.h" struct mad_stream Stream IDATA_ATTR; struct mad_frame Frame IDATA_ATTR; @@ -92,7 +93,10 @@ enum codec_status codec_start(struct codec_api* api) ci->memset(&Frame, 0, sizeof(struct mad_frame)); ci->memset(&Synth, 0, sizeof(struct mad_synth)); ci->memset(&Timer, 0, sizeof(mad_timer_t)); - + +#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) + mcf5249_init_mac(); +#endif mad_stream_init(&Stream); mad_frame_init(&Frame); mad_synth_init(&Synth); -- cgit v1.1