[pulseaudio-discuss] [PATCH] WIP: Bluetooth A2DP aptX codec support
Pali Rohár
pali.rohar at gmail.com
Sun Jul 8 20:02:51 UTC 2018
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.rohar at 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.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20180708/1967474b/attachment.sig>
More information about the pulseaudio-discuss
mailing list