Hi Vinicius,

On 04/23/2013 04:21 PM, Vinicius Costa Gomes wrote:
---
  plugins/hfp_hf_bluez5.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)


Patch has been applied, thanks.

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 826796f..06b6fd3 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -636,10 +636,15 @@ static const GDBusMethodTable profile_methods[] = {

  static void connect_handler(DBusConnection *conn, void *user_data)
  {
+       uint16_t features = HFP_SDP_HF_FEATURE_3WAY |
+                               HFP_SDP_HF_FEATURE_CLIP |
+                               HFP_SDP_HF_FEATURE_REMOTE_VOLUME_CONTROL |
+                               HFP_SDP_HF_FEATURE_WIDEBAND_SPEECH;
+

Can we check whether the kernel supports wideband speech features here and not set this flag if it does not?

        DBG("Registering External Profile handler ...");

        bt_register_profile(conn, HFP_HS_UUID, HFP_VERSION_1_6, "hfp_hf",
-                                       HFP_EXT_PROFILE_PATH, NULL, 0);
+                                       HFP_EXT_PROFILE_PATH, NULL, features);
  }

  static gboolean has_hfp_ag_uuid(DBusMessageIter *array)

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to