summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>2011-05-02 17:48:08 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-05-04 22:00:21 -0500
commit307687942af135babcd5c31bc4f976a0a11086c2 (patch)
tree45f1509c8fda88688a517fd10335a8a611cf2ec9 /src/voicecall.c
parentaa0f93b664a4c5e9ab97c63f2fe3d3a9f5f74630 (diff)
downloadofono-307687942af135babcd5c31bc4f976a0a11086c2.tar.bz2
voicecall: add +CHLD=2X support for HFP emulator
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 432c7394..69cd2384 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2815,6 +2815,15 @@ static void emulator_chld_cb(struct ofono_emulator *em,
return;
}
+ if (chld >= 20 && chld <= 27) {
+ if (vc->driver->private_chat == NULL)
+ goto fail;
+
+ vc->driver->private_chat(vc, chld - 20,
+ emulator_generic_cb, em);
+ return;
+ }
+
goto fail;
case OFONO_EMULATOR_REQUEST_TYPE_SUPPORT:
@@ -2860,6 +2869,14 @@ static void emulator_chld_cb(struct ofono_emulator *em,
*info++ = 'X';
}
+ if (vc->driver->private_chat) {
+ if (info - buf > 6)
+ *info++ = ',';
+
+ *info++ = '2';
+ *info++ = 'X';
+ }
+
*info++ = '\0';
ofono_emulator_send_info(em, buf, TRUE);