annotate chipsetsw/layer1/audio_cfile/l1audio_drive.c @ 328:2604e9569e31

l1p_func.c: l1ps_tcr_ctrl() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2017 22:50:34 +0000
parents f594d406cdd0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
177
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
1 /************* Revision Controle System Header *************
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
2 * GSM Layer 1 software
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
3 * L1AUDIO_DRIVE.C
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
4 *
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
5 * Filename l1audio_drive.c
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
6 * Copyright 2003 (C) Texas Instruments
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
7 *
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
8 ************* Revision Controle System Header *************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
9
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
10 /************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
11 /* Include files... */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
12 /************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
13
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
14 #include "l1_macro.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
15 #include "l1_confg.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
16
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
17 #if (AUDIO_TASK == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
18
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
19 #include "l1_types.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
20 #include "sys_types.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
21
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
22 #if (CODE_VERSION == SIMULATION) && (AUDIO_SIMULATION)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
23
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
24
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
25 #include <stdlib.h>
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
26 #include <string.h>
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
27
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
28 #include "iq.h" // Debug / Init hardware ("eva3.lib")
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
29 #include "l1_ver.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
30 #include "l1_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
31 #include "l1_signa.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
32
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
33 #if TESTMODE
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
34 #include "l1tm_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
35 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
36
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
37 #include "l1audio_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
38 #include "l1audio_cust.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
39 #include "l1audio_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
40 #include "l1audio_msgty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
41
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
42 #if (L1_GTT == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
43 #include "l1gtt_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
44 #include "l1gtt_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
45 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
46 //added here from e-sample for AAC
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
47 #if (L1_DYN_DSP_DWNLD == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
48 #include "l1_dyn_dwl_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
49 #include "l1_dyn_dwl_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
50 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
51 #if (L1_MP3 == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
52 #include "l1mp3_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
53 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
54
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
55 #if (L1_MIDI == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
56 #include "l1midi_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
57 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
58 //added here from e-sample for AAC
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
59 #if (L1_AAC == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
60 #include "l1aac_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
61 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
62
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
63 #include "l1_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
64 #include "cust_os.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
65 #include "l1_msgty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
66 #include "l1_varex.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
67
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
68 #include "l1_mftab.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
69 #include "l1_tabs.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
70 #include "l1_ctl.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
71
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
72
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
73 #include "l1_time.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
74 #include "l1_scen.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
75
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
76 #else
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
77 // Layer1 and debug include files.
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
78
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
79 #include <ctype.h>
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
80 #include <math.h>
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
81 #include "l1_ver.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
82 #include "l1_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
83 #include "l1_signa.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
84
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
85 #if TESTMODE
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
86 #include "l1tm_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
87 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
88
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
89 #include "l1audio_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
90 #include "l1audio_cust.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
91 #include "l1audio_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
92 #include "l1audio_msgty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
93
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
94 #if (L1_GTT == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
95 #include "l1gtt_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
96 #include "l1gtt_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
97 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
98 //added here from e-sample for AAC
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
99 #if (L1_DYN_DSP_DWNLD == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
100 #include "l1_dyn_dwl_const.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
101 #include "l1_dyn_dwl_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
102 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
103 #if (L1_MP3 == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
104 #include "l1mp3_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
105 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
106
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
107 #if (L1_MIDI == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
108 #include "l1midi_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
109 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
110 //added here from e-sample for AAC
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
111 #if (L1_AAC == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
112 #include "l1aac_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
113 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
114
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
115 #include "l1_defty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
116 #include "cust_os.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
117 #include "l1_msgty.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
118 #include "tpudrv.h" // TPU drivers. ("eva3.lib")
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
119 #include "l1_varex.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
120
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
121 #include "l1_proto.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
122 #include "l1_mftab.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
123 #include "l1_tabs.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
124 #include "mem.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
125 #include "armio.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
126 #include "timer.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
127 #include "timer1.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
128 #include "dma.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
129 #include "inth.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
130 #include "ulpd.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
131 #include "rhea_arm.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
132 #include "clkm.h" // Clockm ("eva3.lib")
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
133 #include "l1_ctl.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
134
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
135 #include "l1_time.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
136 #if L2_L3_SIMUL
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
137 #include "l1_scen.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
138 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
139 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
140
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
141 #include "l1audio_macro.h"
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
142
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
143 /**************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
144 /* Prototypes for L1 SYNCH manager */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
145 /**************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
146 void vocoder_mute_dl (BOOL mute);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
147 void vocoder_mute_ul (BOOL mute);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
148 #if (AUDIO_DSP_FEATURES == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
149 void L1_audio_sidetone_write(UWORD16 sidetone_value);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
150 void L1_audio_CAL_DlVolume_write(UWORD16 vol_value);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
151 void L1_audio_CAL_UlVolume_write(UWORD16 vol_value);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
152 void L1_audio_volume_speed_write(UWORD16 volspeed_value);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
153 #endif
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
154
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
155 /**************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
156 /* External prototypes */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
157 /**************************************/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
158
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
159 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
160 /* vocoder_mute_dl() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
161 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
162 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
163 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
164 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
165 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
166 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
167 /* Description : Mute the DL vocoder. */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
168 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
169 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
170 void vocoder_mute_dl(BOOL mute)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
171 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
172 if (mute)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
173 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
174 // Set the DL vocoder mute bit in the d_tch_mode register
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
175 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<14);
178
f594d406cdd0 l1audio_drive.c: white space fixes
Mychaela Falconia <falcon@freecalypso.org>
parents: 177
diff changeset
176 }
177
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
177 else
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
178 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
179 // Reset the DL vocoder mute bit in the d_tch_mode register
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
180 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<14);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
181 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
182 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
183
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
184 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
185 /* vocoder_mute_ul() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
186 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
187 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
188 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
189 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
190 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
191 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
192 /* Description : Mute the UL vocoder. */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
193 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
194 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
195 void vocoder_mute_ul(BOOL mute)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
196 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
197 if (mute)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
198 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
199 // Set the UL vocoder mute bit in the d_tch_mode register
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
200 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<15);
178
f594d406cdd0 l1audio_drive.c: white space fixes
Mychaela Falconia <falcon@freecalypso.org>
parents: 177
diff changeset
201 }
177
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
202 else
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
203 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
204 // Reset the UL vocoder mute bit in the d_tch_mode register
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
205 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<15);
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
206 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
207 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
208
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
209 #if (AUDIO_DSP_FEATURES == 1)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
210 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
211 /* L1_audio_sidetone_write() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
212 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
213 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
214 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
215 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
216 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
217 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
218 /* Description : write sidetone gain in API for DSP */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
219 /* sidetone process */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
220 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
221 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
222 void L1_audio_sidetone_write(UWORD16 sidetone_value)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
223 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
224 l1s_dsp_com.dsp_ndb_ptr->d_sidetone_level = (API) sidetone_value;
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
225 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
226
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
227 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
228 /* L1_audio_CAL_DlVolume_write() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
229 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
230 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
231 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
232 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
233 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
234 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
235 /* Description : write DL gain in API for DSP vol ctrl */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
236 /* process */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
237 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
238 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
239 void L1_audio_CAL_DlVolume_write(UWORD16 vol_value)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
240 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
241 l1s_dsp_com.dsp_ndb_ptr->d_vol_dl_level = (API) vol_value;
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
242 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
243
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
244 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
245 /* L1_audio_CAL_UlVolume_write() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
246 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
247 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
248 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
249 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
250 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
251 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
252 /* Description : write UL gain in API for DSP vol ctrl */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
253 /* process */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
254 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
255 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
256 void L1_audio_CAL_UlVolume_write(UWORD16 vol_value)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
257 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
258 l1s_dsp_com.dsp_ndb_ptr->d_vol_ul_level = (API) vol_value;
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
259 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
260
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
261 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
262 /* L1_audio_volume_speed_write() */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
263 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
264 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
265 /* Parameters : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
266 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
267 /* Return : */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
268 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
269 /* Description : write volume speed in API for DSP vol */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
270 /* ctrl process */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
271 /* */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
272 /*-------------------------------------------------------*/
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
273 void L1_audio_volume_speed_write(UWORD16 volspeed_value)
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
274 {
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
275 l1s_dsp_com.dsp_ndb_ptr->d_vol_speed = (API) volspeed_value;
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
276 }
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
277
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
278 #endif /* DSP_AUDIO_FEAT */
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
279
ee85f6fb3eac l1audio_drive.c: LoCosto module matches TCS211 w/o changes
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
280 #endif // AUDIO_TASK