From 5a7410e9e4b977b2412047e22ddd53930ad1e058 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 5 Oct 2015 13:33:09 +0200 Subject: 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. --- plugins/hfp_hf_bluez5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') 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); -- cgit v1.2.3