# HG changeset patch # User Mychaela Falconia # Date 1636172923 0 # Node ID ebdb8d68e157653a67c9193eabd197aef3a367d3 # Parent 39efa8203dfeaacaa0bb4687f2544f6452f881b0 aud-caramel: first-cut audio config for FC-HDS4 diff -r 39efa8203dfe -r ebdb8d68e157 Makefile --- a/Makefile Sat Oct 09 04:37:28 2021 +0000 +++ b/Makefile Sat Nov 06 04:28:43 2021 +0000 @@ -1,4 +1,4 @@ -SUBDIR= aud-fcdev3b aud-gtamodem aud-minimal aud-pirelli +SUBDIR= aud-caramel aud-fcdev3b aud-gtamodem aud-minimal aud-pirelli all: ${SUBDIR} diff -r 39efa8203dfe -r ebdb8d68e157 aud-caramel/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aud-caramel/Makefile Sat Nov 06 04:28:43 2021 +0000 @@ -0,0 +1,17 @@ +BINFILES= hds4.cfg hds4.vol +INSTDIR= /opt/freecalypso/aud-caramel + +all: ${BINFILES} + +hds4.cfg: hds4.src + tiaud-compile $< $@ + +hds4.vol: Makefile + tiaud-mkvol 150 $@ + +install: ${BINFILES} + mkdir -p ${INSTDIR} + install -c -m 644 ${BINFILES} ${INSTDIR} + +clean: + rm -f *.cfg *.vol diff -r 39efa8203dfe -r ebdb8d68e157 aud-caramel/hds4.src --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aud-caramel/hds4.src Sat Nov 06 04:28:43 2021 +0000 @@ -0,0 +1,22 @@ +# This audio mode config is for the FC-HDS4 headset plugged into the +# main (EAR/MIC) audio jack on Caramel (iWOW DSK) or FC Caramel2 +# development boards. + +mic default { + gain 8 # tuned empirically for far end subjective perception + output-bias 1 # FC-HDS4 microphone needs 2.5V +# Mic appears to have flat frequency response, thus no FIR needed +} + +speaker ear { + gain 0 # left at default for now +# We do have frequency response data, but no flattening FIR filter design +# has been attempted yet +} + +sidetone -17 # sounds reasonable + +# Let's try using Pirelli's non-loudspeaker (handheld/headset) +# AEC config. + +aec-new 2 1 0x14 0xCCC 0x59AD 0x4000 0x32 0x1000 0x1000 0 4 0