# HG changeset patch # User Mychaela Falconia # Date 1503813200 0 # Node ID dd3374eac8a362130fb8090f304e839e6776bbf5 # Parent d85305a74518f6c05492373f45d5ce8603d2271f AT@VPATH setting implemented diff -r d85305a74518 -r dd3374eac8a3 src/aci2/aci/ati_audio.c --- 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 ) {