From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Denis Kenzior <denkenz@gmail.com>,
linux-bluetooth <linux-bluetooth@vger.kernel.org>,
ofono@ofono.org
Subject: Re: [RFC] HFP support into oFono and BlueZ
Date: Tue, 19 Jan 2010 14:26:51 +0200 [thread overview]
Message-ID: <2d5a2c101001190426y71683193qbe4b132393a9d01f@mail.gmail.com> (raw)
In-Reply-To: <20100119103338.GA22431@jh-x301>
Hi Johan,
On Tue, Jan 19, 2010 at 12:33 PM, Johan Hedberg <johan.hedberg@gmail.com> wrote:
> Hi Luiz,
>
> On Tue, Jan 19, 2010, Luiz Augusto von Dentz wrote:
>> Also the problem with this being in the device path is that ofono may
>> not be registered as an agent on connect (both ways) which will cause
>> the connection to drop and the round trips to resolve device path only
>> makes it worse, if this happen to be on adapter path this would not be
>> a problem since we know before hand who to call.
>
> I don't think this is an issue in the case of a per-adapter handsfree
> agent. Typically the agent would be registered upon the creation of the
> device object. Yes, in theory a HFP connection establishment may occur
> before ofono manages to register an agent for the device but the
> connection doesn't need to be dropped because of it. Since it's the
> HF-role device (i.e. us) that sends the initial AT command in HFP SLC
> establishment bluetoothd could just sit quietly waiting until an agent
> registers itself. When an agent finally gets registered bluetoothd would
> (after replying to the registration method call) immediately call the
> NewConnection() method for the agent.
Well it might work, but does it worth? Also I got the impression that
this is not optimal, specially if the we are simulating a combo device
hfp+a2dp this may delay the setup indefinitely until somebody register
an agent , so if I got it right our current code behind Audio.Connect
will not even attempt to connect the sink until headset state
transition from connecting.
Maybe and being paranoid, but I guess this might be troublesome for
mobile hardware where dbus is not that fast.
--
Luiz Augusto von Dentz
Engenheiro de Computação
next prev parent reply other threads:[~2010-01-19 12:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 17:08 [RFC] HFP support into oFono and BlueZ Gustavo F. Padovan
2010-01-11 19:05 ` Gustavo F. Padovan
2010-01-13 23:39 ` Gustavo F. Padovan
2010-01-18 11:38 ` Luiz Augusto von Dentz
2010-01-17 22:37 ` Denis Kenzior
2010-01-19 8:02 ` Johan Hedberg
2010-01-19 9:30 ` Luiz Augusto von Dentz
2010-01-19 10:33 ` Johan Hedberg
2010-01-19 12:26 ` Luiz Augusto von Dentz [this message]
2010-01-20 19:58 ` Gustavo F. Padovan
2010-01-21 6:28 ` Zhang, Zhenhua
2010-01-21 7:54 ` Zhao Forrest
2010-01-21 2:56 ` Denis Kenzior
2012-08-21 22:46 ` Lucas De Marchi
2010-01-21 19:22 ` Johan Hedberg
2010-01-21 19:27 ` Johan Hedberg
2010-01-27 19:12 ` HFP support into BlueZ and oFono Gustavo F. Padovan
2010-01-27 19:12 ` [PATCH 1/2] clean up audio/gateway.c Gustavo F. Padovan
2010-01-27 19:12 ` [PATCH 2/2] Implement HandsfreeGateway Interface Gustavo F. Padovan
2010-01-27 19:12 ` [PATCH] Add HFP support through BlueZ Gustavo F. Padovan
2010-01-27 20:17 ` Marcel Holtmann
2010-02-01 3:15 ` [PATCH 1/2] clean up audio/gateway.c Zhenhua Zhang
2010-01-27 19:17 ` HFP support into BlueZ and oFono Gustavo F. Padovan
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=2d5a2c101001190426y71683193qbe4b132393a9d01f@mail.gmail.com \
--to=luiz.dentz@gmail.com \
--cc=denkenz@gmail.com \
--cc=linux-bluetooth@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).