FreeCalypso > hg > fc-audio-config
annotate aud-fcdev3b/spkr0.src @ 12:b57c380d78e7
aud-fcdev3b/README: explanation of new vs. historical configs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 09 Oct 2021 04:26:59 +0000 |
parents | 46f49aa6ab8c |
children |
rev | line source |
---|---|
11
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # The official voice call kit for FCDEV3B consists of a SparkFun COM-09151 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # loudspeaker and a CUI CMC-9745-130T microphone. The present audio mode |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # config has been tuned as follows: |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # 1) AEC is enabled as needed for all not-held-to-ear loudspeaker setups; |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # 2) The microphone gain has been tuned to provide the most natural |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 # voice levels to parties on the far end of the call, matching standard |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 # phones; |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 # |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 # 3) The sidetone level has been turned down: the default -5 dB is too loud |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 # and causes singing effects with the raised microphone gain. |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 mic default { |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 gain 8 # tuned for CMC-9745-130T and FCDEV3B mic input circuit |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 output-bias 0 # 2.0V appears to be correct for CMC-9745-130T |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 # Mic has very flat frequency response, thus no FIR needed |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 } |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 # We don't have a FIR filter for our SparkFun COM-09151 loudspeaker. There is |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 # no datasheet for this speaker on SparkFun website, thus we don't know its |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 # frequency response curve, and even if we got the needed data, the work to |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 # create a flattening filter would probably be more than we can justify. |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 speaker ear { |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 gain 0 # left at default for now |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 } |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 # The canon seems to be to disable the sidetone altogether in loudspeaker |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 # setups, but we set it to the lowest level instead, so we keep exercising |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 # this chipset feature - our FCDEV3B is unusual in that the loudspeaker |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 # is the only way to exercise voice calls. |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 sidetone -23 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 # The AEC configuration has been copied from Pirelli DP-L10, or more |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 # specifically, Pirelli's loudspeaker mode AEC config. Unfortunately |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 # we lack sufficient Calypso DSP documentation to even understand most |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 # of these tunable settings, let alone actually tune them, hence |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 # copying Pirelli's config is the best we can do at the moment. |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 |
46f49aa6ab8c
aud-fcdev3b: new spkr0 config with AEC and mic tuning
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 aec-new 2 1 0x14 0xCCC 0xFFF 0x4000 0x32 0x1000 0x1000 0 4 0x60 |