Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B04D249B1F5 for ; Fri, 4 Sep 2026 13:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529898; cv=none; b=kkjQcI9fn1cZAgx52yuYE9Njh2CL/daQgu9STwhphbaYL+RJGtTYuLiyFxqpE1NUCAiIybmzTBUWWuozxxOa8I/oM0AAxLBFiUpeVoenrJ+tSwRod9IK26AN5kxkzeOmmOd02kwGS09dsb8BGeiw4KAxXdMAva3BNtNeHdMRj3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529898; c=relaxed/simple; bh=tARfdK1TuboEsIqxuNd6ACC0JY0HdqZF+wd86g2QH8k=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Type; b=CxLvo2vNAqzUptoSDO0Z/Nue7ccQC/UMaDKe6sO2DsSj0e2trZ5xfypHZoh/ML4jNvhT42XQSck4VQuwUWJNV68ikhVwP6TiIweLnqAlY6PtEmnxY+vbeKe52wNC+wJFNOKlCYb0fUIaVSHF5++RCo00mmcdu/orztNE9CLsy+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=CXecMfv5; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="CXecMfv5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1788529889; bh=tARfdK1TuboEsIqxuNd6ACC0JY0HdqZF+wd86g2QH8k=; h=From:To:Subject:Date:From; b=CXecMfv5vFSyALi4r26si/USnEHNwYfyrPuaOyy6qGG+03QSSAQ6obYCTfoPfuYKy TvH0RcdoOsCzywRq2LR1DeC86D1sdT8lD30JNP7Qzge5O17WgRBlm4FTbMUUAVJ16V 0uiV88nl37XZPfv7bjqcZ1FvO4h2BE7YjFrGw8k/dlfK9BVZWVMUzrbAoIBjUUThUG 9g4/d1LIp+LvXyOarBzJtSAeql5j/W//nMfrJjgQKJHqsW4uZ6L5wsVS+AhG83wzuI 7zqafK0rNgZBrjy5Ki2ExGt93dND8hkFEX47vgnnv70+NUKrzJZfh228jWjOHJEYn2 ctPlUtb+3maSg== Received: from fdanis-ThinkPad-X1.. (unknown [100.64.1.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: fdanis) by bali.collaboradmins.com (Postfix) with ESMTPSA id 5E0C317E080A for ; Fri, 04 Sep 2026 15:51:29 +0200 (CEST) From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 0/8] client/btpclient: Add BAP/ASCS/PACS support for auto-pts BAP tests Date: Fri, 4 Sep 2026 15:51:16 +0200 Message-ID: <20260904135124.981346-1-frederic.danis@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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. 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: Defer 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 | 1641 ++++++++++++++++++++++++++++++++++ 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, 2744 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 -- 2.43.0