On Sunday 08 July 2018 22:55:28 Luiz Augusto von Dentz wrote:
> Hi Pali,
> 
> On Sat, Jul 7, 2018 at 2:08 PM, Pali Rohár <pali.ro...@gmail.com> wrote:
> > On Friday 06 July 2018 11:16:09 Pali Rohár wrote:
> >> Known problems:
> >>
> >> For every A2DP codec it is needed to register endpoint to the bluez daemon.
> >> This is working fine, but I do not know how and why bluez daemon choose
> >> endpoint (and so codec) for new connection. And I have not figured out how
> >> to tell bluez daemon to switch A2DP codec from SBC to aptX and vice-versa.
> >> It looks like that bluez daemon chooses endpoint (and so codec) at
> >> connection time randomly :-(
> >
> > Any idea how to tell bluez which endpoint should use? Or how to change
> > one active bluez endpoint to another for switching bluez codec?
> 
> 
> It is the order PA register the endpoints, if you want apt-x take
> priority register it first.

Do you mean to call functions in this order?

register_endpoint(y, path, A2DP_SOURCE_APTX_ENDPOINT, ...);
register_endpoint(y, path, A2DP_SOURCE_SBC_ENDPOINT, ...);

No, it does not work. Still codec is somehow selected randomly.
Sometimes aptX, sometimes SBC. I tested it with one same device.

-- 
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: PGP signature

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to