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
This commit is contained in:
Thom Johansen 2006-02-10 23:16:27 +00:00
parent 03410664bc
commit f16a9f3b31

View file

@ -638,7 +638,7 @@ void dsp_eq_update_data(bool enabled)
/* set emac unit for dsp processing, and save old macsr, we're running in
codec thread context at this point, so can't clobber it */
unsigned long old_macsr = coldfire_get_macsr();
coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE | EMAC_ROUND);
#endif
/* Iterate over each band and update the appropriate filter */