No gstreamer dependency causes high-fidelity codecs to be missing for Bluetooth devices

Bug #1960307 reported by Avamander
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
PulseAudio
Fix Released
Unknown
gst-plugins-bad1.0 (Ubuntu)
Confirmed
Undecided
Unassigned
gstreamer1.0 (Ubuntu)
Confirmed
Undecided
Unassigned
pulseaudio (Ubuntu)
Incomplete
High
Unassigned

Bug Description

After the announcements of PulseAudio 15 and Gstreamer 1.20, which both advertised LDAC and AptX (HD) support, I expected that jammy (22.04) would support those codecs.

Though in reality it seems that something is missing, gstreamer reports that those codecs are supported but "pactl [...] list-codec" only lists sbc (and variants).

Checking here https://packages.ubuntu.com/jammy/pulseaudio-module-bluetooth it seems that PulseAudio is not built with gstreamer support, is that the current blocker?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gst-plugins-bad1.0 (Ubuntu):
status: New → Confirmed
Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Changed in gstreamer1.0 (Ubuntu):
status: New → Confirmed
Changed in pulseaudio:
status: Unknown → Fix Committed
Changed in pulseaudio:
status: Fix Committed → Fix Released
Revision history for this message
Ernst Persson (ernstp) wrote :

Up to date Jammy system as of today.
They bluetooth service list a number of aptx and ldac sink and source endpoints now.
However I seem to be limited to the SBC codec still.

What exactly is the "pactl [...] list-codec" command you mentioned?

Revision history for this message
Igor V. Kovalenko (i-garrison) wrote :

It's in the 15.0 release notes, https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters

  pactl send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez list-codecs

You should also be able to find codec selection in pavucontrol 'Configuration' tab if pavucontrol is built correctly.

Revision history for this message
Benoe (benoe77) wrote :

My current output for this command is:

pactl send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez list-codecs
[{"name":"CVSD","description":"CVSD"},{"name":"mSBC","description":"mSBC"}]

Usually, my headset only visible at pactl list cards at the second connection attemtp and when it doeas connect I cannot change from AFP to A2DB from the settings menu.

Revision history for this message
Igor V. Kovalenko (i-garrison) wrote (last edit ):

Whether your headset cannot be switched from HFP to A2DP is a separate issue anyway. You can try pairing and trusting the device again, also please check if you have pipewire audio enabled which could seldom take over bluetooth a2dp, and see if bluetoothd log has anything related.

Revision history for this message
Benoe (benoe77) wrote :

Thanks, it was indeed a separate issue. Needed to remove bluez-alsa-utils...
All is good now, would be great if one could change the codec through gnome-control-center. Pavucontrol method works.

Revision history for this message
Igor V. Kovalenko (i-garrison) wrote :

Changing codec via gnome-control-center would probably need a feature request to gnome-control-center to support new functionality in >=pulseaudio-15.0

Revision history for this message
Benoe (benoe77) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

So can we consider the issue fixed from the pulseaudio side in the current release? It's built with gstreamer and working as expected, gst-plugins-bad is a suggests, we can't depends on it because it's in universe

Changed in pulseaudio (Ubuntu):
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
BloodyIron (bloodyiron) wrote :

Uh isn't the solution to "remove bluez-alsa-utils"... how is this "fixed" then? Are systems going to just be forcefully told to remove "bluez-alsa-utils" to get aptx working? I don't see the actual "fix" here...

Revision history for this message
Sebastien Bacher (seb128) wrote :

We could perhaps add a conflict to force removal of bluez-alsa-utils but that package is in universe and not part of a normal installation so that shouldn't be an issue for most users

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.