diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-05-14 11:08:59 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-05-14 11:08:59 +0000 |
commit | 800e71025894ac1b64644d4ec9bd5275baf255f8 (patch) | |
tree | 1e4160ec2ea7d68e4ef4f35909631f08adc02f1d /apps/codecs | |
parent | 32794a9eef4c77e65bbd4e8b85040fc0a6f00d63 (diff) |
Set up EMAC mode in cook, fixing whitenois when transitioning from a codec using different emac mode.'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26016 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libcook/cook.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/codecs/libcook/cook.c b/apps/codecs/libcook/cook.c index 814250ea32..cc0b920222 100644 --- a/apps/codecs/libcook/cook.c +++ b/apps/codecs/libcook/cook.c @@ -724,9 +724,11 @@ static void dump_cook_context(COOKContext *q) * Cook initialization */ - int cook_decode_init(RMContext *rmctx, COOKContext *q) - { - +int cook_decode_init(RMContext *rmctx, COOKContext *q) +{ +#if defined(CPU_COLDFIRE) + coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); +#endif /* cook extradata */ q->cookversion = rm_get_uint32be(rmctx->codec_extradata); q->samples_per_frame = rm_get_uint16be(&rmctx->codec_extradata[4]); |