changeset 7:677abb56abac

create aud-minimal mode config Our FreeCalypso handset firmware will soon start requiring audio mode configuration files. handfree and headset modes can be omitted on targets that have no headset or loudspeaker support, but the basic handheld mode will always be required - if audio mode loading fails, then volume control via RV Audio Service won't work. The minimal handheld mode config created here should be correct for all currently supported targets.
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 14 Jun 2021 00:57:24 +0000
parents 223db079c77f
children 74933941ea81
files Makefile aud-minimal/Makefile aud-minimal/handheld.src
diffstat 3 files changed, 24 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Jun 02 19:22:48 2018 +0000
+++ b/Makefile	Mon Jun 14 00:57:24 2021 +0000
@@ -1,4 +1,4 @@
-SUBDIR=	aud-fcdev3b aud-gtamodem
+SUBDIR=	aud-fcdev3b aud-gtamodem aud-minimal
 
 all:	${SUBDIR}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aud-minimal/Makefile	Mon Jun 14 00:57:24 2021 +0000
@@ -0,0 +1,17 @@
+BINFILES=	handheld.cfg handheld.vol
+INSTDIR=	/opt/freecalypso/aud-minimal
+
+all:	${BINFILES}
+
+handheld.cfg:	handheld.src
+	tiaud-compile $< $@
+
+handheld.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-minimal/handheld.src	Mon Jun 14 00:57:24 2021 +0000
@@ -0,0 +1,6 @@
+# On all Calypso targets which we currently support (both native and alien),
+# the default "handheld" audio path uses primary EARN&EARP outputs and
+# primary MICIN&MICIP inputs.
+
+mic default
+speaker ear