From 97b9a4bad8169541d77cb4d5daf69a3290602d42 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Fri, 23 Jul 2010 23:47:22 +0000 Subject: 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 --- apps/codecs/libatrac/atrac3.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/codecs/libatrac') 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; -- cgit v1.2.3