feat: A2DP bluetooth audio working

This commit is contained in:
2026-06-10 16:00:42 +02:00
parent 4eb4ba4073
commit e0c8787727
18 changed files with 1312 additions and 4340 deletions
@@ -0,0 +1,19 @@
/*
* Avrcp.hpp
* Bluetooth AVRCP (Audio/Video Remote Control Profile) -- minimal Target role
* Copyright (c) 2026 Daniel Hammer
*/
#pragma once
#include <cstdint>
namespace Drivers::USB::Bluetooth::Avrcp {
// Process an AVCTP packet arriving on an AVRCP control channel (PSM 0x0017).
// Implements a minimal AVRCP Target: unit/subunit info, pass-through accept,
// GetCapabilities, RegisterNotification (interim), absolute volume. Runs
// from the ACL receive path (DrainEvents, top-level) -- sending is safe
// there, blocking waits are not (none are used).
void ProcessAvctp(uint16_t localCid, const uint8_t* data, uint16_t len);
}