feat: A2DP bluetooth audio working

This commit is contained in:
daniel committed 2026-06-10 16:00:42 +02:00
1 parent 4eb4ba4073
commit e0c8787727
18 files changed
+1312 -4340

No files matched your search

@@ -19,6 +19,14 @@ namespace Drivers::USB::Bluetooth {
// once the boot filesystems are up; a no-op if nothing is pending.
void ServiceDeferredInit();
// Steady-state event service: drains the xHCI event ring + Bluetooth ACL
// RX ring and flushes queued HCI replies. Called from the idle loop so
// inbound traffic (the headset's SDP/AVRCP queries, AVDTP commands, ACL
// credits) is processed even when no syscall happens to be pumping a BT
// wait loop. Cheap no-op when the adapter is down; safe from any core
// (PollEvents/DrainEvents/ProcessPendingCommands all self-serialize).
void ServiceEvents();
// Query adapter state
bool IsInitialized();
uint8_t GetSlotId();