Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/6] hfp_hf_bluez5: Add audio card .connect() for HFP 1.6
Date: Tue, 09 Apr 2013 14:34:48 -0500	[thread overview]
Message-ID: <51646D58.2020008@gmail.com> (raw)
In-Reply-To: <1365460863-14645-1-git-send-email-vinicius.gomes@openbossa.org>

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]

Hi Vinicius,

On 04/08/2013 05:40 PM, Vinicius Costa Gomes wrote:
> ---
>   plugins/hfp_hf_bluez5.c | 30 +++++++++++++++++++++++++++++-
>   1 file changed, 29 insertions(+), 1 deletion(-)

Patch has been applied.

> +	struct hfp *hfp = ofono_handsfree_card_get_data(card);
> +	struct hfp_slc_info *info =&hfp->info;
> +
> +	if ((info->hf_features&  HFP_HF_FEATURE_CODEC_NEGOTIATION&&
> +			info->ag_features&  HFP_AG_FEATURE_CODEC_NEGOTIATION)) {

I removed the extra parentheses in a follow on commit.

> +		struct cb_data *cbd = cb_data_new(cb, data);
> +
> +		g_at_chat_send(info->chat, "AT+BCC", NULL, bcc_cb, cbd, g_free);
> +		return;
> +	}
> +
> +	/*
> +	 * If any side (remote or local) doesn't support codec negotiation,
> +	 * fallback to direct SCO connection. Calling connect_sco()
> +	 * hands the connection responsibility to the core, so no need
> +	 * to call the callback
> +	 */
> +	ofono_handsfree_card_connect_sco(card);
>   }
>
>   static struct ofono_handsfree_card_driver hfp16_hf_driver = {

Regards,
-Denis

      parent reply	other threads:[~2013-04-09 19:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 22:40 [PATCH 1/6] hfp_hf_bluez5: Add audio card .connect() for HFP 1.6 Vinicius Costa Gomes
2013-04-08 22:40 ` [PATCH 2/6] include: Add ofono_handsfree_audio_has_wideband() Vinicius Costa Gomes
2013-04-09 19:35   ` Denis Kenzior
2013-04-08 22:41 ` [PATCH 3/6] handsfree-audio: Implement ofono_handsfree_audio_has_wideband Vinicius Costa Gomes
2013-04-09 19:35   ` Denis Kenzior
2013-04-08 22:41 ` [PATCH 4/6] include: Make HFP 1.6 codecs definition public Vinicius Costa Gomes
2013-04-09 19:36   ` Denis Kenzior
2013-04-08 22:41 ` [PATCH 5/6] hfpmodem: Send AT+BAC with the supported codecs Vinicius Costa Gomes
2013-04-09 19:37   ` Denis Kenzior
2013-04-08 22:41 ` [PATCH 6/6] handsfree-audio: Remove unused 'codecs' field from agent Vinicius Costa Gomes
2013-04-09 19:36   ` Denis Kenzior
2013-04-09 19:34 ` Denis Kenzior [this message]

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=51646D58.2020008@gmail.com \
    --to=denkenz@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox