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 still in use, the phone gets disconnected and I can immediately re-connect it to ofono.