diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-07-23 23:47:22 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-07-23 23:47:22 +0000 |
commit | 97b9a4bad8169541d77cb4d5daf69a3290602d42 (patch) | |
tree | 28edaeba97917ae79447a5b06d620c9e5966b886 /apps | |
parent | 7c33e1b4fecfe461c8d4c3d819517158a8e93fcc (diff) |
libatrac: Set the emac mode on coldfire, fixes whitenoise output if playing an atrac file after using a codec that sets macsr to integer mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27536 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/libatrac/atrac3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/libatrac/atrac3.c b/apps/codecs/libatrac/atrac3.c index 7e05a8b0e2..4c0b7d079f 100644 --- a/apps/codecs/libatrac/atrac3.c +++ b/apps/codecs/libatrac/atrac3.c @@ -1078,6 +1078,10 @@ int atrac3_decode_init(ATRAC3Context *q, struct mp3entry *id3) static VLC_TYPE atrac3_vlc_table[4096][2]; static int vlcs_initialized = 0; +#if defined(CPU_COLDFIRE) + coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); +#endif + /* Take data from the RM container. */ q->sample_rate = id3->frequency; q->channels = id3->channels; |