公司的安卓测试设备需要测试通话录音,
同事写的app始终无法获得清晰的录音效果,
音源设置为AudioSource.MIC时录音效果很不清晰,
对方讲话的声音基本听不清楚,还有背景噪音。
查了很多资料都说设置成以下音源可以有改善:
AudioSource.VOICE_UPLINK
AudioSource.VOICE_DOWNLINK
AudioSource.VOICE_CALL
然而并没有用,
给了sharedUserId,
给了root权限,
录出来空的音轨。。。
网上搜了些有通话录音功能的app,
看看功能和代码,
好像用的是tinyalsa驱动里的玩意,
找了内外网很多资料,
tinycap录音之前说是要用tinymix设置音频输出,
可以怎么设置呢?
现有的资料参数不准确,
又找不到任何能用的详细一点的资料。。。
好吧,我自己看,
Mixer name: 'msm8998-tasha-snd-card'
Number of controls: 2876
ctl type num name value
0 INT 3 Voice Rx Device Mute -1 -1 -1
1 INT 3 Voice Tx Device Mute -1 -1 -1
2 INT 3 Voice Tx Mute -1 -1 -1
3 INT 3 Voice Rx Gain -1 -1 -1
4 ENUM 1 TTY Mode OFF
5 INT 2 Slowtalk Enable -1 -1
6 INT 2 Voice Topology Disable -1 -1
7 INT 2 HD Voice Enable -1 -1
8 BYTE 31 CVD Version 32 2e 33 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
9 BOOL 1 Voice Sidetone Enable Off
10 INT 2 Voip Tx Mute -1 -1
11 INT 2 Voip Rx Gain -1 -1
12 INT 1 Voip Mode Config 12
13 INT 1 Voip Rate Config -1
14 INT 2 Voip Evrc Min Max Rate Config 1 4
15 BOOL 1 Voip Dtx Mode Off
16 BOOL 1 Compress Gapless Playback Off
17 INT 1 HPHL Impedance 0
18 INT 1 HPHR Impedance 0
19 INT 1 HPH Type 0
20 ENUM 1 EAR PA Gain G_6_DB
21 ENUM 1 EAR SPKR PA Gain G_DEFAULT
22 INT 1 HPHL Volume 20
23 INT 1 HPHR Volume 20
24 INT 1 LINEOUT1 Volume 13
25 INT 1 LINEOUT2 Volume 13
26 INT 1 LINEOUT3 Volume 13
27 INT 1 LINEOUT4 Volume 13
28 INT 1 ADC1 Volume 12
29 INT 1 ADC2 Volume 12
30 INT 1 ADC3 Volume 12
31 INT 1 ADC4 Volume 12
32 INT 1 ADC5 Volume 12
33 INT 1 ADC6 Volume 12
34 INT 1 RX0 Digital Volume 84
35 INT 1 RX1 Digital Volume 84
36 INT 1 RX2 Digital Volume 84
37 INT 1 RX3 Digital Volume 84
38 INT 1 RX4 Digital Volume 84
39 INT 1 RX5 Digital Volume 84
40 INT 1 RX6 Digital Volume 84
41 INT 1 RX7 Digital Volume 84
42 INT 1 RX8 Digital Volume 84
43 INT 1 RX0 Mix Digital Volume 84
44 INT 1 RX1 Mix Digital Volume 84
45 INT 1 RX2 Mix Digital Volume 84
46 INT 1 RX3 Mix Digital Volume 84
47 INT 1 RX4 Mix Digital Volume 84
48 INT 1 RX5 Mix Digital Volume 84
49 INT 1 RX6 Mix Digital Volume 84
50 INT 1 RX7 Mix Digital Volume 84
51 INT 1 RX8 Mix Digital Volume 84
52 INT 1 DEC0 Volume 84
53 INT 1 DEC1 Volume 84
54 INT 1 DEC2 Volume 84
55 INT 1 DEC3 Volume 84
56 INT 1 DEC4 Volume 84
57 INT 1 DEC5 Volume 84
58 INT 1 DEC6 Volume 84
59 INT 1 DEC7 Volume 84
60 INT 1 DEC8 Volume 84
61 INT 1 IIR0 INP0 Volume 310
62 INT 1 IIR0 INP1 Volume 84
63 INT 1 IIR0 INP2 Volume 84
64 INT 1 IIR0 INP3 Volume 84
65 INT 1 IIR1 INP0 Volume 84
66 INT 1 IIR1 INP1 Volume 84
67 INT 1 IIR1 INP2 Volume 84
68 INT 1 IIR1 INP3 Volume 84
69 INT 1 ANC Slot 0
70 ENUM 1 ANC Function OFF
71 ENUM 1 CLK MODE EXTERNAL
72 ENUM 1 TX0 HPF cut off CF_NEG_3DB_4HZ
73 ENUM 1 TX1 HPF cut off CF_NEG_3DB_4HZ
74 ENUM 1 TX2 HPF cut off CF_NEG_3DB_4HZ
75 ENUM 1 TX3 HPF cut off CF_NEG_3DB_4HZ
76 ENUM 1 TX4 HPF cut off CF_NEG_3DB_4HZ
77 ENUM 1 TX5 HPF cut off CF_NEG_3DB_4HZ
78 ENUM 1 TX6 HPF cut off CF_NEG_3DB_4HZ
79 ENUM 1 TX7 HPF cut off CF_NEG_3DB_4HZ
80 ENUM 1 TX8 HPF cut off CF_NEG_3DB_4HZ
81 ENUM 1 RX INT0_1 HPF cut off CF_NEG_3DB_0P48HZ
82 ENUM 1 RX INT0_2 HPF cut off CF_NEG_3DB_0P48HZ
83 ENUM 1 RX INT1_1 HPF cut off CF_NEG_3DB_0P48HZ
84 ENUM 1 RX INT1_2 HPF cut off CF_NEG_3DB_0P48HZ
85 ENUM 1 RX INT2_1 HPF cut off CF_NEG_3DB_0P48HZ
86 ENUM 1 RX INT2_2 HPF cut off CF_NEG_3DB_0P48HZ
87 ENUM 1 RX INT3_1 HPF cut off CF_NEG_3DB_0P48HZ
88 ENUM 1 RX INT3_2 HPF cut off CF_NEG_3DB_0P48HZ
89 ENUM 1 RX INT4_1 HPF cut off CF_NEG_3DB_0P48HZ
90 ENUM 1 RX INT4_2 HPF cut off CF_NEG_3DB_0P48HZ
91 ENUM 1 RX INT5_1 HPF cut off CF_NEG_3DB_0P48HZ
92 ENUM 1 RX INT5_2 HPF cut off CF_NEG_3DB_0P48HZ
93 ENUM 1 RX INT6_1 HPF cut off CF_NEG_3DB_0P48HZ
94 ENUM 1 RX INT6_2 HPF cut off CF_NEG_3DB_0P48HZ
95 ENUM 1 RX INT7_1 HPF cut off CF_NEG_3DB_0P48HZ
96 ENUM 1 RX INT7_2 HPF cut off CF_NEG_3DB_0P48HZ
97 ENUM 1 RX INT8_1 HPF cut off CF_NEG_3DB_0P48HZ
98 ENUM 1 RX INT8_2 HPF cut off CF_NEG_3DB_0P48HZ
99 BOOL 1 IIR0 Enable Band1 Off
100 BOOL 1 IIR0 Enable Band2 Off
101 BOOL 1 IIR0 Enable Band3 Off
102 BOOL 1 IIR0 Enable Band4 Off
103 BOOL 1 IIR0 Enable Band5 Off
104 BOOL 1 IIR1 Enable Band1 Off
105 BOOL 1 IIR1 Enable Band2 Off
106 BOOL 1 IIR1 Enable Band3 Off
107 BOOL 1 IIR1 Enable Band4 Off
108 BOOL 1 IIR1 Enable Band5 Off
109 INT 5 IIR0 Band1 0 0 0 0 0
110 INT 5 IIR0 Band2 0 0 0 0 0
111 INT 5 IIR0 Band3 0 0 0 0 0
112 INT 5 IIR0 Band4 0 0 0 0 0
113 INT 5 IIR0 Band5 0 0 0 0 0
114 INT 5 IIR1 Band1 0 0 0 0 0
115 INT 5 IIR1 Band2 0 0 0 0 0
116 INT 5 IIR1 Band3 0 0 0 0 0
117 INT 5 IIR1 Band4 0 0 0 0 0
118 INT 5 IIR1 Band5 0 0 0 0 0
119 BOOL 1 COMP1 Switch On
120 BOOL 1 COMP2 Switch On
121 BOOL 1 COMP3 Switch Off
122 BOOL 1 COMP4 Switch Off
123 BOOL 1 COMP5 Switch Off
124 BOOL 1 COMP6 Switch Off
125 BOOL 1 COMP7 Switch Off
126 BOOL 1 COMP8 Switch Off
127 ENUM 1 RX HPH Mode CLS_H_HIFI
128 ENUM 1 MAD Input NOTUSED1
129 BOOL 1 LDO_H Enable Off
130 BOOL 1 DMIC1_CLK_PIN_MODE Off
131 BOOL 1 DMIC1_DATA_PIN_MODE Off
132 BOOL 1 DMIC2_CLK_PIN_MODE Off
133 BOOL 1 DMIC2_DATA_PIN_MODE Off
134 BOOL 1 DMIC3_CLK_PIN_MODE Off
135 BOOL 1 DMIC3_DATA_PIN_MODE Off
136 ENUM 1 AMIC_1_2 PWR MODE DEFAULT
137 ENUM 1 AMIC_3_4 PWR MODE DEFAULT
138 ENUM 1 AMIC_5_6 PWR MODE DEFAULT
139 INT 2 Vbat ADC data 350 850
140 ENUM 1 GSM mode Enable OFF
141 BOOL 1 CPE AFE MAD Enable Off
142 BOOL 1 HFP TX Mute Off
143 ENUM 1 SLIM RX0 MUX ZERO
144 ENUM 1 SLIM RX1 MUX ZERO
145 ENUM 1 SLIM RX2 MUX ZERO
146 ENUM 1 SLIM RX3 MUX ZERO
147 ENUM 1 SLIM RX4 MUX ZERO
148 ENUM 1 SLIM RX5 MUX ZERO
149 ENUM 1 SLIM RX6 MUX ZERO
150 ENUM 1 SLIM RX7 MUX ZERO
151 ENUM 1 SPL SRC0 MUX ZERO
152 ENUM 1 SPL SRC1 MUX ZERO
153 ENUM 1 SPL SRC2 MUX ZERO
154 ENUM 1 SPL SRC3 MUX ZERO
155 ENUM 1 RX INT0_2 MUX ZERO
156 ENUM 1 RX INT1_2 MUX ZERO
157 ENUM 1 RX INT2_2 MUX ZERO
158 ENUM 1 RX INT3_2 MUX ZERO
159 ENUM 1 RX INT4_2 MUX ZERO
160 ENUM 1 RX INT5_2 MUX ZERO
161 ENUM 1 RX INT6_2 MUX ZERO
162 ENUM 1 RX INT7_2 MUX ZERO
163 ENUM 1 RX INT8_2 MUX ZERO
164 ENUM 1 RX INT0_1 MIX1 INP0 ZERO
165 ENUM 1 RX INT0_1 MIX1 INP1 ZERO
166 ENUM 1 RX INT0_1 MIX1 INP2 ZERO
167 ENUM 1 RX INT1_1 MIX1 INP0 ZERO
168 ENUM 1 RX INT1_1 MIX1 INP1 ZERO
169 ENUM 1 RX INT1_1 MIX1 INP2 ZERO
170 ENUM 1 RX INT2_1 MIX1 INP0 ZERO
171 ENUM 1 RX INT2_1 MIX1 INP1 ZERO
172 ENUM 1 RX INT2_1 MIX1 INP2 ZERO
173 ENUM 1 RX INT3_1 MIX1 INP0 ZERO
174 ENUM 1 RX INT3_1 MIX1 INP1 ZERO
175 ENUM 1 RX INT3_1 MIX1 INP2 ZERO
176 ENUM 1 RX INT4_1 MIX1 INP0 ZERO
177 ENUM 1 RX INT4_1 MIX1 INP1 ZERO
178 ENUM 1 RX INT4_1 MIX1 INP2 ZERO
179 ENUM 1 RX INT5_1 MIX1 INP0 ZERO
180 ENUM 1 RX INT5_1 MIX1 INP1 ZERO
181 ENUM 1 RX INT5_1 MIX1 INP2 ZERO
182 ENUM 1 RX INT6_1 MIX1 INP0 ZERO
183 ENUM 1 RX INT6_1 MIX1 INP1 ZERO
184 ENUM 1 RX INT6_1 MIX1 INP2 ZERO
185 ENUM 1 RX INT7_1 MIX1 INP0 ZERO
186 ENUM 1 RX INT7_1 MIX1 INP1 ZERO
187 ENUM 1 RX INT7_1 MIX1 INP2 ZERO
188 ENUM 1 RX INT8_1 MIX1 INP0 ZERO
189 ENUM 1 RX INT8_1 MIX1 INP1 ZERO
190 ENUM 1 RX INT8_1 MIX1 INP2 ZERO
191 BOOL 1 RX INT1 SPLINE MIX HPHL Switch Off
192 BOOL 1 RX INT2 SPLINE MIX HPHR Switch Off
193 BOOL 1 RX INT3 SPLINE MIX LO1 Switch Off
194 BOOL 1 RX INT4 SPLINE MIX LO2 Switch Off
195 BOOL 1 RX INT5 SPLINE MIX LO3 Switch Off
196 BOOL 1 RX INT6 SPLINE MIX LO4 Switch Off
197 BOOL 1 RX INT7 SPLINE MIX SPKRL Switch Off
198 BOOL 1 RX INT8 SPLINE MIX SPKRR Switch Off
199 BOOL 1 RX INT5 VBAT LO3 VBAT Enable Off
200 BOOL 1 RX INT6 VBAT LO4 VBAT Enable Off
201 BOOL 1 RX INT7 VBAT SPKRL VBAT Enable Off
202 BOOL 1 RX INT8 VBAT SPKRR VBAT Enable Off
203 ENUM 1 RX INT0 MIX2 INP ZERO
204 ENUM 1 RX INT1 MIX2 INP ZERO
205 ENUM 1 RX INT2 MIX2 INP ZERO
206 ENUM 1 RX INT3 MIX2 INP ZERO
207 ENUM 1 RX INT4 MIX2 INP ZERO
208 ENUM 1 RX INT7 MIX2 INP ZERO
209 ENUM 1 SLIM TX0 MUX ZERO
210 ENUM 1 SLIM TX1 MUX ZERO
211 ENUM 1 SLIM TX2 MUX ZERO
212 ENUM 1 SLIM TX3 MUX ZERO
213 ENUM 1 SLIM TX4 MUX ZERO
214 ENUM 1 SLIM TX5 MUX ZERO
215 ENUM 1 SLIM TX6 MUX ZERO
216 ENUM 1 SLIM TX7 MUX ZERO
217 ENUM 1 SLIM TX8 MUX ZERO
218 ENUM 1 SLIM TX9 MUX ZERO
219 ENUM 1 SLIM TX10 MUX ZERO
220 ENUM 1 SLIM TX11 MUX DEC_0_5
221 ENUM 1 SLIM TX11 INP1 MUX ZERO
222 ENUM 1 SLIM TX13 MUX ZERO
223 ENUM 1 TX13 INP MUX CDC_DEC_5
224 ENUM 1 ADC MUX0 AMIC
225 ENUM 1 ADC MUX1 AMIC
226 ENUM 1 ADC MUX2 AMIC
227 ENUM 1 ADC MUX3 AMIC
228 ENUM 1 ADC MUX4 AMIC
229 ENUM 1 ADC MUX5 AMIC
230 ENUM 1 ADC MUX6 AMIC
231 ENUM 1 ADC MUX7 AMIC
232 ENUM 1 ADC MUX8 AMIC
233 ENUM 1 ADC MUX10 AMIC
234 ENUM 1 ADC MUX11 AMIC
235 ENUM 1 ADC MUX12 AMIC
236 ENUM 1 ADC MUX13 AMIC
237 ENUM 1 DMIC MUX0 ZERO
238 ENUM 1 DMIC MUX1 ZERO
239 ENUM 1 DMIC MUX2 ZERO
240 ENUM 1 DMIC MUX3 ZERO
241 ENUM 1 DMIC MUX4 ZERO
242 ENUM 1 DMIC MUX5 ZERO
243 ENUM 1 DMIC MUX6 ZERO
244 ENUM 1 DMIC MUX7 ZERO
245 ENUM 1 DMIC MUX8 ZERO
246 ENUM 1 DMIC MUX10 ZERO
247 ENUM 1 DMIC MUX11 ZERO
248 ENUM 1 DMIC MUX12 ZERO
249 ENUM 1 DMIC MUX13 ZERO
250 ENUM 1 AMIC MUX0 ZERO
251 ENUM 1 AMIC MUX1 ZERO
252 ENUM 1 AMIC MUX2 ZERO
253 ENUM 1 AMIC MUX3 ZERO
254 ENUM 1 AMIC MUX4 ZERO
255 ENUM 1 AMIC MUX5 ZERO
256 ENUM 1 AMIC MUX6 ZERO
257 ENUM 1 AMIC MUX7 ZERO
258 ENUM 1 AMIC MUX8 ZERO
259 ENUM 1 AMIC MUX10 ZERO
260 ENUM 1 AMIC MUX11 ZERO
261 ENUM 1 AMIC MUX12 ZERO
262 ENUM 1 AMIC MUX13 ZERO
263 ENUM 1 ANC0 FB MUX ZERO
264 ENUM 1 ANC1 FB MUX ZERO
265 BOOL 1 AIF4_VI Mixer SPKR_VI_1 Off
266 BOOL 1 AIF4_VI Mixer SPKR_VI_2 Off
267 BOOL 1 AIF1_CAP Mixer SLIM TX0 Off
268 BOOL 1 AIF1_CAP Mixer SLIM TX1 Off
269 BOOL 1 AIF1_CAP Mixer SLIM TX2 Off
270 BOOL 1 AIF1_CAP Mixer SLIM TX3 Off
271 BOOL 1 AIF1_CAP Mixer SLIM TX4 Off
272 BOOL 1 AIF1_CAP Mixer SLIM TX5 Off
273 BOOL 1 AIF1_CAP Mixer SLIM TX6 Off
274 BOOL 1 AIF1_CAP Mixer SLIM TX7 Off
275 BOOL 1 AIF1_CAP Mixer SLIM TX8 Off
276 BOOL 1 AIF1_CAP Mixer SLIM TX9 Off
277 BOOL 1 AIF1_CAP Mixer SLIM TX10 Off
278 BOOL 1 AIF1_CAP Mixer SLIM TX11 Off
279 BOOL 1 AIF1_CAP Mixer SLIM TX13 Off
280 BOOL 1 AIF2_CAP Mixer SLIM TX0 Off
281 BOOL 1 AIF2_CAP Mixer SLIM TX1 Off
282 BOOL 1 AIF2_CAP Mixer SLIM TX2 Off
283 BOOL 1 AIF2_CAP Mixer SLIM TX3 Off
284 BOOL 1 AIF2_CAP Mixer SLIM TX4 Off
285 BOOL 1 AIF2_CAP Mixer SLIM TX5 Off
286 BOOL 1 AIF2_CAP Mixer SLIM TX6 Off
287 BOOL 1 AIF2_CAP Mixer SLIM TX7 Off
288 BOOL 1 AIF2_CAP Mixer SLIM TX8 Off
289 BOOL 1 AIF2_CAP Mixer SLIM TX9 Off
290 BOOL 1 AIF2_CAP Mixer SLIM TX10 Off
291 BOOL 1 AIF2_CAP Mixer SLIM TX11 Off
292 BOOL 1 AIF2_CAP Mixer SLIM TX13 Off
293 BOOL 1 AIF3_CAP Mixer SLIM TX0 Off
294 BOOL 1 AIF3_CAP Mixer SLIM TX1 Off
295 BOOL 1 AIF3_CAP Mixer SLIM TX2 Off
296 BOOL 1 AIF3_CAP Mixer SLIM TX3 Off
297 BOOL 1 AIF3_CAP Mixer SLIM TX4 Off
298 BOOL 1 AIF3_CAP Mixer SLIM TX5 Off
299 BOOL 1 AIF3_CAP Mixer SLIM TX6 Off
300 BOOL 1 AIF3_CAP Mixer SLIM TX7 Off
301 BOOL 1 AIF3_CAP Mixer SLIM TX8 Off
302 BOOL 1 AIF3_CAP Mixer SLIM TX9 Off
303 BOOL 1 AIF3_CAP Mixer SLIM TX10 Off
304 BOOL 1 AIF3_CAP Mixer SLIM TX11 Off
305 BOOL 1 AIF3_CAP Mixer SLIM TX13 Off
306 BOOL 1 AIF4_MAD Mixer SLIM TX12 Off
307 BOOL 1 AIF4_MAD Mixer SLIM TX13 Off
308 BOOL 1 AIF4_MAD Mixer SLIM TX1 Off
309 ENUM 1 EC BUF MUX INP ZERO
310 ENUM 1 IIR0 INP0 MUX ZERO
311 ENUM 1 IIR0 INP1 MUX ZERO
312 ENUM 1 IIR0 INP2 MUX ZERO
313 ENUM 1 IIR0 INP3 MUX ZERO
314 ENUM 1 IIR1 INP0 MUX ZERO
315 ENUM 1 IIR1 INP1 MUX ZERO
316 ENUM 1 IIR1 INP2 MUX ZERO
317 ENUM 1 IIR1 INP3 MUX ZERO
318 BOOL 1 CPE IN Mixer MAD_BYPASS Off
319 ENUM 1 RX INT1_1 NATIVE MUX OFF
320 ENUM 1 RX INT2_1 NATIVE MUX OFF
321 ENUM 1 RX INT3_1 NATIVE MUX OFF
322 ENUM 1 RX INT4_1 NATIVE MUX OFF
323 ENUM 1 RX MIX TX0 MUX ZERO
324 ENUM 1 RX MIX TX1 MUX ZERO
325 ENUM 1 RX MIX TX2 MUX ZERO
326 ENUM 1 RX MIX TX3 MUX ZERO
327 ENUM 1 RX MIX TX4 MUX ZERO
328 ENUM 1 RX MIX TX5 MUX ZERO
329 ENUM 1 RX MIX TX6 MUX ZERO
330 ENUM 1 RX MIX TX7 MUX ZERO
331 ENUM 1 RX MIX TX8 MUX ZERO
332 ENUM 1 RX INT0 DEM MUX CLSH_DSM_OUT
333 ENUM 1 RX INT1 DEM MUX CLSH_DSM_OUT
334 ENUM 1 RX INT2 DEM MUX CLSH_DSM_OUT
335 ENUM 1 RX INT0 INTERP ZERO
336 ENUM 1 RX INT1 INTERP ZERO
337 ENUM 1 RX INT2 INTERP ZERO
338 ENUM 1 RX INT3 INTERP ZERO
339 ENUM 1 RX INT4 INTERP ZERO
340 ENUM 1 RX INT5 INTERP ZERO
341 ENUM 1 RX INT6 INTERP ZERO
342 ENUM 1 RX INT7 INTERP ZERO
343 ENUM 1 RX INT8 INTERP ZERO
344 BOOL 1 ADC US MUX0 US_Switch Off
345 BOOL 1 ADC US MUX1 US_Switch Off
346 BOOL 1 ADC US MUX2 US_Switch Off
347 BOOL 1 ADC US MUX3 US_Switch Off
348 BOOL 1 ADC US MUX4 US_Switch Off
349 BOOL 1 ADC US MUX5 US_Switch Off
350 BOOL 1 ADC US MUX6 US_Switch Off
351 BOOL 1 ADC US MUX7 US_Switch Off
352 BOOL 1 ADC US MUX8 US_Switch Off
353 ENUM 1 MAD_SEL MUX MSM
354 BOOL 1 MADONOFF Switch Off
355 BOOL 1 MAD_BROADCAST Switch Off
356 BOOL 1 ANC HPHL Enable Switch Off
357 BOOL 1 ANC HPHR Enable Switch