diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-29 01:16:53 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-29 01:16:53 -0500 |
commit | e14c9214ebe85eecba1270aa13037934f6e3b504 (patch) | |
tree | 2424478cd6beaeb6c92d5912db3eb9f4bfd3009b /drivers/huaweimodem | |
parent | ccb8b4fc212be1600a52773d43a4239ae6849479 (diff) | |
download | ofono-e14c9214ebe85eecba1270aa13037934f6e3b504.tar.bz2 |
huawei: Add release_specific to voicecall
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r-- | drivers/huaweimodem/voicecall.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c index 00171e24..f411bc48 100644 --- a/drivers/huaweimodem/voicecall.c +++ b/drivers/huaweimodem/voicecall.c @@ -162,6 +162,14 @@ static void huawei_hangup(struct ofono_voicecall *vc, huawei_template(vc, "AT+CHUP", cb, data); } +static void huawei_release_specific(struct ofono_voicecall *vc, int id, + ofono_voicecall_cb_t cb, void *data) +{ + char buf[32]; + + snprintf(buf, sizeof(buf), "AT+CHLD=1%d", id); + huawei_template(vc, buf, cb, data); +} static void cring_notify(GAtResult *result, gpointer user_data) { struct ofono_voicecall *vc = user_data; @@ -496,6 +504,7 @@ static struct ofono_voicecall_driver driver = { .dial = huawei_dial, .answer = huawei_answer, .hangup_active = huawei_hangup, + .release_specific = huawei_release_specific, }; void huawei_voicecall_init() |