annotate gsm-fw/L1/audio_cfile/l1audio_drive.c @ 979:ebdf5afa9fb5

fc-tmsh: omr responses parsed and formatted in a readable manner
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 10 Dec 2015 04:28:19 +0000
parents 56e3d8560d69
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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_DRIVE.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_drive.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
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
14 #include "config.h"
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 #include "l1_confg.h"
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
16 #include "l1_macro.h"
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
18 #if 1 //(AUDIO_TASK == 1)
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 #include "l1_types.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 #include "sys_types.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 #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
24
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 #include <stdlib.h>
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 #include <string.h>
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 #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
30 #include "l1_ver.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 #include "l1_const.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 #include "l1_signa.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 #if TESTMODE
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 #include "l1tm_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 #include "l1audio_const.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 #include "l1audio_cust.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 #include "l1audio_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 #include "l1audio_msgty.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
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
64 #include "l1_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65 #include "cust_os.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
66 #include "l1_msgty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67 #include "l1_varex.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 #include "l1_mftab.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70 #include "l1_tabs.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 #include "l1_ctl.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 #include "l1_time.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75 #include "l1_scen.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 #else
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78 // 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
79
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 #include <ctype.h>
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 #include <math.h>
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 #include "l1_ver.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 #include "l1_const.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 #include "l1_signa.h"
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 #if TESTMODE
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 #include "l1tm_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
90 #include "l1audio_const.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
91 #include "l1audio_cust.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
92 #include "l1audio_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
93 #include "l1audio_msgty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
94
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95 #if (L1_GTT == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 #include "l1gtt_const.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 #include "l1gtt_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 //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
100 #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
101 #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
102 #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
103 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
104 #if (L1_MP3 == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 #include "l1mp3_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
107
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
108 #if (L1_MIDI == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
109 #include "l1midi_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
111 //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
112 #if (L1_AAC == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
113 #include "l1aac_defty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
114 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
115
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
116 #include "l1_defty.h"
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
117 #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
118 #include "l1_msgty.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
119 #include "tpudrv.h" // TPU drivers. ("eva3.lib")
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
120 #include "l1_varex.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
121
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
122 #include "l1_proto.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
123 #include "l1_mftab.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
124 #include "l1_tabs.h"
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
125 #include "../../bsp/mem.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
126 #include "../../bsp/armio.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
127 #include "../../bsp/timer.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
128 #include "../../bsp/timer1.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
129 #include "../../bsp/dma.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
130 #include "../../bsp/inth.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
131 #include "../../bsp/ulpd.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
132 #include "../../bsp/rhea_arm.h"
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
133 #include "../../bsp/clkm.h" // Clockm ("eva3.lib")
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
134 #include "l1_ctl.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
135
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
136 #include "l1_time.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
137 #if L2_L3_SIMUL
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
138 #include "l1_scen.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
139 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
140 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
141
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
142 #include "l1audio_macro.h"
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
143
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
144 /**************************************/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
145 /* Prototypes for L1 SYNCH manager */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
146 /**************************************/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
147 void vocoder_mute_dl (BOOL mute);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
148 void vocoder_mute_ul (BOOL mute);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
149 #if (AUDIO_DSP_FEATURES == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
150 void L1_audio_sidetone_write(UWORD16 sidetone_value);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
151 void L1_audio_CAL_DlVolume_write(UWORD16 vol_value);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
152 void L1_audio_CAL_UlVolume_write(UWORD16 vol_value);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
153 void L1_audio_volume_speed_write(UWORD16 volspeed_value);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
154 #endif
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
155
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
156 /**************************************/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
157 /* External prototypes */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
158 /**************************************/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
159
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
160 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
161 /* vocoder_mute_dl() */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
162 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
163 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
164 /* Parameters : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
165 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
166 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
167 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
168 /* Description : Mute the DL vocoder. */
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 void vocoder_mute_dl(BOOL mute)
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 if (mute)
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 // Set the DL vocoder mute bit in the d_tch_mode register
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
176 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<14);
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
177 }
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
178 else
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 // Reset the DL vocoder mute bit in the d_tch_mode register
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
181 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<14);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
182 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
183 }
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 /* vocoder_mute_ul() */
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 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
189 /* Parameters : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
190 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
191 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
192 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
193 /* Description : Mute the UL vocoder. */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
194 /* */
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 void vocoder_mute_ul(BOOL mute)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
197 {
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
198 if (mute)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
199 {
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
200 // Set the UL vocoder mute bit in the d_tch_mode register
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_tch_mode |= (0x01<<15);
830
56e3d8560d69 L1 audio: vocoder mute functions made independent of AUDIO_TASK
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 606
diff changeset
202 }
606
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
203 else
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
204 {
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
205 // Reset the UL vocoder mute bit in the d_tch_mode register
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_tch_mode &= ~(0x01<<15);
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
207 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
208 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
209
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
210 #if (AUDIO_DSP_FEATURES == 1)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
211 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
212 /* L1_audio_sidetone_write() */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
213 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
214 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
215 /* Parameters : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
216 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
217 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
218 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
219 /* Description : write sidetone gain in API for DSP */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
220 /* sidetone process */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
221 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
222 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
223 void L1_audio_sidetone_write(UWORD16 sidetone_value)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
224 {
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->d_sidetone_level = (API) sidetone_value;
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
226 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
227
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
228 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
229 /* L1_audio_CAL_DlVolume_write() */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
230 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
231 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
232 /* Parameters : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
233 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
234 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
235 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
236 /* Description : write DL gain in API for DSP vol ctrl */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
237 /* process */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
238 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
239 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
240 void L1_audio_CAL_DlVolume_write(UWORD16 vol_value)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
241 {
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->d_vol_dl_level = (API) vol_value;
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
243 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
244
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
245 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
246 /* L1_audio_CAL_UlVolume_write() */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
247 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
248 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
249 /* Parameters : */
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 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
252 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
253 /* Description : write UL gain in API for DSP vol ctrl */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
254 /* process */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
255 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
256 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
257 void L1_audio_CAL_UlVolume_write(UWORD16 vol_value)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
258 {
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->d_vol_ul_level = (API) vol_value;
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
260 }
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 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
263 /* L1_audio_volume_speed_write() */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
264 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
265 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
266 /* Parameters : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
267 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
268 /* Return : */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
269 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
270 /* Description : write volume speed in API for DSP vol */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
271 /* ctrl process */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
272 /* */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
273 /*-------------------------------------------------------*/
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
274 void L1_audio_volume_speed_write(UWORD16 volspeed_value)
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
275 {
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
276 l1s_dsp_com.dsp_ndb_ptr->d_vol_speed = (API) volspeed_value;
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
277 }
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
278
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
279 #endif /* DSP_AUDIO_FEAT */
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
280
c5286d24539e gsm-fw/L1/audio_cfile: initial import from LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
281 #endif // AUDIO_TASK