Skip to content

Draft: bluez5: add quirk for buggy LE Audio devices that crash on duplex

P V requested to merge pvir/pipewire:lc3-compat-fix into master

I know three devices that support LE Audio and already there's a buggy one that needs quirks...

See #3666 (closed) --- this makes audio output work, duplex TBD later on


bluez5: add quirk for buggy LE Audio devices that crash on duplex

Add quirk that disables microphone for LE Audio at connect time, for buggy devices that apparently have been tested only on Android and need this.

Creative Zen Hybrid Pro firmware crashes if the duplex mode is enabled immediately when connecting. The duplex mode of this device also only works if enabled after it has connected first in the mode without microphone. Moreover, the duplex mode has bad sound quality (the device downsamples it to 16 kHz mono, even though we send 48 kHz stereo), and is not suitable to be enabled by default.

Devices with this quirk need both duplex & non-duplex profiles, similarly as done for A2DP/HFP. This needs to be implemented later on, after LE Audio codec switching is made to work.


bluez5: lc3: workaround bad Supported_Max_Codec_Frames_Per_SDU

If Supported_Max_Codec_Frames_Per_SDU is less than what is required by Supported_Audio_Channel_Counts, override its value assuming the device actually supports at least that. Needed for Creative Zen Hybrid Pro.

Fix default value for channel count bitmask.

Edited by P V

Merge request reports