mirror of git://git.sysmocom.de/ofono
voicecall: add +CHLD=2X support for HFP emulator
This commit is contained in:
parent
aa0f93b664
commit
307687942a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue