Return-Path: Message-ID: <5731aaabb375e5b82945cabff8c315a2ef827cbe.camel@iki.fi> Subject: Re: Failure to connect Sony headsets From: Tanu Kaskinen To: =?ISO-8859-1?Q?Jo=E3o?= Paulo Rechi Vita Cc: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, General PulseAudio Discussion , =?ISO-8859-1?Q?Jo=E3o?= Paulo Rechi Vita , linux@endlessm.com Date: Thu, 14 Jun 2018 18:27:49 +0300 In-Reply-To: References: <5a3c473313387957bac050067857e22e62d544f5.camel@iki.fi> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Thu, 2018-06-14 at 08:05 -0700, João Paulo Rechi Vita wrote: > > > I also had to disable module-card-restore, otherwise it tries to > > > switch to the saved a2dp_sink profile right when the card is created, > > > which also makes the device abort the AVDTP connection for some > > > reason. > > > > This is without increasing the timeout, right, so the problem is that > > module-card-restore is trying to restore a2dp_sink before it's > > available? module-card-restore has been fixed to not to try to restore > > unavailable profiles: > > https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=d65974d8501052bafb03e65f5df954511e9949a2 > > > > No, this is in addition to increasing the timeout. To have things > working I need to increase the timeout AND disable > module-card-restore. Sorry for not being clear about it before. > > I will try the commit you pointed, but I don't think it will help > since, if I'm following this right, the transport is already marked as > available at this point (I need to double-check on this point though > -- sorry, too many moving parts). If you confirm that module-card-restore indeed has to be disabled even with the increased timeout, then it would be very interesting to know what effect module-card-restore has in the card initialization. To me it seems that it should make no difference, because the a2dp profile is the default anyway, and all the module does is to choose the initial profile. -- Tanu https://liberapay.com/tanuk https://www.patreon.com/tanuk