linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] Fix +CLCC in maemo6 during CSD_CALL_STATUS_COMING
@ 2011-10-13 10:25 Dmitriy Paliy
  2011-10-13 10:46 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitriy Paliy @ 2011-10-13 10:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Dmitriy Paliy

This fixes the same issue as in 8a6119ea1c685fc61419ee444a5967596f524c1c
but for CSD_CALL_STATUS_COMING. Call status change sequence in csd is
IDLE to COMING, COMING to PROCEEDING, and PROCEEDING to WAITING.

Returned 'state of the call' value after CSD_CALL_STATUS_COMING, as well
as after CSD_CALL_STATUS_PROCEEDING, in +CLCC shall be 5 (waiting, MT
call) instead of 4 (incoming, MT call) in maemo6 telephony driver for the
second incoming call.
---
 audio/telephony-maemo6.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index 82cb274..40d1bab 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -943,6 +943,9 @@ static int csd_status_to_hfp(struct csd_call *call)
 
 		return CALL_STATUS_INCOMING;
 	case CSD_CALL_STATUS_COMING:
+		if (g_slist_length(active_calls) > 0)
+			return CALL_STATUS_WAITING;
+
 		return CALL_STATUS_INCOMING;
 	case CSD_CALL_STATUS_MO_ALERTING:
 		return CALL_STATUS_ALERTING;
-- 
1.7.4.1


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

* Re: [PATCH BlueZ] Fix +CLCC in maemo6 during CSD_CALL_STATUS_COMING
  2011-10-13 10:25 [PATCH BlueZ] Fix +CLCC in maemo6 during CSD_CALL_STATUS_COMING Dmitriy Paliy
@ 2011-10-13 10:46 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-10-13 10:46 UTC (permalink / raw)
  To: Dmitriy Paliy; +Cc: linux-bluetooth

Hi Dmitriy,

On Thu, Oct 13, 2011, Dmitriy Paliy wrote:
> This fixes the same issue as in 8a6119ea1c685fc61419ee444a5967596f524c1c
> but for CSD_CALL_STATUS_COMING. Call status change sequence in csd is
> IDLE to COMING, COMING to PROCEEDING, and PROCEEDING to WAITING.
> 
> Returned 'state of the call' value after CSD_CALL_STATUS_COMING, as well
> as after CSD_CALL_STATUS_PROCEEDING, in +CLCC shall be 5 (waiting, MT
> call) instead of 4 (incoming, MT call) in maemo6 telephony driver for the
> second incoming call.
> ---
>  audio/telephony-maemo6.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2011-10-13 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13 10:25 [PATCH BlueZ] Fix +CLCC in maemo6 during CSD_CALL_STATUS_COMING Dmitriy Paliy
2011-10-13 10:46 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).