All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] isimodem: voicecall answer fix for Nemo on N9
@ 2012-09-10 12:16 Jarko Poutiainen
  2012-09-12  4:30 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Jarko Poutiainen @ 2012-09-10 12:16 UTC (permalink / raw)
  To: ofono

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

Voicecall answering in Mer/Nemomobile run on Nokia N9 will fail unless call id is passed to modem. This patch fixes that issue.

---
 drivers/isimodem/voicecall.c |   15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c
index 2f38f68..b549687 100644
--- a/drivers/isimodem/voicecall.c
+++ b/drivers/isimodem/voicecall.c
@@ -1504,7 +1504,20 @@ static void isi_dial(struct ofono_voicecall *ovc,
 static void isi_answer(struct ofono_voicecall *ovc, ofono_voicecall_cb_t cb,
 			void *data)
 {
-	isi_call_answer_req(ovc, CALL_ID_ALL, cb, data);
+	struct isi_voicecall *ivc = ofono_voicecall_get_data(ovc);
+	int id;
+
+	for (id = 1; id <= 7; id++) {
+
+		if (ivc->calls[id].status == CALL_STATUS_MT_ALERTING)
+			goto answer_by_id;
+
+	}
+
+	id = CALL_ID_ALL;
+
+answer_by_id:
+	isi_call_answer_req(ovc, id, cb, data);
 }
 
 static void isi_hangup_current(struct ofono_voicecall *ovc,
-- 
1.7.9.5


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

end of thread, other threads:[~2012-09-12  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 12:16 [PATCH] isimodem: voicecall answer fix for Nemo on N9 Jarko Poutiainen
2012-09-12  4:30 ` 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.