diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-04-03 20:24:39 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-04-05 12:25:10 -0500 |
commit | a36ffa872a1796c4ecba3d97253752ead4af1c78 (patch) | |
tree | dee5a9c8449e57a88acd835617c36ea6eeca180d /plugins | |
parent | dd24a39d2f99b7117553979a25fdc45b0d860faa (diff) | |
download | ofono-a36ffa872a1796c4ecba3d97253752ead4af1c78.tar.bz2 |
hfp_hf_bluez5: Use 1.6 card driver
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index a6cc1565..ac6189da 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -397,7 +397,7 @@ static DBusMessage *profile_new_connection(DBusConnection *conn, struct sockaddr_rc saddr; socklen_t optlen; DBusMessageIter entry; - const char *device; + const char *device, *driver; char local[18], remote[18]; uint16_t version = HFP_VERSION_1_5; int fd, err; @@ -471,7 +471,15 @@ static DBusMessage *profile_new_connection(DBusConnection *conn, hfp = ofono_modem_get_data(modem); hfp->msg = dbus_message_ref(msg); - hfp->card = ofono_handsfree_card_create(0, NULL, NULL); + + driver = NULL; + + if (version >= HFP_VERSION_1_6) + driver = HFP16_HF_DRIVER; + + hfp->card = ofono_handsfree_card_create(0, driver, hfp); + ofono_handsfree_card_set_data(hfp->card, hfp); + ofono_handsfree_card_set_local(hfp->card, local); ofono_handsfree_card_set_remote(hfp->card, remote); |