diff options
Diffstat (limited to 'apps/codecs/mpa.c')
-rw-r--r-- | apps/codecs/mpa.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 3140091434..c0e0f38c64 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c | |||
@@ -29,32 +29,32 @@ CODEC_HEADER | |||
29 | #define MPA_SYNTH_ON_COP | 29 | #define MPA_SYNTH_ON_COP |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | struct mad_stream stream IBSS_ATTR; | 32 | static struct mad_stream stream IBSS_ATTR; |
33 | struct mad_frame frame IBSS_ATTR; | 33 | static struct mad_frame frame IBSS_ATTR; |
34 | struct mad_synth synth IBSS_ATTR; | 34 | static struct mad_synth synth IBSS_ATTR; |
35 | 35 | ||
36 | #ifdef MPA_SYNTH_ON_COP | 36 | #ifdef MPA_SYNTH_ON_COP |
37 | volatile short die IBSS_ATTR = 0; /*thread should die*/ | 37 | static volatile short die IBSS_ATTR = 0; /*thread should die*/ |
38 | 38 | ||
39 | #if (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP5022) | 39 | #if (CONFIG_CPU == PP5024) || (CONFIG_CPU == PP5022) |
40 | mad_fixed_t sbsample_prev[2][36][32] IBSS_ATTR; | 40 | static mad_fixed_t sbsample_prev[2][36][32] IBSS_ATTR; |
41 | #else | 41 | #else |
42 | mad_fixed_t sbsample_prev[2][36][32] SHAREDBSS_ATTR; | 42 | static mad_fixed_t sbsample_prev[2][36][32] SHAREDBSS_ATTR; |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | struct semaphore synth_done_sem IBSS_ATTR; | 45 | static struct semaphore synth_done_sem IBSS_ATTR; |
46 | struct semaphore synth_pending_sem IBSS_ATTR; | 46 | static struct semaphore synth_pending_sem IBSS_ATTR; |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #define INPUT_CHUNK_SIZE 8192 | 49 | #define INPUT_CHUNK_SIZE 8192 |
50 | 50 | ||
51 | mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR; | 51 | static mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR; |
52 | mad_fixed_t sbsample[2][36][32] IBSS_ATTR; | 52 | static mad_fixed_t sbsample[2][36][32] IBSS_ATTR; |
53 | 53 | ||
54 | unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR; | 54 | static unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR; |
55 | /* TODO: what latency does layer 1 have? */ | 55 | /* TODO: what latency does layer 1 have? */ |
56 | int mpeg_latency[3] = { 0, 481, 529 }; | 56 | static int mpeg_latency[3] = { 0, 481, 529 }; |
57 | int mpeg_framesize[3] = {384, 1152, 1152}; | 57 | static int mpeg_framesize[3] = {384, 1152, 1152}; |
58 | 58 | ||
59 | static void init_mad(void) | 59 | static void init_mad(void) |
60 | { | 60 | { |