Restor setting of EMAC mode on coldfire lost in r25056 fixes whitenoise when transiti...
authornls <nls@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 10:48:26 +0000 (14 10:48 +0000)
committernls <nls@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 10:48:26 +0000 (14 10:48 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26013 a1c6a512-1295-4272-9138-f99709370657

apps/codecs/libmusepack/mpc_decoder.c

index f403673..7032049 100644 (file)
@@ -35,6 +35,7 @@
 /// Core decoding routines and logic.
 
 #include <string.h>
+#include <codecs.h>
 #include "mpcdec.h"
 #include "minimax.h"
 #include "decoder.h"
@@ -227,6 +228,10 @@ void mpc_decoder_reset_scf(mpc_decoder * d, int value)
 
 static void mpc_decoder_setup(mpc_decoder *d)
 {
+#if defined(CPU_COLDFIRE)
+    coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
+#endif
+
     memset(d, 0, sizeof *d);
 
     d->__r1 = 1;