Set up EMAC mode in cook, fixing whitenois when transitioning from a codec using...
authornls <nls@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 11:08:59 +0000 (14 11:08 +0000)
committernls <nls@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 11:08:59 +0000 (14 11:08 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26016 a1c6a512-1295-4272-9138-f99709370657

apps/codecs/libcook/cook.c

index 814250e..cc0b920 100644 (file)
@@ -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]);