voicecall: add +CHLD=2X support for HFP emulator

This commit is contained in:
Frédéric Dalleau 2011-05-02 17:48:08 +02:00 committed by Denis Kenzior
parent aa0f93b664
commit 307687942a
1 changed files with 17 additions and 0 deletions

View File

@ -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);