From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: ofono@ofono.org
Subject: Re: [PATCH v2 3/3] hfp_hf_bluez5: Register the SDP record with correct features
Date: Thu, 25 Apr 2013 15:48:16 -0300 [thread overview]
Message-ID: <20130425184816.GC20988@samus> (raw)
In-Reply-To: <5178EC20.7000306@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]
Hi Denis,
On 03:41 Thu 25 Apr, Denis Kenzior wrote:
> 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?
What we can do is exporting something like
ofono_handsfree_audio_has_defer_setup() or something like it, and set the
feature bit if it's available. I send the patches and let's see how it looks.
The other alternative would be only registering the profile after the Agent
registers, that way we can be sure that wideband speech is supported. But it
may bring little benefit, for example, the other side may cache the SDP search
results.
>
> > 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
Cheers,
--
Vinicius
next prev parent reply other threads:[~2013-04-25 18:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 21:21 [PATCH v2 1/3] bluez5: Unify bt_register_profile_* into a single function Vinicius Costa Gomes
2013-04-23 21:21 ` [PATCH v2 2/3] hfp: Add defines for HFP SDP feature bits Vinicius Costa Gomes
2013-04-25 8:40 ` Denis Kenzior
2013-04-23 21:21 ` [PATCH v2 3/3] hfp_hf_bluez5: Register the SDP record with correct features Vinicius Costa Gomes
2013-04-25 8:41 ` Denis Kenzior
2013-04-25 18:48 ` Vinicius Costa Gomes [this message]
2013-04-25 8:39 ` [PATCH v2 1/3] bluez5: Unify bt_register_profile_* into a single function Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130425184816.GC20988@samus \
--to=vinicius.gomes@openbossa.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.