[pulseaudio-discuss] [RFC 0/2] Add dynamic configuration of SBC bitpool

Frédéric Danis frederic.danis at collabora.com
Fri May 17 14:26:30 UTC 2019


Hi Pali,

On 17/05/2019 15:51, Pali Rohár wrote:
> On Friday 17 May 2019 15:45:10 Frédéric Danis wrote:
>> This series of patch allows to manage the bandwidth used by an A2DP source
>> using SBC encoder by adding ability to change the bitpool dynamically during
>> runtime.
>> In a crowded environment this can allow to limit interference between source
>> and headphones.
>>
>> This needs "Message API v2" patches from Georg Chini [1]
>>
>> I am currently not sure in patch 2 where should occur the SBC bitpool apply.
>>
>> Any comments appreciated.
>>
>> [1] https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/51
> Hi! I would suggest to wait until my patches for extending A2DP codecs
> is reviewed and merged. You can find them in email with subject
> "[PATCH v10 00/11] Bluetooth A2DP codecs"

Tanu Kaskinen has already pointed them to me and I have a version using 
them.
I've sent this RFC with minimal dependency on waiting patches to start 
getting some feedback about it.

With your patches, I have to use the "SBC (Automatic Quality)" profile 
to be able to change the SBC bitpool.
Do you know if there is a way to set it as preferred profile for new 
connections?

> In this patch series is also big rework of SBC codec, to support e.g.
> UHQ mode and your changes would introduce new conflicts with that patch
> series.
>
> Anyway, correct behavior of SBC codec in automatic mode should
> automatically increase or decrease SBC bitpool based on available
> bandwidth.

The idea should be to have an external application getting information 
about the radio environment like the number of Bluetooth devices (A2DP 
sources and sinks, and other devices), link quality, WiFi usage, ... to 
be able to dynamically change the bitpool to be used.

Best regards,

Frédéric Danis


More information about the pulseaudio-discuss mailing list