feat: A2DP bluetooth audio working

This commit is contained in:
2026-06-10 16:00:42 +02:00
parent dff5a4a4b1
commit ca79678823
18 changed files with 1312 additions and 4340 deletions
+13
View File
@@ -310,6 +310,19 @@ namespace Drivers::USB::Bluetooth::Hci {
uint16_t AclPendingCount();
uint16_t AclMaxPackets();
// ACL packets handed to the xHCI whose bulk OUT completion has not been
// reaped yet (each one still owns a TX DMA ring slot).
uint32_t AclTxInFlight();
// True when SendAcl can be called without overrunning either the
// controller's ACL buffers (NOCP credits) or the TX DMA ring. The media
// writer polls events until this is true before sending each frame.
bool AclTxReady();
// Lost-NOCP recovery: zero the credit count after a prolonged stall with
// the USB side drained (completions presumed lost).
void AclResetCredits();
// Disconnect a connection
bool Disconnect(uint16_t handle, uint8_t reason);