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