Open Source Telephony
 help / color / mirror / Atom feed
From: Marit Henriksen <maritsofie.henriksen8@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] stemodem: Added handling of ECAV status Released.
Date: Thu, 03 Feb 2011 14:19:16 +0100	[thread overview]
Message-ID: <1296739156-23761-1-git-send-email-maritsofie.henriksen8@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]

From: Marit Henriksen <marit.henriksen@stericsson.com>

- *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(-)

diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 1c7c0bd..abd60fc 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;
@@ -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;
-- 
1.7.1


             reply	other threads:[~2011-02-03 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03 13:19 Marit Henriksen [this message]
2011-02-03 16:17 ` [PATCH] stemodem: Added handling of ECAV status Released Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1296739156-23761-1-git-send-email-maritsofie.henriksen8@gmail.com \
    --to=maritsofie.henriksen8@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox