summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmusepack/mpc_decoder.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-05-14 10:48:26 +0000
committerNils Wallménius <nils@rockbox.org>2010-05-14 10:48:26 +0000
commitabd6b147cc958ba53e508a3b925d96f8bea0c457 (patch)
treea1ff0e17e79b5ab1fb15e7a7ad7f5c2562e70f77 /apps/codecs/libmusepack/mpc_decoder.c
parent92a6081531e9ff4ed7612eeaf18b20dc189e8754 (diff)
downloadrockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.tar.gz
rockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.zip
Restor setting of EMAC mode on coldfire lost in r25056 fixes whitenoise when transitioning from a codec using a different EMAC mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/mpc_decoder.c')
-rw-r--r--apps/codecs/libmusepack/mpc_decoder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c
index f403673818..7032049c7a 100644
--- a/apps/codecs/libmusepack/mpc_decoder.c
+++ b/apps/codecs/libmusepack/mpc_decoder.c
@@ -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;