diff options
Diffstat (limited to 'apps/codecs/aiff_enc.c')
-rw-r--r-- | apps/codecs/aiff_enc.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/codecs/aiff_enc.c b/apps/codecs/aiff_enc.c index 8b6e2217c9..4f9e0e06e2 100644 --- a/apps/codecs/aiff_enc.c +++ b/apps/codecs/aiff_enc.c | |||
@@ -24,14 +24,6 @@ | |||
24 | 24 | ||
25 | CODEC_ENC_HEADER | 25 | CODEC_ENC_HEADER |
26 | 26 | ||
27 | #ifdef USE_IRAM | ||
28 | extern char iramcopy[]; | ||
29 | extern char iramstart[]; | ||
30 | extern char iramend[]; | ||
31 | extern char iedata[]; | ||
32 | extern char iend[]; | ||
33 | #endif | ||
34 | |||
35 | struct aiff_header | 27 | struct aiff_header |
36 | { | 28 | { |
37 | uint8_t form_id[4]; /* 00h - 'FORM' */ | 29 | uint8_t form_id[4]; /* 00h - 'FORM' */ |
@@ -77,7 +69,6 @@ struct aiff_header aiff_header = | |||
77 | 69 | ||
78 | /* (*) updated when finalizing file */ | 70 | /* (*) updated when finalizing file */ |
79 | 71 | ||
80 | static struct codec_api *ci; | ||
81 | static int num_channels; | 72 | static int num_channels; |
82 | uint32_t sample_rate; | 73 | uint32_t sample_rate; |
83 | uint32_t enc_size; | 74 | uint32_t enc_size; |
@@ -332,17 +323,10 @@ static bool init_encoder(void) | |||
332 | } /* init_encoder */ | 323 | } /* init_encoder */ |
333 | 324 | ||
334 | /* main codec entry point */ | 325 | /* main codec entry point */ |
335 | enum codec_status codec_start(struct codec_api* api) | 326 | enum codec_status codec_start(void) |
336 | { | 327 | { |
337 | bool cpu_boosted; | 328 | bool cpu_boosted; |
338 | 329 | ||
339 | ci = api; /* copy to global api pointer */ | ||
340 | |||
341 | #ifdef USE_IRAM | ||
342 | ci->memcpy(iramstart, iramcopy, iramend - iramstart); | ||
343 | ci->memset(iedata, 0, iend - iedata); | ||
344 | #endif | ||
345 | |||
346 | if (!init_encoder()) | 330 | if (!init_encoder()) |
347 | { | 331 | { |
348 | ci->enc_codec_loaded = -1; | 332 | ci->enc_codec_loaded = -1; |