changeset 454:8473cabf491d

aci3: AT@SPKR command enabled for D-Sample target like in aci2
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Mar 2018 00:02:36 +0000
parents 96c047b4325e
children beff67c568cf
files src/g23m-aci/aci/ati_audio.c src/g23m-aci/aci/ati_cmd.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_audio.c	Thu Mar 15 05:48:03 2018 +0000
+++ b/src/g23m-aci/aci/ati_audio.c	Fri Mar 16 00:02:36 2018 +0000
@@ -69,7 +69,7 @@
 #include "fc-target.cfg"
 #include "armio.h"
 
-#ifdef CONFIG_TARGET_FCDEV3B
+#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCDEV3B)
 /* AT@SPKR - turn loudspeaker amplifier on or off */
 GLOBAL T_ATI_RSLT atAtSPKR ( char *cl, UBYTE srcId )
 {
--- a/src/g23m-aci/aci/ati_cmd.c	Thu Mar 15 05:48:03 2018 +0000
+++ b/src/g23m-aci/aci/ati_cmd.c	Fri Mar 16 00:02:36 2018 +0000
@@ -743,9 +743,11 @@
 EXTERN T_ATI_RSLT atAtBAND (CHAR *cl, UBYTE srcId);
 
 /* FreeCalypso additions */
-#ifdef CONFIG_TARGET_FCDEV3B
+#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCDEV3B)
 EXTERN T_ATI_RSLT atAtSPKR (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT queatAtSPKR (char *cl, UBYTE srcId);
+#endif
+#ifdef CONFIG_TARGET_FCDEV3B
 EXTERN T_ATI_RSLT atAtVPATH (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT queatAtVPATH (char *cl, UBYTE srcId);
 #endif
@@ -1204,8 +1206,10 @@
     {"@BAND",     AT_CMD_P_BAND,   atAtBAND,     0,       0,    0},
 #endif
     /* FreeCalypso additions */
+#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCDEV3B)
+    {"@SPKR",	AT_CMD_AT_SPKR,  atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"},
+#endif
 #ifdef CONFIG_TARGET_FCDEV3B
-    {"@SPKR",	AT_CMD_AT_SPKR,  atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"},
     {"@VPATH",	AT_CMD_AT_VPATH, atAtVPATH,test_gen, queatAtVPATH,"%s: (0-2)"},
 #endif
     {"@SND",	AT_CMD_AT_SND,   atAtSND,	0,	0,	0},