summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Fels <simon.fels@canonical.com>2015-10-05 13:33:09 +0200
committerDenis Kenzior <denkenz@gmail.com>2015-10-05 11:46:30 -0500
commit5a7410e9e4b977b2412047e22ddd53930ad1e058 (patch)
tree5809aadb9b597220a1288961752d01fce3347018 /plugins
parent8929d131a3332a491b5303f2b09b636e2992baae (diff)
downloadofono-5a7410e9e4b977b2412047e22ddd53930ad1e058.tar.bz2
handsfree-audio: add type for our audio cards
When registering audio cards for the handsfree and gateway roles we need a way for our users to differentiate between both to decide which of them they start using for their purpose.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp_hf_bluez5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 713c7896..6ae98b3c 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -589,7 +589,9 @@ static DBusMessage *profile_new_connection(DBusConnection *conn,
if (version >= HFP_VERSION_1_6)
driver = HFP16_HF_DRIVER;
- hfp->card = ofono_handsfree_card_create(0, driver, hfp);
+ hfp->card = ofono_handsfree_card_create(0,
+ OFONO_HANDSFREE_CARD_TYPE_HANDSFREE,
+ driver, hfp);
ofono_handsfree_card_set_data(hfp->card, hfp);
ofono_handsfree_card_set_local(hfp->card, local);