view aud-c139/headset.src @ 4:e1878231dbcd

aud-c139: preliminary version
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 05 Apr 2022 06:22:50 +0000
parents
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