summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/wmadec.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwma/wmadec.h')
-rw-r--r--apps/codecs/libwma/wmadec.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/apps/codecs/libwma/wmadec.h b/apps/codecs/libwma/wmadec.h
index d7fa79d268..76429dede1 100644
--- a/apps/codecs/libwma/wmadec.h
+++ b/apps/codecs/libwma/wmadec.h
@@ -51,16 +51,27 @@
51 51
52#define LSP_POW_BITS 7 52#define LSP_POW_BITS 7
53 53
54/*define IRAM for targets with 48k/80k IRAM split*/ 54
55#ifndef IBSS_ATTR_WMA_LARGE_IRAM 55#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || (CONFIG_CPU == MCF5250)
56#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X) || (CONFIG_CPU == MCF5250) 56/* PP5022/24 and MCF5250 have 128KB of IRAM. 80KB are allocated for codecs */
57/* PP5022/24, MCF5250 have 128KB of IRAM. 80KB are allocated for codecs */ 57#define IBSS_ATTR_WMA_LARGE_IRAM IBSS_ATTR
58#define IBSS_ATTR_WMA_XL_IRAM
59#define ICONST_ATTR_WMA_XL_IRAM
60
61#elif defined(CPU_S5L870X)
62/* S5L870x has even more IRAM. Use it. */
58#define IBSS_ATTR_WMA_LARGE_IRAM IBSS_ATTR 63#define IBSS_ATTR_WMA_LARGE_IRAM IBSS_ATTR
64#define IBSS_ATTR_WMA_XL_IRAM IBSS_ATTR
65#define ICONST_ATTR_WMA_XL_IRAM ICONST_ATTR
66
59#else 67#else
60/* other PP's and MCF5249 have 96KB of IRAM */ 68/* other PP's and MCF5249 have 96KB of IRAM */
61#define IBSS_ATTR_WMA_LARGE_IRAM 69#define IBSS_ATTR_WMA_LARGE_IRAM
70#define IBSS_ATTR_WMA_XL_IRAM
71#define ICONST_ATTR_WMA_XL_IRAM
72
62#endif 73#endif
63#endif 74
64 75
65#define VLCBITS 7 /*7 is the lowest without glitching*/ 76#define VLCBITS 7 /*7 is the lowest without glitching*/
66#define VLCMAX ((22+VLCBITS-1)/VLCBITS) 77#define VLCMAX ((22+VLCBITS-1)/VLCBITS)