changeset 14:ebdb8d68e157

aud-caramel: first-cut audio config for FC-HDS4
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Nov 2021 04:28:43 +0000
parents 39efa8203dfe
children ee565d95164c
files Makefile aud-caramel/Makefile aud-caramel/hds4.src
diffstat 3 files changed, 40 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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}
 
--- /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
--- /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