Remove pointless IRAM allocation from voice DSP.

It's always used in MONO mode and doesn't need the IRAM sample/
resample buffers and 1280 bytes can be freed.

M5 can now have its PCM mixer downmix buffer in IRAM.

Change-Id: I0af08be5b212b7dfe382bba588a6585eb328a038
This commit is contained in:
Michael Sevakis 2012-05-04 22:00:44 -04:00
parent dbe5e5f2df
commit 88aeef9127
4 changed files with 67 additions and 14 deletions

View file

@ -40,8 +40,7 @@
#define MIX_FRAME_SAMPLES 256
#endif
/* IAUDIO_M5 is very tight on IRAM */
#if (defined(CPU_COLDFIRE) && !defined(IAUDIO_M5)) || defined(CPU_PP)
#if defined(CPU_COLDFIRE) || defined(CPU_PP)
/* For Coldfire, it's just faster
For PortalPlayer, this also avoids more expensive cache coherency */
#define DOWNMIX_BUF_IBSS IBSS_ATTR