diff options
| author | Nils Wallménius <nils@rockbox.org> | 2010-05-14 10:48:26 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2010-05-14 10:48:26 +0000 |
| commit | abd6b147cc958ba53e508a3b925d96f8bea0c457 (patch) | |
| tree | a1ff0e17e79b5ab1fb15e7a7ad7f5c2562e70f77 /apps/codecs/libmusepack | |
| parent | 92a6081531e9ff4ed7612eeaf18b20dc189e8754 (diff) | |
| download | rockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.zip rockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.tar.gz rockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.tar.bz2 rockbox-abd6b147cc958ba53e508a3b925d96f8bea0c457.tar.xz | |
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')
| -rw-r--r-- | apps/codecs/libmusepack/mpc_decoder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c index f403673..7032049 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; |