Skip to content

Enable overridable BlueZ ISO/BAP with the native LC3 audio stack - #67

Closed
RyanTheTide wants to merge 2 commits into
mainfrom
feat/bluetooth-le-audio
Closed

RyanTheTide wants to merge 2 commits into
mainfrom
feat/bluetooth-le-audio

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

BlueZ currently exposes no PACS/ASCS services even though the kernel has LE/ISO and PipeWire ships LC3. Enable experimental BlueZ profiles plus only the ISO socket feature and use the existing PipeWire/WirePlumber LC3 and BAP support without replacing upstream roles. The defaults remain the owner's choice; nothing restarts Bluetooth during installation.

Transport limit: the public BCM4388 PCIe driver rejects ISO data packets. This change enables userspace service discovery; it does not claim working J616s streaming. The MT7932 driver has ISO TX/RX paths, but a fresh controller capability dump has not yet completed through controller admission. No pairing, connection or playback was performed.

Layer Fedora ALARM NixOS
Kernel LE/ISO Already enabled Already enabled Already enabled
BAP/BASS/VCP/CSIP build Stock BlueZ Stock BlueZ Stock BlueZ
Runtime profiles + ISO Removable RPM, editable env file Removable pacman package, backup config Native settings with mkDefault
LC3 + BAP endpoints Stock pipewire-libs + WP defaults Stock pipewire-audio + WP defaults Stock nixpkgs PipeWire + WP defaults
Default / opt-out All images / remove package or clear options Same All images / leAudio.enable=false

Full audit, parity, user overrides and rollback. No kernel change or PipeWire fork change is needed for these defaults. The public BCM transport gap needs a separate implementation.

Validation

  • Local checksum, shell syntax and whitespace checks pass.
  • All three final-commit CI rollups are green: native Fedora RPM and ALARM package builds, Linux source checks, NixOS evaluation including the new override check, and the existing overlay regressions. Supplemental buildbox install/edit/reinstall/remove lifecycle validation remains queued.
  • Effective NixOS checks exercise all image profiles, opt-out, and ordinary user overrides without mkForce.
  • Post-install UUID checks below remain for the lead; no target install is authorized in this read-only investigation.

Lead install and read-only verification

Keep output muted. Restarting Bluetooth may disconnect Bluetooth input devices; use a local keyboard or another connection. Run the user-service command as the audio-session user. No pairing or playback is required.

Update the Aurora flake input to this reviewed revision and keep the default aurora.bluetooth.leAudio.enable=true, then:

sudo nixos-rebuild switch
sudo systemctl restart bluetooth.service
systemctl --user restart wireplumber.service
bluetoothctl show

NixOS deliberately does not restart Bluetooth automatically when its configuration changes. To opt out, set aurora.bluetooth.leAudio.enable=false and rebuild; ordinary BlueZ settings override the mkDefault values; native user WP role settings are preserved. Roll back with nixos-rebuild switch --rollback and an explicit Bluetooth restart.

Expected UUIDs: Published Audio Capabilities 00001850-0000-1000-8000-00805f9b34fb and Audio Stream Control 0000184e-0000-1000-8000-00805f9b34fb. UUID visibility establishes service registration, not ISO streaming.

Read-only baseline (2026-10-31)

Controller addresses, local names and other lab identifiers omitted. No discovery, pairing, connection or playback was requested.

BCM4388 — bluetoothctl show / version

	Manufacturer: 0x000f (15)
	Version: 0x0d (13)
	Powered: yes
	PowerState: on
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Client   (0000112e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	Roles: central
	Roles: peripheral
Version 5.87

MT7932 — bluetoothctl show / version

	Manufacturer: 0x0046 (70)
	Version: 0x0e (14)
	Powered: yes
	PowerState: on
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Client   (0000112e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
	Roles: central
	Roles: peripheral
Version 5.87

Both controllers lack PACS (1850) and ASCS (184e). BlueZ service ExecStart has no experimental arguments; main.conf has only commented Experimental=false and KernelExperimental=false defaults. Both have libspa-bluez5.so and libspa-codec-bluez5-lc3.so installed; their boot Bluetooth journals list only A2DP endpoints.

Fresh btmgmt info requests have not completed through controller policy/source admission; no new CIS/ISO capability claim is made for MT7932. The prior BCM4388 baseline supplied with the task reports cis-central, cis-peripheral, iso-broadcaster and sync-receiver.

Coordinated distro change set

ALARM compiled plugin audit

Static inspection of the official ALARM AArch64 BlueZ 5.87-2 package confirms all four profile source modules are linked into bluetoothd. Downloaded from the TLS-verified ca.us.mirror.archlinuxarm.org mirror; no binary was executed.

Official BlueZ package, PipeWire audio dependency on liblc3.

Fedora compiled plugin audit

The official Fedora 44 AArch64 BlueZ snapshot package also contains all four profile source modules (static inspection only).

8fad8e7e250f8c5a434a14ab865d8baaa5809dc9fbfb0182fb4b7795325320d1  upstream/packages/fedora-bluez.rpm
profiles/audio/bap.c
profiles/audio/bass.c
profiles/audio/vcp.c
profiles/audio/csip.c

Final-commit CI

Enable BlueZ experimental profiles and only ISO sockets, keep classic audio roles, and document the shared-kernel transport limits and three-distro parity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BAP and LC3 are already available in the distro PipeWire stack. Avoid replacing the upstream role list, which can also include broadcast and hearing-aid support.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide RyanTheTide changed the title Enable overridable BlueZ ISO/BAP and WirePlumber LE Audio defaults Enable overridable BlueZ ISO/BAP with the native LC3 audio stack Oct 31, 2026
RyanTheTide added a commit that referenced this pull request Nov 5, 2026
The v2 tip: speakerguardd#63, #64, #66, #67, #69, #70, #71. The packaged files are unchanged.
Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing to clear the queue. LE Audio can't stream until the Wi-Fi/BT controller drivers pass ISO data, so enabling the stack now adds nothing users can use. The branch stays for when the transport works.

@RyanTheTide RyanTheTide closed this Nov 6, 2026
@RyanTheTide
RyanTheTide deleted the feat/bluetooth-le-audio branch November 7, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant