summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarit Henriksen <marit.henriksen@stericsson.com>2011-02-03 14:19:16 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-03 10:14:51 -0600
commitc1603c77ccc4c5c99f1c10401acff9ad6cfb6296 (patch)
tree1a2791b0f2b60418898dfcbb39db1a681dfcf53a /drivers
parent424dc12752a4ac5c20b00c861579c89b41f174d3 (diff)
downloadofono-c1603c77ccc4c5c99f1c10401acff9ad6cfb6296.tar.bz2
stemodem: Add handling of ECAV status Released
- *ECAV UR code has been extended with a new state Released, sent immediately when MO call is released. - Apply rule M11 of coding style.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/stemodem/voicecall.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index fa078a86..7b2ede27 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -43,14 +43,15 @@
#include "stemodem.h"
enum call_status_ste {
- STE_CALL_STATUS_IDLE = 0,
- STE_CALL_STATUS_CALLING = 1,
- STE_CALL_STATUS_CONNECTING = 2,
- STE_CALL_STATUS_ACTIVE = 3,
- STE_CALL_STATUS_HOLD = 4,
- STE_CALL_STATUS_WAITING = 5,
- STE_CALL_STATUS_ALERTING = 6,
- STE_CALL_STATUS_BUSY = 7
+ STE_CALL_STATUS_IDLE = 0,
+ STE_CALL_STATUS_CALLING = 1,
+ STE_CALL_STATUS_CONNECTING = 2,
+ STE_CALL_STATUS_ACTIVE = 3,
+ STE_CALL_STATUS_HOLD = 4,
+ STE_CALL_STATUS_WAITING = 5,
+ STE_CALL_STATUS_ALERTING = 6,
+ STE_CALL_STATUS_BUSY = 7,
+ STE_CALL_STATUS_RELEASED = 8,
};
static const char *none_prefix[] = { NULL };
@@ -80,6 +81,7 @@ static int call_status_ste_to_ofono(enum call_status_ste status)
{
switch (status) {
case STE_CALL_STATUS_IDLE:
+ case STE_CALL_STATUS_RELEASED:
return CALL_STATUS_DISCONNECTED;
case STE_CALL_STATUS_CALLING:
return CALL_STATUS_DIALING;
@@ -540,7 +542,7 @@ static int ste_voicecall_probe(struct ofono_voicecall *vc, unsigned int vendor,
ofono_voicecall_set_data(vc, vd);
- g_at_chat_send(vd->chat, "AT*ECAM=1", none_prefix,
+ g_at_chat_send(vd->chat, "AT*ECAM=2", none_prefix,
ste_voicecall_initialized, vc, NULL);
return 0;