BAP ASE state handling enhancements
Status from this message: This series was applied to bluetooth/bluez.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | shared/bap: Defer ASE state notifications until idlesrc/ | +24 | 1 reply | |
| 2/7 | shared/bap: Wait for ASE state before completing requestssrc/ | +397 | 0 replies | |
| 3/7 | unit/test-bap: Add tests for cancelling grouped Enableunit/ | +161 | 0 replies | |
| 4/7 | unit/test-bap: Add Notify Multiple testunit/ | +31 | 0 replies | |
| 5/7 | shared/tester: Add support for alternative PDUssrc/ src/ | +87 | 0 replies | |
| 6/7 | unit/test-bap: Expect the ASE state following Releasingunit/ | +33 | 0 replies | |
| 7/7 | unit/test-bap: Run unicast tests with Notify Multipleunit/ | +168 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH BlueZ v1 0/7] BAP ASE state handling enhancements
From: Luiz Augusto von Dentz <[email protected]>
The ASCS server deferred the ASE state notifications by 10 ms after the ASE Control Point notification, while the client completed requests on the CP notification alone, so it could act on a stale ASE state, e.g. failing MediaTransport1.Acquire right after Release, whenever the notifications were not received together.
This is fixed on both sides: the server now defers the ASE state notifications until idle, so they are sent in the same mainloop cycle as the CP notification and can be aggregated into the same Notify Multiple PDU, and the client waits for the ASE state before completing requests, also making cancelling or detaching a stream which is part of a grouped request only affect its own request.
For testing, the tester gains markers for PDUs that can be exchanged in alternative ways, which unit/test-bap uses to run every unicast test a second time with Notify Multiple, both as client and server, using the same test data.
Luiz Augusto von Dentz (7):
shared/bap: Defer ASE state notifications until idle shared/bap: Wait for ASE state before completing requests unit/test-bap: Add tests for cancelling grouped Enable unit/test-bap: Add Notify Multiple test shared/tester: Add support for alternative PDUs unit/test-bap: Expect the ASE state following Releasing unit/test-bap: Run unicast tests with Notify Multiple
src/shared/bap.c | 456 ++++++++++++++++++++++++++++++++++++++++---- src/shared/tester.c | 74 +++++++ src/shared/tester.h | 13 ++ unit/test-bap.c | 421 +++++++++++++++++++++++++++++++++++++--- 4 files changed, 900 insertions(+), 64 deletions(-)
Signature · 1 line
2.56.0