From 6d501aa93ade18112605edec6be14336a0076dcc Mon Sep 17 00:00:00 2001 From: Frédéric Dalleau Date: Mon, 2 May 2011 17:48:06 +0200 Subject: voicecall: add +CHLD=4 support for HFP emulator --- src/voicecall.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index b420071c..3fe590d4 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -2795,6 +2795,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, vc->driver->create_multiparty(vc, emulator_generic_cb, em); return; + case 4: + if (vc->driver->transfer == NULL) + goto fail; + + vc->driver->transfer(vc, + emulator_generic_cb, em); + return; default: goto fail; } @@ -2828,6 +2835,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, *info++ = '3'; } + if (vc->driver->transfer) { + if (info - buf > 6) + *info++ = ','; + + *info++ = '4'; + } + *info++ = '\0'; ofono_emulator_send_info(em, buf, TRUE); -- cgit v1.2.3