All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] voicecall: fix waiting calls for HFP emulator
@ 2011-04-22 15:44 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
  2011-04-26 19:44 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-04-22 15:44 UTC (permalink / raw)
  To: ofono

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] voicecall: fix waiting calls for HFP emulator
  2011-04-22 15:44 [PATCH] voicecall: fix waiting calls for HFP emulator =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
@ 2011-04-26 19:44 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-04-26 19:44 UTC (permalink / raw)
  To: ofono

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

Hi Frédéric,

On 04/22/2011 10:44 AM, Frédéric Danis wrote:
> 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(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-26 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22 15:44 [PATCH] voicecall: fix waiting calls for HFP emulator =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-04-26 19:44 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.