All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: ofono@ofono.org
Subject: Re: [PATCH 5/5] handsfree-audio: Handle when .Connect() was already replied to
Date: Tue, 02 Apr 2013 18:11:55 -0300	[thread overview]
Message-ID: <20130402211155.GD2715@samus> (raw)
In-Reply-To: <5154567D.9040308@gmail.com>

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

Hi Denis,

Sorry for the delay.

On 09:41 Thu 28 Mar, Denis Kenzior wrote:
> Hi Vinicius,
> 
> On 03/27/2013 07:13 PM, Vinicius Costa Gomes wrote:
> >In some cases, it is possible that when sco_connect_cb() is called
> >the .Connect() message (stored in card->msg) is not valid anymore.
> 
> Can you tell me what cases these are?
> 
> My thinking is that we will treat the connect callback specially.
> 
> If the driver calls the callback function, then it is assumed that
> no further action is necessary.  If the driver calls connect_sco(),
> then we assume that the callback function will never be called.

This is indeed the case (when the HFP 1.6 driver fallbacks to direct SCO
connection). The way I was writing it I was calling connect_sco() and the
callback inside the driver.

If we consider that when you call connect_sco() you hand the connection
responsability to the core, it even makes more sense. 

So, this patch can be ignored.


Cheers,
-- 
Vinicius

  reply	other threads:[~2013-04-02 21:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28  0:12 [PATCH 1/5] hfp_hf_bluez5: Add a card driver for HFP 1.6 Vinicius Costa Gomes
2013-03-28  0:12 ` [PATCH 2/5] include: Add ofono_handsfree_card_connect_sco() Vinicius Costa Gomes
2013-03-28 14:37   ` Denis Kenzior
2013-03-28  0:13 ` [PATCH 3/5] handsfree-audio: Add ofono_handsfree_card_connect_sco Vinicius Costa Gomes
2013-03-28 14:37   ` Denis Kenzior
2013-03-28  0:13 ` [PATCH 4/5] handsfree-audio: Add .Connect using the card driver Vinicius Costa Gomes
2013-03-28 14:38   ` Denis Kenzior
2013-03-28  0:13 ` [PATCH 5/5] handsfree-audio: Handle when .Connect() was already replied to Vinicius Costa Gomes
2013-03-28 14:41   ` Denis Kenzior
2013-04-02 21:11     ` Vinicius Costa Gomes [this message]
2013-03-28 14:37 ` [PATCH 1/5] hfp_hf_bluez5: Add a card driver for HFP 1.6 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=20130402211155.GD2715@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.