FreeCalypso > hg > tcs211-l1-reconst
annotate chipsetsw/layer1/audio_cfile/l1audio_init.c @ 276:59ceed02f7df
g23m/copyblobs.sh: l1audio_sync.obj deblobbed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 14 Mar 2017 04:15:55 +0000 |
parents | 6a71281f0d82 |
children |
rev | line source |
---|---|
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
1 /************* Revision Controle System Header ************* |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
2 * GSM Layer 1 software |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
3 * L1AUDIO_INIT.C |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
4 * |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
5 * Filename l1audio_init.c |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
6 * Copyright 2003 (C) Texas Instruments |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
7 * |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
8 ************* Revision Controle System Header *************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
9 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
10 /************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
11 /* Include files... */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
12 /************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
13 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
14 #include "l1_macro.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
15 #include "l1_confg.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
16 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
17 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
18 #include "l1_types.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
19 #include "sys_types.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
20 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
21 #if (CODE_VERSION == SIMULATION) && (AUDIO_SIMULATION) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
22 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
23 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
24 #include <stdlib.h> |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
25 #include <string.h> |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
26 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
27 #include "iq.h" // Debug / Init hardware ("eva3.lib") |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
28 #include "l1_ver.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
29 #include "l1_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
30 #include "l1_signa.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
31 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
32 #if TESTMODE |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
33 #include "l1tm_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
34 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
35 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
36 #include "l1audio_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
37 #include "l1audio_cust.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
38 #include "l1audio_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
39 #include "l1audio_msgty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
40 #include "l1audio_varex.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
41 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
42 #if (L1_GTT == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
43 #include "l1gtt_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
44 #include "l1gtt_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
45 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
46 //added here from e-sample for AAC |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
47 #if (L1_DYN_DSP_DWNLD == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
48 #include "l1_dyn_dwl_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
49 #include "l1_dyn_dwl_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
50 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
51 #if (L1_MP3 == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
52 #include "l1mp3_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
53 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
54 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
55 #if (L1_MIDI == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
56 #include "l1midi_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
57 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
58 //added here from e-sample for AAC |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
59 #if (L1_AAC == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
60 #include "l1aac_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
61 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
62 #include "l1_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
63 #include "cust_os.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
64 #include "l1_msgty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
65 #include "l1_varex.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
66 #include "l1_mftab.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
67 #include "l1_tabs.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
68 #include "l1_ctl.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
69 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
70 #include "l1_time.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
71 #include "l1_scen.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
72 #else // NOT SIMULATION |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
73 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
74 // Layer1 and debug include files. |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
75 #include <ctype.h> |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
76 #include <math.h> |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
77 #include "l1_ver.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
78 #include "l1_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
79 #include "l1_signa.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
80 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
81 #if TESTMODE |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
82 #include "l1tm_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
83 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
84 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
85 #include "l1audio_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
86 #include "l1audio_cust.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
87 #include "l1audio_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
88 #include "l1audio_msgty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
89 #include "l1audio_varex.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
90 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
91 #if (L1_GTT == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
92 #include "l1gtt_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
93 #include "l1gtt_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
94 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
95 //added here from e-sample for AAC |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
96 #if (L1_DYN_DSP_DWNLD == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
97 #include "l1_dyn_dwl_const.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
98 #include "l1_dyn_dwl_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
99 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
100 #if (L1_MP3 == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
101 #include "l1mp3_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
102 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
103 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
104 #if (L1_MIDI == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
105 #include "l1midi_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
106 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
107 //added here from e-sample for AAC |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
108 #if (L1_AAC == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
109 #include "l1aac_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
110 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
111 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
112 #include "l1_defty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
113 #include "cust_os.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
114 #include "l1_msgty.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
115 #include "tpudrv.h" // TPU drivers. ("eva3.lib") |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
116 #include "l1_varex.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
117 #include "l1_proto.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
118 #include "l1_mftab.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
119 #include "l1_tabs.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
120 #include "mem.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
121 #include "armio.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
122 #include "timer.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
123 #include "timer1.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
124 #include "dma.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
125 #include "inth.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
126 #include "ulpd.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
127 #include "rhea_arm.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
128 #include "clkm.h" // Clockm ("eva3.lib") |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
129 #include "l1_ctl.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
130 #include "l1_time.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
131 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
132 #if L2_L3_SIMUL |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
133 #include "l1_scen.h" |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
134 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
135 #endif // NOT_SIMULATION |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
136 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
137 #if (L1_DRC == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
138 extern T_DRC_MCU_DSP *drc_ndb; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
139 #if (CODE_VERSION == SIMULATION) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
140 extern T_DRC_MCU_DSP drc_ndb_sim; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
141 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
142 #endif |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
143 |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
144 #if(L1_BT_AUDIO ==1) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
145 extern T_L1_BT_AUDIO bt_audio; |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
146 #endif |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
147 |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
148 /**************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
149 /* Prototypes for L1 initialization */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
150 /**************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
151 void l1audio_dsp_init (void); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
152 void l1audio_initialize_var (void); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
153 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
154 /**************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
155 /* External prototypes */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
156 /**************************************/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
157 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
158 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
159 /* l1audio_dsp_init() */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
160 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
161 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
162 /* Parameters : */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
163 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
164 /* Return : */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
165 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
166 /* Description : Initialize the part of the API */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
167 /* dedicated to the audio task. */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
168 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
169 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
170 void l1audio_dsp_init(void) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
171 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
172 UWORD8 i, j; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
173 |
182
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
174 //----------------------------------- |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
175 // AUDIO control words initialization |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
176 //----------------------------------- |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
177 l1s_dsp_com.dsp_ndb_ptr->d_toneskb_init = 0; // MCU/DSP audio task com. register |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
178 l1s_dsp_com.dsp_ndb_ptr->d_toneskb_status = 0; // MCU/DSP audio task com. register |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
179 |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
180 #if (KEYBEEP) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
181 l1s_dsp_com.dsp_ndb_ptr->d_k_x1_kt0 = 0; // keybeep variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
182 l1s_dsp_com.dsp_ndb_ptr->d_k_x1_kt1 = 0; // keybeep variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
183 l1s_dsp_com.dsp_ndb_ptr->d_dur_kb = 0; // keybeep variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
184 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
185 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
186 #if ((TONE) || (VOICE_MEMO)) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
187 l1s_dsp_com.dsp_ndb_ptr->d_k_x1_t0 = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
188 l1s_dsp_com.dsp_ndb_ptr->d_k_x1_t1 = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
189 l1s_dsp_com.dsp_ndb_ptr->d_k_x1_t2 = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
190 l1s_dsp_com.dsp_ndb_ptr->d_pe_rep = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
191 l1s_dsp_com.dsp_ndb_ptr->d_pe_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
192 l1s_dsp_com.dsp_ndb_ptr->d_se_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
193 l1s_dsp_com.dsp_ndb_ptr->d_bu_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
194 l1s_dsp_com.dsp_ndb_ptr->d_t0_on = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
195 l1s_dsp_com.dsp_ndb_ptr->d_t0_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
196 l1s_dsp_com.dsp_ndb_ptr->d_t1_on = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
197 l1s_dsp_com.dsp_ndb_ptr->d_t1_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
198 l1s_dsp_com.dsp_ndb_ptr->d_t2_on = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
199 l1s_dsp_com.dsp_ndb_ptr->d_t2_off = 0; // tone variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
200 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
201 l1s_dsp_com.dsp_ndb_ptr->d_shiftul = 0x100; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
202 l1s_dsp_com.dsp_ndb_ptr->d_shiftdl = 0x100; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
203 #endif // (TONE) || (VOICE_MEMO) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
204 #if (L1_PCM_EXTRACTION) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
205 l1s_dsp_com.dsp_ndb_ptr->d_pcm_api_upload = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
206 l1s_dsp_com.dsp_ndb_ptr->d_pcm_api_download = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
207 l1s_dsp_com.dsp_ndb_ptr->d_pcm_api_error = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
208 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
209 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
210 // Correction of PR G23M/L1_MCU-SPR-15494 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
211 #if ((CHIPSET == 12) || (CHIPSET == 15)) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
212 #if (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
213 l1s_dsp_com.dsp_ndb_ptr->d_cport_init = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
214 l1s_dsp_com.dsp_ndb_ptr->d_cport_ctrl = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
215 l1s_dsp_com.dsp_ndb_ptr->a_cport_cfr[0] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
216 l1s_dsp_com.dsp_ndb_ptr->a_cport_cfr[1] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
217 l1s_dsp_com.dsp_ndb_ptr->d_cport_tcl_tadt = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
218 l1s_dsp_com.dsp_ndb_ptr->d_cport_tdat = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
219 l1s_dsp_com.dsp_ndb_ptr->d_cport_tvs = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
220 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
221 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
222 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
223 #if (L1_VOICE_MEMO_AMR) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
224 l1s_dsp_com.dsp_ndb_ptr->d_shiftul = 0x100; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
225 #endif // L1_VOICE_MEMO_AMR |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
226 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
227 #if (MELODY_E1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
228 l1s_dsp_com.dsp_ndb_ptr->d_melo_osc_used = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
229 l1s_dsp_com.dsp_ndb_ptr->d_melo_osc_active = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
230 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
231 l1s_dsp_com.dsp_ndb_ptr->a_melo_note0[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
232 l1s_dsp_com.dsp_ndb_ptr->a_melo_note1[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
233 l1s_dsp_com.dsp_ndb_ptr->a_melo_note2[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
234 l1s_dsp_com.dsp_ndb_ptr->a_melo_note3[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
235 l1s_dsp_com.dsp_ndb_ptr->a_melo_note4[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
236 l1s_dsp_com.dsp_ndb_ptr->a_melo_note5[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
237 l1s_dsp_com.dsp_ndb_ptr->a_melo_note6[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
238 l1s_dsp_com.dsp_ndb_ptr->a_melo_note7[0] = SC_END_OSCILLATOR_MASK; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
239 #endif // MELODY_E1 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
240 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
241 // Initialize the FIR as an all band pass |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
242 // IMPORTANT NOTE: FIR/DL parameters are also initialized for DSP 36 when L1_IIR == 1 because |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
243 // in FIR loop mode, the old FIR API is still used |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
244 #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39)// The FIR coefficents are in param memory |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
245 l1s_dsp_com.dsp_param_ptr->a_fir31_downlink[0] = 0x4000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
246 l1s_dsp_com.dsp_param_ptr->a_fir31_uplink[0] = 0x4000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
247 #else |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
248 l1s_dsp_com.dsp_ndb_ptr->a_fir31_downlink[0] = 0x4000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
249 l1s_dsp_com.dsp_ndb_ptr->a_fir31_uplink[0] = 0x4000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
250 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
251 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
252 for (i=1; i<MAX_FIR_COEF; i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
253 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
254 #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39)// The FIR coefficents are in param memory |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
255 l1s_dsp_com.dsp_param_ptr->a_fir31_downlink[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
256 l1s_dsp_com.dsp_param_ptr->a_fir31_uplink[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
257 #else |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
258 l1s_dsp_com.dsp_ndb_ptr->a_fir31_downlink[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
259 l1s_dsp_com.dsp_ndb_ptr->a_fir31_uplink[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
260 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
261 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
262 #if (DSP == 17) || (DSP == 32) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
263 // start the FIR task |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
264 l1s_dsp_com.dsp_ndb_ptr->d_audio_init |= B_FIR_START; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
265 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
266 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
267 #if (L1_IIR == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
268 // IIR enabled by default |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
269 // Set the default configuration (all band pass - FIR only mode) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
270 l1s_dsp_com.dsp_ndb_ptr->d_iir_nb_iir_blocks = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
271 l1s_dsp_com.dsp_ndb_ptr->d_iir_nb_fir_coefs = 0x1f; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
272 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
273 l1s_dsp_com.dsp_ndb_ptr->a_iir_fir_coefs[0] = 0x4000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
274 for (i=1; i < (l1s_dsp_com.dsp_ndb_ptr->d_iir_nb_fir_coefs - 1); i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
275 l1s_dsp_com.dsp_ndb_ptr->a_iir_fir_coefs[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
276 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
277 l1s_dsp_com.dsp_ndb_ptr->d_iir_input_scaling = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
278 l1s_dsp_com.dsp_ndb_ptr->d_iir_fir_scaling = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
279 l1s_dsp_com.dsp_ndb_ptr->d_iir_input_gain_scaling = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
280 l1s_dsp_com.dsp_ndb_ptr->d_iir_output_gain_scaling = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
281 l1s_dsp_com.dsp_ndb_ptr->d_iir_output_gain = 0xffff; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
282 l1s_dsp_com.dsp_ndb_ptr->d_iir_feedback = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
283 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
284 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
285 #if (AUDIO_MODE) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
286 // Reset the FIR loopback and the audio mode |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
287 l1s_dsp_com.dsp_ndb_ptr->d_audio_init &= ~(B_FIR_LOOP | B_GSM_ONLY | B_BT_HEADSET | B_BT_CORDLESS); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
288 // Set the GSM mode |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
289 l1s_dsp_com.dsp_ndb_ptr->d_audio_init |= B_GSM_ONLY; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
290 #else |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
291 // Reset the loopback |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
292 l1s_dsp_com.dsp_ndb_ptr->d_audio_init &= ~(B_FIR_LOOP); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
293 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
294 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
295 #if (W_A_DSP_SR_BGD) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
296 // Initialize the DSP speech reco background task |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
297 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
298 // DSP background enabled for SR. |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
299 l1s_dsp_com.dsp_param_ptr->d_gsm_bgd_mgt = (B_DSPBGD_RECO | B_DSPBGD_UPD); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
300 l1s_dsp_com.dsp_ndb_ptr->d_max_background = 7; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
301 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
302 // TEMPORARY: Init DSP background interface for RECO. |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
303 if (l1s_dsp_com.dsp_param_ptr->d_gsm_bgd_mgt & B_DSPBGD_RECO) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
304 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
305 l1s_dsp_com.dsp_ndb_ptr->d_background_enable &= ~(1 << C_BGD_RECOGN); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
306 l1s_dsp_com.dsp_ndb_ptr->d_background_abort &= ~(1 << C_BGD_RECOGN); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
307 l1s_dsp_com.dsp_ndb_ptr->a_background_tasks[C_BGD_RECOGN] = (C_BGD_RECOGN<<11) | 1; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
308 l1s_dsp_com.dsp_ndb_ptr->a_back_task_io[C_BGD_RECOGN] = (API)(0x0000); // Not used by Recognition task. |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
309 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
310 if (l1s_dsp_com.dsp_param_ptr->d_gsm_bgd_mgt & B_DSPBGD_UPD) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
311 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
312 l1s_dsp_com.dsp_ndb_ptr->d_background_enable &= ~(1 << C_BGD_ALIGN); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
313 l1s_dsp_com.dsp_ndb_ptr->d_background_abort &= ~(1 << C_BGD_ALIGN); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
314 l1s_dsp_com.dsp_ndb_ptr->a_background_tasks[C_BGD_ALIGN] = (C_BGD_ALIGN<<11) | 1; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
315 l1s_dsp_com.dsp_ndb_ptr->a_back_task_io[C_BGD_ALIGN] = (API)(0x0000); // Not used by Alignement task. |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
316 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
317 #elif (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
318 // DSP background task through pending task queue |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
319 l1s_dsp_com.dsp_param_ptr->d_gsm_bgd_mgt = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
320 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
321 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
322 #if (MELODY_E2) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
323 // Initalize the Audio compressor used for E2 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
324 l1s_dsp_com.dsp_ndb_ptr->d_audio_compressor_ctrl = 0x0401; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
325 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
326 // Initialize the melody E2 variables |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
327 l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_osc_stop = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
328 l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_osc_active = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
329 l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_semaphore = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
330 for(i=0; i<SC_MELODY_E2_NUMBER_OF_OSCILLATOR; i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
331 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
332 l1s_dsp_com.dsp_ndb_ptr->a_melody_e2_osc[i][0] = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
333 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
334 l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_globaltimefactor = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
335 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
336 for (i=0; i<(SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT); i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
337 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
338 l1s_dsp_com.dsp_ndb_ptr->a_melody_e2_instrument_ptr[i] = 0x0000; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
339 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
340 |
182
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
341 /* FreeCalypso: reconstructed from disassembly of TCS211 object */ |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
342 l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_deltatime = 0; |
6a71281f0d82
l1audio_init.c fully reconstructed, matches TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents:
181
diff
changeset
|
343 |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
344 // Reset the flag to know if the DSP melody E2 task runs |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
345 l1s.melody_e2.dsp_task = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
346 #endif // MELODY_E2 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
347 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
348 #if ((DSP==33) || (DSP == 34) || (DSP==35) || (DSP==36) || (DSP == 37) || (DSP == 38) || (DSP == 39)) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
349 // Linked to E2 melody |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
350 // In case of WCP, there is a WCP variable at this address |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
351 l1s_dsp_com.dsp_ndb_ptr->d_melody_selection = NO_MELODY_SELECTED; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
352 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
353 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
354 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
355 #if ((CHIPSET == 4) || (CHIPSET == 12) || (CHIPSET == 15) || ((CHIPSET==10) && (OP_WCP==1))) && ((DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39)) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
356 l1s_dsp_com.dsp_ndb_ptr->d_es_ctrl = 0; // ES control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
357 l1s_dsp_com.dsp_ndb_ptr->d_anr_ul_ctrl = 0; // ANR control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
358 #if (L1_IIR == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
359 l1s_dsp_com.dsp_ndb_ptr->d_iir_dl_ctrl = B_IIR_ENABLE; // IIR control: enabled by default |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
360 #else |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
361 l1s_dsp_com.dsp_ndb_ptr->d_iir_dl_ctrl = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
362 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
363 l1s_dsp_com.dsp_ndb_ptr->d_lim_dl_ctrl = 0; // Limiter control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
364 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
365 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
366 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
367 #if (DSP == 38) || (DSP == 39) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
368 |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
369 //----------------------------------- |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
370 // AUDIO control words initialization |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
371 //----------------------------------- |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
372 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
373 l1s_dsp_com.dsp_ndb_ptr->d_es_ctrl = 0; // ES control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
374 l1s_dsp_com.dsp_ndb_ptr->d_anr_ul_ctrl = 0; // ANR control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
375 l1s_dsp_com.dsp_ndb_ptr->d_aec_ul_ctrl = 0; // AEC control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
376 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_ctrl = 0; // AGC control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
377 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
378 #if (L1_IIR == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
379 l1s_dsp_com.dsp_ndb_ptr->d_iir_dl_ctrl = B_IIR_ENABLE; // IIR control: enabled by default |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
380 #else |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
381 l1s_dsp_com.dsp_ndb_ptr->d_iir_dl_ctrl = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
382 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
383 l1s_dsp_com.dsp_ndb_ptr->d_lim_dl_ctrl = 0; // Limiter control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
384 l1s_dsp_com.dsp_ndb_ptr->d_drc_dl_ctrl = 0; // DRC control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
385 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_ctrl = 0; // AGC control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
386 l1s_dsp_com.dsp_ndb_ptr->d_audio_apps_ctrl = 0; // WCM control |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
387 l1s_dsp_com.dsp_ndb_ptr->d_audio_apps_status = 0; // WCM status |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
388 l1s_dsp_com.dsp_ndb_ptr->d_aqi_status = 0; // Initialise the status word |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
389 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
390 #if(L1_ANR == 2) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
391 l1s_dsp_com.dsp_ndb_ptr->d_anr_control = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
392 l1s_dsp_com.dsp_ndb_ptr->d_anr_ns_level = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
393 l1s_dsp_com.dsp_ndb_ptr->d_anr_tone_ene_th = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
394 l1s_dsp_com.dsp_ndb_ptr->d_anr_tone_cnt_th = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
395 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
396 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
397 #if(L1_IIR == 2) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
398 // Set IIR parameters |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
399 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_control = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
400 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_frame_size = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
401 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_fir_swap = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
402 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
403 // Set parameter os FIR part |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
404 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_fir_enable = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
405 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_fir_length = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
406 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_fir_shift = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
407 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
408 for (i=0; i < IIR_4X_FIR_MAX_LENGTH; i++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
409 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
410 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_fir_taps[i] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
411 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
412 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
413 // Set parameters for IIR part |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
414 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_enable = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
415 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_number = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
416 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
417 // Set parameters for IIR part - SOS 1 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
418 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_1 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
419 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_1 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
420 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
421 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
422 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
423 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_1[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
424 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
425 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
426 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
427 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_1[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
428 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
429 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_1 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
430 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
431 // Set parameters for IIR part - SOS 2 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
432 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_2 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
433 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_2 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
434 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
435 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
436 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
437 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_2[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
438 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
439 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
440 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
441 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_2[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
442 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
443 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_2 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
444 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
445 // Set parameters for IIR part - SOS 3 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
446 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_3 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
447 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_3 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
448 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
449 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
450 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
451 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_3[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
452 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
453 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
454 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
455 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_3[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
456 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
457 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_3 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
458 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
459 // Set parameters for IIR part - SOS 4 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
460 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_4 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
461 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_4 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
462 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
463 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
464 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
465 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_4[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
466 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
467 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
468 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
469 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_4[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
470 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
471 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_4 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
472 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
473 // Set parameters for IIR part - SOS 5 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
474 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_5 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
475 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_5 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
476 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
477 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
478 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
479 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_5[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
480 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
481 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
482 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
483 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_5[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
484 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
485 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_5 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
486 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
487 // Set parameters for IIR part - SOS 6 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
488 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_6 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
489 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_fact_form_6 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
490 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
491 for (j=0; j < IIR_4X_ORDER_OF_SECTION; j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
492 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
493 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_den_6[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
494 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
495 for (j=0; j < (IIR_4X_ORDER_OF_SECTION + 1); j++) |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
496 { |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
497 l1s_dsp_com.dsp_ndb_ptr->a_iir4x_sos_num_6[j] = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
498 } |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
499 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_sos_num_form_6 = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
500 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
501 l1s_dsp_com.dsp_ndb_ptr->d_iir4x_gain = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
502 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
503 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
504 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
505 #if(L1_AGC_UL == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
506 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_control = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
507 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_frame_size = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
508 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_targeted_level = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
509 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_signal_up = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
510 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_signal_down = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
511 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_max_scale = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
512 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_gain_smooth_alpha = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
513 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_gain_smooth_alpha_fast = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
514 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_gain_smooth_beta = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
515 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_gain_smooth_beta_fast = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
516 l1s_dsp_com.dsp_ndb_ptr->d_agc_ul_gain_intp_flag = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
517 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
518 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
519 #if(L1_AGC_DL == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
520 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_control = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
521 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_frame_size = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
522 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_targeted_level = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
523 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_signal_up = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
524 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_signal_down = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
525 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_max_scale = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
526 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_gain_smooth_alpha = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
527 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_gain_smooth_alpha_fast = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
528 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_gain_smooth_beta = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
529 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_gain_smooth_beta_fast = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
530 l1s_dsp_com.dsp_ndb_ptr->d_agc_dl_gain_intp_flag = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
531 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
532 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
533 #if(L1_WCM == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
534 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
535 l1s_dsp_com.dsp_ndb_ptr->d_wcm_mode = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
536 l1s_dsp_com.dsp_ndb_ptr->d_wcm_frame_size = (API) 0; |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
537 l1s_dsp_com.dsp_ndb_ptr->d_wcm_num_sub_frames = (API) 0; |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
538 l1s_dsp_com.dsp_ndb_ptr->d_wcm_ratio = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
539 l1s_dsp_com.dsp_ndb_ptr->d_wcm_threshold = (API) 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
540 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
541 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
542 #endif // DSP 38 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
543 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
544 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
545 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
546 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
547 #if (AUDIO_TASK == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
548 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
549 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
550 /* l1audio_initialize_var() */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
551 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
552 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
553 /* Parameters : */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
554 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
555 /* Return : */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
556 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
557 /* Description : Initialize the part of l1a, l1s and */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
558 /* l1a_l1s_com dedicated to the audio task.*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
559 /* */ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
560 /*-------------------------------------------------------*/ |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
561 void l1audio_initialize_var(void) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
562 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
563 UWORD8 i, j; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
564 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
565 // Initialize the state of the L1S maanger... |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
566 //-------------------------------------------- |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
567 for(i=0; i<NBR_AUDIO_MANAGER; i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
568 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
569 l1s.audio_state[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
570 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
571 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
572 #if (L1_EXTERNAL_AUDIO_VOICE_ONOFF == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
573 l1a_l1s_com.audio_onoff_task.parameters.onoff_value = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
574 #endif |
181
3c9aaec4eb88
l1audio_init.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
180
diff
changeset
|
575 #if 0 /* FreeCalypso TCS211 reconstruction */ |
3c9aaec4eb88
l1audio_init.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
180
diff
changeset
|
576 l1a_l1s_com.audio_forced_by_l1s = FALSE; |
3c9aaec4eb88
l1audio_init.c: passes compilation
Mychaela Falconia <falcon@freecalypso.org>
parents:
180
diff
changeset
|
577 #endif |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
578 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
579 #if (MELODY_E1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
580 l1s.melody0.oscillator[0] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note0[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
581 l1s.melody0.oscillator[1] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note1[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
582 l1s.melody0.oscillator[2] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note2[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
583 l1s.melody0.oscillator[3] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note3[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
584 l1s.melody0.oscillator[4] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note4[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
585 l1s.melody0.oscillator[5] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note5[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
586 l1s.melody0.oscillator[6] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note6[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
587 l1s.melody0.oscillator[7] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note7[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
588 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
589 l1s.melody1.oscillator[0] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note0[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
590 l1s.melody1.oscillator[1] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note1[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
591 l1s.melody1.oscillator[2] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note2[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
592 l1s.melody1.oscillator[3] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note3[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
593 l1s.melody1.oscillator[4] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note4[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
594 l1s.melody1.oscillator[5] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note5[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
595 l1s.melody1.oscillator[6] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note6[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
596 l1s.melody1.oscillator[7] = &(l1s_dsp_com.dsp_ndb_ptr->a_melo_note7[0]); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
597 #endif // MELODY_E1 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
598 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
599 #if (MELODY_E2) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
600 // Initialization ofthe audio background melody E2 load insturment variable |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
601 audioback_melody_e2.allowed_size = |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
602 SC_AUDIO_MELODY_E2_MAX_SIZE_OF_INSTRUMENT; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
603 audioback_melody_e2.API_address = |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
604 l1s_dsp_com.dsp_ndb_ptr->a_melody_e2_instrument_wave; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
605 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
606 for (i=0; i < SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT; i++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
607 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
608 audioback_melody_e2.number_of_user[i] = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
609 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
610 #endif // MELODY_E2 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
611 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
612 #if (L1_STEREOPATH == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
613 // Reset the stereopath L1S commands |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
614 l1a_l1s_com.stereopath_drv_task.command.start = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
615 l1a_l1s_com.stereopath_drv_task.command.stop = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
616 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
617 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
618 // Triton Audio ON/OFF Changes |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
619 #if (L1_AUDIO_MCU_ONOFF == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
620 l1s.audio_on_off_ctl.l1_audio_switch_on_ul_request = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
621 l1s.audio_on_off_ctl.l1_audio_switch_on_dl_request = 0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
622 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
623 l1s.audio_on_off_ctl.l1_audio_ul_on2off_hold_time = |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
624 L1_AUDIO_ON2OFF_UL_HOLD_TIME; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
625 l1s.audio_on_off_ctl.l1_audio_dl_on2off_hold_time = |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
626 L1_AUDIO_ON2OFF_DL_HOLD_TIME; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
627 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
628 l1s.audio_on_off_ctl.l1_audio_ul_action = L1_AUDIO_NO_ACTION; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
629 l1s.audio_on_off_ctl.l1_audio_dl_action = L1_AUDIO_NO_ACTION; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
630 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
631 l1s.audio_on_off_ctl.l1_audio_ul_switched_on = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
632 l1s.audio_on_off_ctl.l1_audio_dl_switched_on = FALSE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
633 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
634 l1s.audio_on_off_ctl.l1_audio_ul_switched_off = TRUE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
635 l1s.audio_on_off_ctl.l1_audio_dl_switched_off = TRUE; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
636 #endif // L1_AUDIO_MCU_ONOFF |
180
22cc509346c8
l1audio_init.c: white space preen
Mychaela Falconia <falcon@freecalypso.org>
parents:
179
diff
changeset
|
637 |
179
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
638 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
639 #if (L1_DRC == 1) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
640 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
641 // init DRC NDB |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
642 drc_ndb = (T_DRC_MCU_DSP *)API_address_dsp2mcu(C_DRC_API_BASE_ADDRESS); |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
643 #if (CODE_VERSION == SIMULATION) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
644 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
645 drc_ndb = &drc_ndb_sim; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
646 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
647 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
648 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
649 drc_ndb->d_drc_speech_mode_samp_f =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
650 drc_ndb->d_drc_num_subbands =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
651 drc_ndb->d_drc_frame_len =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
652 drc_ndb->d_drc_expansion_knee_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
653 drc_ndb->d_drc_expansion_knee_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
654 drc_ndb->d_drc_expansion_ratio_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
655 drc_ndb->d_drc_expansion_ratio_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
656 drc_ndb->d_drc_max_amplification_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
657 drc_ndb->d_drc_max_amplification_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
658 drc_ndb->d_drc_compression_knee_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
659 drc_ndb->d_drc_compression_knee_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
660 drc_ndb->d_drc_compression_ratio_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
661 drc_ndb->d_drc_compression_ratio_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
662 drc_ndb->d_drc_energy_limiting_th_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
663 drc_ndb->d_drc_energy_limiting_th_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
664 drc_ndb->d_drc_limiter_threshold_fb =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
665 drc_ndb->d_drc_limiter_threshold_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
666 drc_ndb->d_drc_limiter_threshold_md =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
667 drc_ndb->d_drc_limiter_threshold_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
668 drc_ndb->d_drc_limiter_hangover_spect_preserve =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
669 drc_ndb->d_drc_limiter_release_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
670 drc_ndb->d_drc_limiter_release_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
671 drc_ndb->d_drc_gain_track_fb_bs =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
672 drc_ndb->d_drc_gain_track_md_hg =(API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
673 for (j=0; j < DRC_LPF_LENGTH; j++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
674 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
675 drc_ndb->a_drc_low_pass_filter[j] = (API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
676 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
677 for (j=0; j < DRC_BPF_LENGTH; j++) |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
678 { |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
679 drc_ndb->a_drc_mid_band_filter[j] = (API)0; |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
680 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
681 #endif |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
682 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
683 } |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
684 |
cf73d0ae84f5
l1audio_init.c: initial import of LoCosto source
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
685 #endif // AUDIO_TASK |