diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-02-10 23:16:27 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-02-10 23:16:27 +0000 |
commit | f16a9f3b313ca55cf2b9f02a1724e8305e204ef0 (patch) | |
tree | 9bcad76a205ec939325ebe397e49a89b90e0c6e6 | |
parent | 03410664bc3fbba2412ef7226b78ba2d75f6a6f3 (diff) | |
download | rockbox-f16a9f3b313ca55cf2b9f02a1724e8305e204ef0.tar.gz rockbox-f16a9f3b313ca55cf2b9f02a1724e8305e204ef0.zip |
Use EMAC rounding mode in EQ coef calc for better precision.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8655 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dsp.c b/apps/dsp.c index 9a074d9214..7ea9ecfafd 100644 --- a/apps/dsp.c +++ b/apps/dsp.c | |||
@@ -638,7 +638,7 @@ void dsp_eq_update_data(bool enabled) | |||
638 | /* set emac unit for dsp processing, and save old macsr, we're running in | 638 | /* set emac unit for dsp processing, and save old macsr, we're running in |
639 | codec thread context at this point, so can't clobber it */ | 639 | codec thread context at this point, so can't clobber it */ |
640 | unsigned long old_macsr = coldfire_get_macsr(); | 640 | unsigned long old_macsr = coldfire_get_macsr(); |
641 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); | 641 | coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE | EMAC_ROUND); |
642 | #endif | 642 | #endif |
643 | 643 | ||
644 | /* Iterate over each band and update the appropriate filter */ | 644 | /* Iterate over each band and update the appropriate filter */ |