Skip to contentSkip to conversation

stemodem: Added handling of ECAV status Released.

PATCH In review Marit Henriksen 2 participants 2 messages Feb 3, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stemodem: Added handling of ECAV status Released.

From: Marit Henriksen <[email protected]>

- *ECAV UR code has been extended with a new state Released, sent immediately when MO call is released.
- Apply rule M11 of coding style.

---
 drivers/stemodem/voicecall.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)
drivers/stemodem/voicecall.c +11 -9
index 1c7c0bd..abd60fc 100644
@@ -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;
@@ -538,7 +540,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;
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

Quoted 9 lines · Marit Henriksen

From: Marit Henriksen <[email protected]>

- *ECAV UR code has been extended with a new state Released, sent immediately when MO call is released.
- Apply rule M11 of coding style.

---
 drivers/stemodem/voicecall.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis