summaryrefslogtreecommitdiff
path: root/apps/codecs/aiff_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/aiff_enc.c')
-rw-r--r--apps/codecs/aiff_enc.c18
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
25CODEC_ENC_HEADER 25CODEC_ENC_HEADER
26 26
27#ifdef USE_IRAM
28extern char iramcopy[];
29extern char iramstart[];
30extern char iramend[];
31extern char iedata[];
32extern char iend[];
33#endif
34
35struct aiff_header 27struct 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
80static struct codec_api *ci;
81static int num_channels; 72static int num_channels;
82uint32_t sample_rate; 73uint32_t sample_rate;
83uint32_t enc_size; 74uint32_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 */
335enum codec_status codec_start(struct codec_api* api) 326enum 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;