diff options
Diffstat (limited to 'apps/codecs/libwmapro/wmaprodec.h')
-rw-r--r-- | apps/codecs/libwmapro/wmaprodec.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/codecs/libwmapro/wmaprodec.h b/apps/codecs/libwmapro/wmaprodec.h index e30205cd35..d8398fc9f1 100644 --- a/apps/codecs/libwmapro/wmaprodec.h +++ b/apps/codecs/libwmapro/wmaprodec.h | |||
@@ -7,24 +7,36 @@ | |||
7 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR | 7 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR |
8 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM | 8 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM |
9 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR | 9 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR |
10 | #define IBSS_ATTR_WMAPRO_VLC_TABLES | ||
10 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP | 11 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP |
11 | 12 | ||
12 | #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X) | 13 | #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) |
13 | /* Enough IRAM to move additional data and code to it. */ | 14 | /* Enough IRAM to move additional data and code to it. */ |
14 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR | 15 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR |
15 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR | 16 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR |
16 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR | 17 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR |
18 | #define IBSS_ATTR_WMAPRO_VLC_TABLES | ||
17 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP | 19 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP |
18 | 20 | ||
21 | #elif defined(CPU_S5L870X) | ||
22 | /* Enough IRAM to move additional data and code to it. */ | ||
23 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR | ||
24 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR | ||
25 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR | ||
26 | #define IBSS_ATTR_WMAPRO_VLC_TABLES IBSS_ATTR | ||
27 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP ICONST_ATTR | ||
28 | |||
19 | #else | 29 | #else |
20 | /* Not enough IRAM available. */ | 30 | /* Not enough IRAM available. */ |
21 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM | 31 | #define IBSS_ATTR_WMAPRO_LARGE_IRAM |
22 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM | 32 | #define ICODE_ATTR_WMAPRO_LARGE_IRAM |
23 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM | 33 | #define ICONST_ATTR_WMAPRO_LARGE_IRAM |
34 | #define IBSS_ATTR_WMAPRO_VLC_TABLES | ||
24 | /* Models with large IRAM put tmp to IRAM rather than window coefficients as | 35 | /* Models with large IRAM put tmp to IRAM rather than window coefficients as |
25 | * this is the fastest option. On models with smaller IRAM the 2nd-best option | 36 | * this is the fastest option. On models with smaller IRAM the 2nd-best option |
26 | * is to move the window coefficients to IRAM. */ | 37 | * is to move the window coefficients to IRAM. */ |
27 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP ICONST_ATTR | 38 | #define ICONST_ATTR_WMAPRO_WIN_VS_TMP ICONST_ATTR |
39 | |||
28 | #endif | 40 | #endif |
29 | 41 | ||
30 | int decode_init(asf_waveformatex_t *wfx); | 42 | int decode_init(asf_waveformatex_t *wfx); |