annotate aud-c139/headset.src @ 7:57f97e839441 default tip

aud-pirelli/headset.src: cosmetic fix (rm extra empty line)
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 Aug 2022 18:27:56 +0000
parents e1878231dbcd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # C139 headset audio mode, reconstructed from register readings
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # collected in freecalypso-reveng repository, compal/audio directory
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 mic headset {
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 gain 9 # read out via omr in active call state
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 output-bias 0 # C139 uses 2.0V
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 }
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 # C139 fw applies complex volume control: it messes with PGA settings,
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 # and in headset mode it also applies a FIR filter that produces a 6 dB
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 # digital gain without any frequency curve transformation.
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 #
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 # For FreeCalypso, given how far we are from actually using the headset jack
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 # on C139 for its headset function (as opposed to the serial port),
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 # we are going to start with PGA at 0 and no weird FIR.
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 speaker headset {
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 gain 0
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 }
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 sidetone -23 # readout of VBUCTRL from official fw
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 # C139 AEC config for headset mode
e1878231dbcd aud-c139: preliminary version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 aec-new 2 1 0x14 0x4CCC 0x59AD 0x7500 0 0x1000 0x1000 0 4 0x20