On Tuesday 22 January 2019 14:54:30 Luiz Augusto von Dentz wrote: > Hi Pali, > On Tue, Jan 22, 2019 at 2:38 PM Pali Rohár <pali.rohar@xxxxxxxxx> wrote: > > > > On Tuesday 22 January 2019 14:35:42 Luiz Augusto von Dentz wrote: > > > I will send a v3 which does the reverse discovery, that should make it > > > work with existing paired devices that reconnect and configure since > > > otherwise there would not be any endpoints to associate with. > > > > Ok. > > > > > Note > > > though that in case of PA the endpoint object should be considered > > > optional no matter what since otherwise it won't be backward > > > compatible. > > > > Yes, patches are already backward compatible. When endpoints do not > > exist, pulseaudio just refuse to switch codec. > > It refuses or there just no other profile/port to switch to? It refuses just to switch from one A2DP profile to another A2DP profile of same type (sink --> sink OR source --> source) with different codecs. Switching between HFP and A2DP or between A2DP sink and A2DP source works. > Btw, are > there anything special I need to do in order to test your patches? I > guess for apt-x I will need your lib right? Yes, for aptX you need that libopenaptx library and remote device with aptX codec support. See also profile switch limitation in patch description (tl;dr you need to issue profile switch command two times). -- Pali Rohár pali.rohar@xxxxxxxxx