annotate compal/audio/tfc139-headset-entry @ 398:e5e5ed527cc1

compal: one more flash bootloader version
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 14 Jan 2023 06:09:25 +0000
parents 82fb5a70c9fd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
378
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 The following results have been obtained by connecting to a C139 phone via the
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 headset jack, switching to "Trace On" via the **16379# hidden menu, breaking in
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 with tfc139, then running the new tfc139-audio-dump command in fc-loadtool:
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 d_aec_ctrl: 0x03C7
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 New AEC params: 0x0001 0x0014 0x4CCC 0x59AD 0x7500 0x0000 0x1000 0x1000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 Uplink FIR coefficients:
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 0x4000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 Downlink FIR coefficients:
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 0x7FFF 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 VBCTRL1: 0x004
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 VBCTRL2: 0x007
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 VBPOP: 0x004
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 VBUCTRL: 0x1B2
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 VBDCTRL: 0x069
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 Commentary: the values read out of VBCTRL1 and VBCTRL2 registers are consistent
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 with the headset audio channel being selected for both input and output, leading
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 to the suspicion that the firmware probably switched the audio path to headset
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 mode even though the **16379# hidden menu selection was set to "Trace On". The
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 Mother's primary interest here is to see the official C139 fw settings for the
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 handheld audio mode (built-in earpiece and mic) rather than the headset mode,
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 but it now appears that such capture won't be possible except maybe by
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 connecting to the production test pads inside the battery compartment,
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 bypassing the headset jack.
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 Looking at what appears to be C139 headset mode audio config, we see that
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 HSMICBIAS voltage is set to 2.0 V, the uplink gain is set to 8 dB, and the
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 sidetone level is set to -23 dB: we get this info from the MICBIAS bit in
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 VBCTRL1 and the VBUCTRL setting. Decoding VBDCTRL, we see that the volume
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 control is set to -6 dB and the PGA gain is set to 3 dB. However, these
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 VBDCTRL settings don't tell us much: see the volume-ctrl article.
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 Also note the FIR coefficient oddity: no frequency curve-transforming FIR
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 filters are being set up, neither UL nor DL, but DL FIR coefficient 0 is set to
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 0x7FFF instead of 0x4000. This oddity means that Calypso DL FIR block is
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 producing a 6 dB gain (doubling of the samples) purely on the digital side,
82fb5a70c9fd compal/audio: results of simple experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 before DL audio passes to the ABB - certainly a noteworthy hack.