view 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
line wrap: on
line source

# C139 headset audio mode, reconstructed from register readings
# collected in freecalypso-reveng repository, compal/audio directory

mic headset {
	gain 9		# read out via omr in active call state
	output-bias 0	# C139 uses 2.0V
}

# C139 fw applies complex volume control: it messes with PGA settings,
# and in headset mode it also applies a FIR filter that produces a 6 dB
# digital gain without any frequency curve transformation.
#
# For FreeCalypso, given how far we are from actually using the headset jack
# on C139 for its headset function (as opposed to the serial port),
# we are going to start with PGA at 0 and no weird FIR.

speaker headset {
	gain 0
}

sidetone -23		# readout of VBUCTRL from official fw

# C139 AEC config for headset mode
aec-new 2 1 0x14 0x4CCC 0x59AD 0x7500 0 0x1000 0x1000 0 4 0x20