* SCO control in HansfreeGateway
@ 2011-09-23 10:03 Mikel Astiz
2011-09-23 10:19 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 2+ messages in thread
From: Mikel Astiz @ 2011-09-23 10:03 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org
Hi all,
Some recent patches have made that the State property in
HandsfreeGateway exposes if the SCO connection is active or not. As far
as I understand, the state Playing is specifically added for this reason.
However, I don't see any way in the D-Bus API to control the state of
this connection. One example would be that a phone would drop the audio
connection (it is allowed to do so at any time) but the user wants this
connection to be re-established.
Wouldn't this require the addition of some methods like ConnectAudio and
DisconnectAudio in the HandsfreeGateway interface?
Regards,
Mikel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SCO control in HansfreeGateway
2011-09-23 10:03 SCO control in HansfreeGateway Mikel Astiz
@ 2011-09-23 10:19 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2011-09-23 10:19 UTC (permalink / raw)
To: Mikel Astiz; +Cc: linux-bluetooth@vger.kernel.org
Hi Mikel,
On Fri, Sep 23, 2011 at 1:03 PM, Mikel Astiz <mikel.astiz@bmw-carit.de> wrote:
> Hi all,
>
> Some recent patches have made that the State property in HandsfreeGateway
> exposes if the SCO connection is active or not. As far as I understand, the
> state Playing is specifically added for this reason.
>
> However, I don't see any way in the D-Bus API to control the state of this
> connection. One example would be that a phone would drop the audio
> connection (it is allowed to do so at any time) but the user wants this
> connection to be re-established.
If you want to control the connection then you need to use the unix
socket or register a endpoint with org.bluez.Media.RegisterEndpoint
(recommended), for the latter you need this is your audio.conf
Enable=Media
Disable=Socket
There is some documentation about it in doc/media-api.txt and a test
script test/simple-endpoint
> Wouldn't this require the addition of some methods like ConnectAudio and
> DisconnectAudio in the HandsfreeGateway interface?
Nope, this was why we also deprecated Headset.Play/Stop, it is not up
to the application to decide when to connect but to the endpoints e.g.
if you are using PulseAudio make use of set_profile.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-23 10:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 10:03 SCO control in HansfreeGateway Mikel Astiz
2011-09-23 10:19 ` Luiz Augusto von Dentz
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.