Skip to content

client/btpclient: Add BAP/ASCS/PACS support for auto-pts BAP tests

Frédéric Danis linux-bluetooth 3 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 0 repliesApplied
  2. v28 patches 1 replySuperseded
  3. v18 patches 1 replySuperseded

Changes in v3 from the cover letter

- Rename too long commit title for Patch 7

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8client/btpclient: Add BTP_EV_BAP_ASE_FOUND supportclient/btpclient/bap.c client/btpclient/bap.h client/btpclient/btpclient.c +2 more+136 -00 replies
2/8client/btpclient: Get Codec capabilities on ASE replyMakefile.tools client/btpclient/bap.c src/shared/btp.h+104 -40 replies
3/8client/btpclient: Add ASCS BTP supportMakefile.tools client/btpclient/ascs.c client/btpclient/ascs.h +7 more+1262 -90 replies
4/8client/btpclient: Add BTP_OP_PACS_SET_LOCATION supportMakefile.tools client/btpclient/btpclient.h client/btpclient/core.c +3 more+149 -00 replies
5/8client/btpclient: Add BTP_OP_BAP_SEND supportclient/btpclient/bap.c client/btpclient/btpclient.h src/shared/btp.h+65 -00 replies
6/8client/btpclient: Add ASCS support for BAP/UCL/STR/* testsclient/btpclient/ascs.c client/btpclient/ascs.h client/btpclient/bap.c +4 more+869 -540 replies
7/8client/btpclient: CIG/CIS assignment based on Client/Server roleclient/btpclient/ascs.c client/btpclient/bap.c+127 -910 replies
8/8client/btpclient: Add stream auto acquire for BAP/USR/STR/* testsclient/btpclient/ascs.c client/btpclient/bap.c client/btpclient/bap.h +2 more+189 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH BlueZ v3 0/8] client/btpclient: Add BAP/ASCS/PACS support for auto-pts BAP tests

This series extends btpclient with support for the BAP, ASCS, and PACS BTP services required to pass the auto-pts Basic Audio Profile test suites (BAP/UCL/*, BAP/USR/*).

- Patch 1 adds BTP_EV_BAP_ASE_FOUND, needed by BAP/UCL/SCC/BV-004-C and BAP/UCL/SCC/BV-019-C.
- Patch 2 fetches Codec capabilities when replying to an ASE.
- Patch 3 introduces ASCS BTP support: audio endpoints are registered via the VENDOR service's ASCS setup command, and the SelectProperties() D-Bus reply is postponed until auto-pts has requested the ASE and PACS characteristic values, allowing BAP/UCL/SCC/* tests to pass.
- Patch 4 adds BTP_OP_PACS_SET_LOCATION support to store the expected location for a local endpoint.
- Patch 5 adds BTP_OP_BAP_SEND support.
- Patch 6 extends ASCS support to cover the BAP/UCL/STR/* tests.
- Patch 7 fixes CIG/CIS id assignment to be deferred and based on the Unicast Client/Server role, matching what auto-pts expects (0/0 for Client tests, 1/1 for Server tests) instead of eagerly assigning CIG 0 to every discovered ASE.
- Patch 8 adds automatic stream acquisition and data sending for the BAP/USR/STR/* tests.

Together these patches allow btpclient to pass the BAP/UCL and BAP/USR auto-pts test suites.

v1->v2:
- Fix incremental build for Patch 5
- Fix stream connection when transport interface is created after auto-pts requests enabling ASE
v2->v3:
- Rename too long commit title for Patch 7

Frédéric Danis (8):
client/btpclient: Add BTP_EV_BAP_ASE_FOUND support client/btpclient: Get Codec capabilities on ASE reply client/btpclient: Add ASCS BTP support client/btpclient: Add BTP_OP_PACS_SET_LOCATION support client/btpclient: Add BTP_OP_BAP_SEND support client/btpclient: Add ASCS support for BAP/UCL/STR/* tests client/btpclient: CIG/CIS assignment based on Client/Server role client/btpclient: Add stream auto acquire for BAP/USR/STR/* tests

 Makefile.tools               |    7 +-
 client/btpclient/ascs.c      | 1649 ++++++++++++++++++++++++++++++++++
 client/btpclient/ascs.h      |   21 +
 client/btpclient/bap.c       |  381 ++++++++
 client/btpclient/bap.h       |    4 +
 client/btpclient/btpclient.c |  194 +++-
 client/btpclient/btpclient.h |   36 +
 client/btpclient/core.c      |   75 +-
 client/btpclient/gap.c       |    3 -
 client/btpclient/pacs.c      |  107 +++
 client/btpclient/pacs.h      |   13 +
 client/btpclient/vendor.c    |  103 +++
 client/btpclient/vendor.h    |   13 +
 src/shared/btp.h             |  156 ++++
 14 files changed, 2752 insertions(+), 10 deletions(-)
 create mode 100644 client/btpclient/ascs.c
 create mode 100644 client/btpclient/ascs.h
 create mode 100644 client/btpclient/pacs.c
 create mode 100644 client/btpclient/pacs.h
 create mode 100644 client/btpclient/vendor.c
 create mode 100644 client/btpclient/vendor.h
Signature · 1 line
2.43.0