blob: 64aff70da3831cc4d6eb2b4c91ee5ec96be3b12d [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef _DEFAULT_PARA_H_
2#define _DEFAULT_PARA_H_
3
4#define BT_COMP_FILTER (1 << 15)
5#define BT_SYNC_DELAY 86
6
7#define DEFAULT_SPEECH_NORMAL_MODE_PARA \
8 0x80, 0xFD, 0x4004, 0x1F, 0xE007, 0x081F, 0xD045, 0x00, 0x00, 0x11E4, 0x263, \
9 0x0000, 0x5008, 0x173, 0x17, 0x2000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
10 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0F, \
11 0xF0F, 0xF0F, 0xF0F, 0xF0F, 0x0, 0x2828, 0x5050, 0x7878, 0xA0A0
12
13#define DEFAULT_SPEECH_EARPHONE_MODE_PARA \
14 0x0, 0xFD, 0x2A04, 0x1F, 0xE007, 0x1F, 0x195, 0x40, 0x110, 0x10E5, 0x263, 0x0, \
15 0x5008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
16 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
17 0x0, 0x0, 0x0, 0x0, 0x0
18
19#define DEFAULT_SPEECH_BT_EARPHONE_MODE_PARA \
20 0x0, 0xFD, 0x2A04, 0x1F, 0xD00F, 0x1F, 0x195, 0x0, 0x50, 0x10E5, 0xA263, 0x0, \
21 0xD008, 0x0, 0x0, 0x56, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
22 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
23 0x0,0x0,0x0,0x0,0x0
24
25#define DEFAULT_SPEECH_LOUDSPK_MODE_PARA \
26 0x60, 0xE0, 0x1488, 0x1F, 0xE007, 0x601F, 0x195, 0x84, 0x54, 0x10E5, 0x263, 0x0, \
27 0x5008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
28 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
29 0x0, 0x0, 0x0
30
31#define DEFAULT_SPEECH_CARKIT_MODE_PARA \
32 96, 224, 5256, 31, 57351, 24607, 400, 132, \
33 84, 4325, 611, 0, 20488, 0, 0, 0, \
34 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
35
36#define DEFAULT_SPEECH_BT_CORDLESS_MODE_PARA \
37 0, 479, 10756, 28, 53255, 31, 400, 0, \
38 4048, 4325, 611, 0, 20488 | BT_COMP_FILTER, 0, 0, BT_SYNC_DELAY, \
39 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
40
41#define DEFAULT_SPEECH_AUX1_MODE_PARA \
42 0, 0, 0, 0, 0, 0, 0, 0, \
43 0, 0, 0, 0, 0, 0, 0, 0, \
44 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
45
46#define DEFAULT_SPEECH_AUX2_MODE_PARA \
47 0, 0, 0, 0, 0, 0, 0, 0, \
48 0, 0, 0, 0, 0, 0, 0, 0, \
49 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
50
51
52#define DEFAULT_WB_SPEECH_NORMAL_MODE_PARA \
53 0x80, 0xFD, 0x4004, 0x1F, 0xE007, 0x081F, 0xD045, 0x00, 0x00, 0x11E4, 0x263, \
54 0x0000, 0x5008, 0x173, 0x17, 0x2000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
55 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0F, \
56 0xF0F, 0xF0F, 0xF0F, 0xF0F, 0x0, 0x2828, 0x5050, 0x7878, 0xA0A0
57
58#define DEFAULT_WB_SPEECH_EARPHONE_MODE_PARA \
59 0x0, 0xFD, 0x2A04, 0x1F, 0xE107, 0x1F, 0x195, 0x40, 0x110, 0x10E5, 0x263, 0x0, \
60 0x4008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
61 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
62 0x0, 0x0, 0x0, 0x0, 0x0
63
64#define DEFAULT_WB_SPEECH_BT_EARPHONE_MODE_PARA \
65 0x0, 0xFD, 0x2A04, 0x1F, 0xD10F, 0x1F, 0x195, 0x0, 0x50, 0x10E5, 0xA263, 0x0, \
66 0xC008, 0x0, 0x0, 0x56, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
67 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
68 0x0, 0x0, 0x0, 0x0, 0x0
69
70#define DEFAULT_WB_SPEECH_LOUDSPK_MODE_PARA \
71 0x60, 0xE0, 0x1488, 0x1F, 0xE107, 0x601F, 0x195, 0x84, 0x54, 0x10E5, 0x263, 0x0, \
72 0x4008, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
73 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, \
74 0x0, 0x0, 0x0
75
76#define DEFAULT_WB_SPEECH_CARKIT_MODE_PARA \
77 96, 224, 5256, 31, 57607, 24607, 400, 132, \
78 84, 4325, 611, 0, 16392, 0, 0, 0 , \
79 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
80
81#define DEFAULT_WB_SPEECH_BT_CORDLESS_MODE_PARA \
82 0, 479, 10756, 28, 53511, 31, 400, 0, \
83 4048, 4325, 611, 0, 16392 | BT_COMP_FILTER, 0, 0, BT_SYNC_DELAY, \
84 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
85
86#define DEFAULT_WB_SPEECH_AUX1_MODE_PARA \
87 96, 224, 5256, 31, 57607, 0, 400, 0, 4112, 4325, 11, 0, 0, 0, 0, 0, \
88 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
89
90#define DEFAULT_WB_SPEECH_AUX2_MODE_PARA \
91 0, 0, 0, 0, 0, 0, 0, 0, \
92 0, 0, 0, 0, 0, 0, 0, 0, \
93 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
94
95
96/* For FIR in/out*/
97/* 0: Input FIR coefficients for 2G/3G Normal mode */
98/* 1: Input FIR coefficients for 2G/3G/VoIP Headset mode */
99/* 2: Input FIR coefficients for 2G/3G Handfree mode */
100/* 3: Input FIR coefficients for 2G/3G/VoIP BT mode */
101/* 4: Input FIR coefficients for VoIP Normal mode */
102/* 5: Input FIR coefficients for VoIP Handfree mode */
103#define SPEECH_INPUT_FIR_COEF \
104 32767, 0, 0, 0, 0, \
105 0, 0, 0, 0, 0, \
106 0, 0, 0, 0, 0, \
107 0, 0, 0, 0, 0, \
108 0, 0, 0, 0, 0, \
109 0, 0, 0, 0, 0, \
110 0, 0, 0, 0, 0, \
111 0, 0, 0, 0, 0, \
112 0, 0, 0, 0, 0, \
113 \
114 32767, 0, 0, 0, 0, \
115 0, 0, 0, 0, 0, \
116 0, 0, 0, 0, 0, \
117 0, 0, 0, 0, 0, \
118 0, 0, 0, 0, 0, \
119 0, 0, 0, 0, 0, \
120 0, 0, 0, 0, 0, \
121 0, 0, 0, 0, 0, \
122 0, 0, 0, 0, 0, \
123 \
124 32767, 0, 0, 0, 0, \
125 0, 0, 0, 0, 0, \
126 0, 0, 0, 0, 0, \
127 0, 0, 0, 0, 0, \
128 0, 0, 0, 0, 0, \
129 0, 0, 0, 0, 0, \
130 0, 0, 0, 0, 0, \
131 0, 0, 0, 0, 0, \
132 0, 0, 0, 0, 0, \
133 \
134 32767, 0, 0, 0, 0, \
135 0, 0, 0, 0, 0, \
136 0, 0, 0, 0, 0, \
137 0, 0, 0, 0, 0, \
138 0, 0, 0, 0, 0, \
139 0, 0, 0, 0, 0, \
140 0, 0, 0, 0, 0, \
141 0, 0, 0, 0, 0, \
142 0, 0, 0, 0, 0, \
143 \
144 32767, 0, 0, 0, 0, \
145 0, 0, 0, 0, 0, \
146 0, 0, 0, 0, 0, \
147 0, 0, 0, 0, 0, \
148 0, 0, 0, 0, 0, \
149 0, 0, 0, 0, 0, \
150 0, 0, 0, 0, 0, \
151 0, 0, 0, 0, 0, \
152 0, 0, 0, 0, 0, \
153 \
154 32767, 0, 0, 0, 0, \
155 0, 0, 0, 0, 0, \
156 0, 0, 0, 0, 0, \
157 0, 0, 0, 0, 0, \
158 0, 0, 0, 0, 0, \
159 0, 0, 0, 0, 0, \
160 0, 0, 0, 0, 0, \
161 0, 0, 0, 0, 0, \
162 0, 0, 0, 0, 0
163
164#define SPEECH_OUTPUT_FIR_COEF \
165 32767, 0, 0, 0, 0, \
166 0, 0, 0, 0, 0, \
167 0, 0, 0, 0, 0, \
168 0, 0, 0, 0, 0, \
169 0, 0, 0, 0, 0, \
170 0, 0, 0, 0, 0, \
171 0, 0, 0, 0, 0, \
172 0, 0, 0, 0, 0, \
173 0, 0, 0, 0, 0, \
174 \
175 32767, 0, 0, 0, 0, \
176 0, 0, 0, 0, 0, \
177 0, 0, 0, 0, 0, \
178 0, 0, 0, 0, 0, \
179 0, 0, 0, 0, 0, \
180 0, 0, 0, 0, 0, \
181 0, 0, 0, 0, 0, \
182 0, 0, 0, 0, 0, \
183 0, 0, 0, 0, 0, \
184 \
185 32767, 0, 0, 0, 0, \
186 0, 0, 0, 0, 0, \
187 0, 0, 0, 0, 0, \
188 0, 0, 0, 0, 0, \
189 0, 0, 0, 0, 0, \
190 0, 0, 0, 0, 0, \
191 0, 0, 0, 0, 0, \
192 0, 0, 0, 0, 0, \
193 0, 0, 0, 0, 0, \
194 \
195 32767, 0, 0, 0, 0, \
196 0, 0, 0, 0, 0, \
197 0, 0, 0, 0, 0, \
198 0, 0, 0, 0, 0, \
199 0, 0, 0, 0, 0, \
200 0, 0, 0, 0, 0, \
201 0, 0, 0, 0, 0, \
202 0, 0, 0, 0, 0, \
203 0, 0, 0, 0, 0, \
204 \
205 32767, 0, 0, 0, 0, \
206 0, 0, 0, 0, 0, \
207 0, 0, 0, 0, 0, \
208 0, 0, 0, 0, 0, \
209 0, 0, 0, 0, 0, \
210 0, 0, 0, 0, 0, \
211 0, 0, 0, 0, 0, \
212 0, 0, 0, 0, 0, \
213 0, 0, 0, 0, 0, \
214 \
215 32767, 0, 0, 0, 0, \
216 0, 0, 0, 0, 0, \
217 0, 0, 0, 0, 0, \
218 0, 0, 0, 0, 0, \
219 0, 0, 0, 0, 0, \
220 0, 0, 0, 0, 0, \
221 0, 0, 0, 0, 0, \
222 0, 0, 0, 0, 0, \
223 0, 0, 0, 0, 0
224
225#define WB_SPEECH_INPUT_FIR_COEF \
226 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
227 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
228 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
229 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
230 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
231 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
232 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
233 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
234 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
235\
236 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
237 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
238 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
239 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
240 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
241 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
242 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
243 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
244 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
245\
246 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
247 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
248 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
249 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
250 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
251 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
252 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
253 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
254 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
255\
256 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
257 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
258 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
259 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
260 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
261 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
262 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
263 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
264 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
265\
266 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
267 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
268 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
269 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
270 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
271 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
272 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
273 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
274 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
275\
276 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
277 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
278 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
279 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
280 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
281 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
282 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
283 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
284 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
285
286#define WB_SPEECH_OUTPUT_FIR_COEF \
287 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
288 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
289 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
290 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
291 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
292 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
293 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
294 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
295 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
296\
297 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
298 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
299 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
300 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
301 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
302 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
303 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
304 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
305 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
306\
307 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
308 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
309 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
310 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
311 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
312 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
313 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
314 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
315 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
316\
317 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
318 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
319 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
320 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
321 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
322 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
323 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
324 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
325 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
326\
327 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
328 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
329 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
330 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
331 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
332 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
333 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
334 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
335 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
336\
337 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
338 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
339 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
340 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
341 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
342 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
343 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
344 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
345 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
346
347
348#endif
349