changeset 288:dd3374eac8a3

AT@VPATH setting implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Aug 2017 05:53:20 +0000
parents d85305a74518
children 8dd51b740701
files src/aci2/aci/ati_audio.c
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/aci/ati_audio.c	Sun Aug 27 03:27:45 2017 +0000
+++ b/src/aci2/aci/ati_audio.c	Sun Aug 27 05:53:20 2017 +0000
@@ -167,6 +167,34 @@
 	return (ATI_CMPL);
 }
 
+#ifdef CONFIG_TARGET_FCDEV3B
+/* AT@VPATH - configure digital voice path */
+GLOBAL T_ATI_RSLT atAtVPATH ( char *cl, UBYTE srcId )
+{
+	int vpath_int;
+	T_AUDIO_VOICE_PATH_SETTING vpath;
+	T_AUDIO_FULL_ACCESS_WRITE audio_param;
+	T_RV_RETURN return_path;
+
+	TRACE_FUNCTION("atAtVPATH()");
+
+	cl = parse(cl, "D", &vpath_int);
+	if (!cl)
+		return (ATI_FAIL);
+	vpath = vpath_int;
+	audio_param.variable_indentifier = AUDIO_PATH_USED;
+	audio_param.data = &vpath;
+
+	return_path.addr_id        = NULL;
+	return_path.callback_func  = audio_callback;
+	if (audio_full_access_write(&audio_param, return_path) == AUDIO_OK)
+		return (ATI_CMPL);
+	else
+		return (ATI_FAIL);
+}
+
+#endif
+
 /* AT@E1 - play an E1 format melody */
 GLOBAL T_ATI_RSLT atAtE1 ( char *cl, UBYTE srcId )
 {