From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis <frederic.danis@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] voicecall: fix waiting calls for HFP emulator
Date: Fri, 22 Apr 2011 17:44:02 +0200 [thread overview]
Message-ID: <1303487042-8612-1-git-send-email-frederic.danis@linux.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
Fix precedence between waiting and dialing so HFP emulator is notified
of dialing/alerting even in case of a waiting call pending.
---
src/voicecall.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 7aa0b7e..dcc358e 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -770,12 +770,14 @@ static void notify_emulator_call_status(struct ofono_voicecall *vc)
emulator_call_status_cb,
GINT_TO_POINTER(status));
- if (incoming || waiting)
+ if (incoming)
status = OFONO_EMULATOR_CALLSETUP_INCOMING;
else if (dialing)
status = OFONO_EMULATOR_CALLSETUP_OUTGOING;
else if (alerting)
status = OFONO_EMULATOR_CALLSETUP_ALERTING;
+ else if (waiting)
+ status = OFONO_EMULATOR_CALLSETUP_INCOMING;
else
status = OFONO_EMULATOR_CALLSETUP_INACTIVE;
--
1.7.1
next reply other threads:[~2011-04-22 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-22 15:44 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis [this message]
2011-04-26 19:44 ` [PATCH] voicecall: fix waiting calls for HFP emulator 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=1303487042-8612-1-git-send-email-frederic.danis@linux.intel.com \
--to=frederic.danis@linux.intel.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