FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/ati_sim.c @ 284:bba917c3b510
aci: don't reset audio volume on AT+CFUN
TI's AT-command-controlled modems have always had the peculiar
misfeature where the audio volume gets reset to default on AT+CFUN,
blowing away any AT+CLVL changes made previously. This misfeature
is now getting worse, now that the audio volume may be set as a
side effect of audio mode loading, in addition to explicit AT+CLVL.
So let's take out this unnecessary audio volume reset.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 08 Nov 2021 21:52:29 +0000 |
parents | fa8dc04885d8 |
children |
comparison
equal
deleted
inserted
replaced
283:d9e3f3e293ac | 284:bba917c3b510 |
---|---|
655 TRACE_FUNCTION("setatPlusCFUN()"); | 655 TRACE_FUNCTION("setatPlusCFUN()"); |
656 ret = sAT_PlusCFUN ((T_ACI_CMD_SRC)srcId,fun,rst); | 656 ret = sAT_PlusCFUN ((T_ACI_CMD_SRC)srcId,fun,rst); |
657 switch (ret) | 657 switch (ret) |
658 { | 658 { |
659 case AT_EXCT: /*Command is executing*/ | 659 case AT_EXCT: /*Command is executing*/ |
660 #if 0 /* removed in FreeCalypso */ | |
660 audio_SetAmplf (AUDIO_MICROPHONE, (UBYTE)75); | 661 audio_SetAmplf (AUDIO_MICROPHONE, (UBYTE)75); |
661 audio_SetAmplf (AUDIO_SPEAKER, (UBYTE)175); | 662 audio_SetAmplf (AUDIO_SPEAKER, (UBYTE)175); |
663 #endif | |
662 src_params->curAtCmd = AT_CMD_CFUN; | 664 src_params->curAtCmd = AT_CMD_CFUN; |
663 break; | 665 break; |
664 | 666 |
665 case AT_CMPL: | 667 case AT_CMPL: |
666 src_params->curAtCmd = AT_CMD_NONE; | 668 src_params->curAtCmd = AT_CMD_NONE; |