[pulseaudio-discuss] [PATCH v3] bluez5-util: Disconnect AG devices when ofono is started and headset=auto
georg at chini.tk
Tue Mar 14 06:21:19 UTC 2017
On 13.03.2017 16:41, Tanu Kaskinen wrote:
> On Mon, 2017-03-13 at 09:48 +0100, Georg Chini wrote:
>> With headset=auto it is possible that AG devices are connected and handled
>> via the native backend when ofono is started. Because the HS role will then
>> be disabled in the native backend, AG devices must be disconnected and any
>> future connections will be handled by ofono.
> This seems racy, although there's probably no better solution, short of
> designing a new sco socket handover protocol between pulseaudio and
> ofono. If ofono tries to start listening for incoming sco connections
> before our sco socket is closed, will things break?
Fortunately it does not break. If I start ofono while the SCO socket is
in use, the phone gets disconnected and I can immediately re-connect
it to ofono.
More information about the pulseaudio-discuss