diff options
author | Thom Johansen <thomj@rockbox.org> | 2005-09-07 00:24:27 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2005-09-07 00:24:27 +0000 |
commit | 735208a541df024f1cd3b9624054b6ed9724ad1e (patch) | |
tree | 01b8b91e8f473207553e2c94a5f6f00a6f60f3b4 /apps/codecs/libmusepack | |
parent | 4cd06c41f62c217681ec91557e89dc4461bab6d3 (diff) | |
download | rockbox-735208a541df024f1cd3b9624054b6ed9724ad1e.tar.gz rockbox-735208a541df024f1cd3b9624054b6ed9724ad1e.zip |
Adapted codecs and DSP system to having MACSR saved in thread context.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7485 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack')
-rw-r--r-- | apps/codecs/libmusepack/mpc_decoder.c | 4 | ||||
-rw-r--r-- | apps/codecs/libmusepack/synth_filter.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c index 0c8b8b76a7..a37dc4583c 100644 --- a/apps/codecs/libmusepack/mpc_decoder.c +++ b/apps/codecs/libmusepack/mpc_decoder.c | |||
@@ -1173,6 +1173,10 @@ void mpc_decoder_setup(mpc_decoder *d, mpc_reader *r) | |||
1173 | mpc_decoder_initialisiere_quantisierungstabellen(d, 1.0f); | 1173 | mpc_decoder_initialisiere_quantisierungstabellen(d, 1.0f); |
1174 | mpc_decoder_init_huffman_sv6(d); | 1174 | mpc_decoder_init_huffman_sv6(d); |
1175 | mpc_decoder_init_huffman_sv7(d); | 1175 | mpc_decoder_init_huffman_sv7(d); |
1176 | |||
1177 | #if defined(CPU_COLDFIRE)&& !defined(SIMULATOR) | ||
1178 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_ROUND | EMAC_SATURATE); | ||
1179 | #endif | ||
1176 | } | 1180 | } |
1177 | 1181 | ||
1178 | static void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si) | 1182 | static void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si) |
diff --git a/apps/codecs/libmusepack/synth_filter.c b/apps/codecs/libmusepack/synth_filter.c index 7644551d16..51ffcce921 100644 --- a/apps/codecs/libmusepack/synth_filter.c +++ b/apps/codecs/libmusepack/synth_filter.c | |||
@@ -335,9 +335,6 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL | |||
335 | { | 335 | { |
336 | mpc_uint32_t n; | 336 | mpc_uint32_t n; |
337 | 337 | ||
338 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) | ||
339 | asm volatile ("move.l #0x20, %macsr"); /* fractional emac mode */ | ||
340 | #endif | ||
341 | for ( n = 0; n < 36; n++, Y += 32 ) { | 338 | for ( n = 0; n < 36; n++, Y += 32 ) { |
342 | V -= 64; | 339 | V -= 64; |
343 | Calculate_New_V ( Y, V ); | 340 | Calculate_New_V ( Y, V ); |