Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1369064rdb; Fri, 1 Dec 2023 14:39:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzHMueW7/wb7KyJ/8AXx/XG53TlV9Pyn+3c9tAKH1zNCcKXqzphVdJmdTsPPoxo+cCeKQh X-Received: by 2002:a05:6a20:3942:b0:18f:97c:b9fb with SMTP id r2-20020a056a20394200b0018f097cb9fbmr246404pzg.85.1701470356120; Fri, 01 Dec 2023 14:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701470356; cv=none; d=google.com; s=arc-20160816; b=w/UNNQWPf+4dB4Qjx5DuJlfTdkWNORIvw/j/cDhBv3v03VcUXgJIhWhUdez3c3dHvF iREfA4KoUi6JmsEDes1oUxjKxqer6TI0Mh78qA/SrK+osyvSbA59tE46Obro95Ml4mQN w55HYdU5h81HwZnd5PLCiEH3Jg0AxwNL4Ab7au46PYev0bUyqieNC0aM2Vhjd32oWRSX R/388Pt7AiK3CaBhpH+Yigdf+sAHqhVKaU7epx8rGCXpM4p3McgPMp55bpxi0XeBmKgd VRS6HC+MJmeCW92FDFmD6jrgRMbHjlK3Skhrun7g8dcyDoCEOYA7uOJPgyk/T5EIDUas 8Hfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=nilNZRtTQifRr2NjZFoVre08KbRTer2dFroHFKuf5O4=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=Dzn6PNyERlMfC6iMzWnPjoRzNj21b5qTZMjsBkvRbfKoPPKshTOcmA8XTfxznOARc+ jkV2tLY2iydi0X6xRyDKGv5bT+6G+ZAlw6WDAk2FeWSHvATC9pzoSRlje8K1Kel2qbpe XuauCqObyOUbNNuHV+vlW/Ak2/ORK5Nr6rmdfW6UvbAMfOlp2ZTZFE42AVNXwU8jv2iH yArHYdS3P7nlxY9+0NPw1qcecEN7mFnXfmtieEDF2lXqYW51y9HgWufvucFwhl9DJRQI 0nMgDDhY4hBW3FASuvd5x/XoeHb0ewsAXxc4jDy6WwAzzYPEnKi8e46FyXmgBuXCdHvc ecng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=frUDt8FD; spf=pass (google.com: domain of linux-bluetooth+bounces-328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jx24-20020a17090b46d800b00285e7d660a6si6005192pjb.125.2023.12.01.14.39.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 14:39:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=frUDt8FD; spf=pass (google.com: domain of linux-bluetooth+bounces-328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C6F37281DA1 for ; Fri, 1 Dec 2023 22:39:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55F5E619CF; Fri, 1 Dec 2023 22:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="frUDt8FD" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A99D63 for ; Fri, 1 Dec 2023 14:39:09 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-da077db5145so1055053276.0 for ; Fri, 01 Dec 2023 14:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701470347; x=1702075147; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=nilNZRtTQifRr2NjZFoVre08KbRTer2dFroHFKuf5O4=; b=frUDt8FDXmDs+DVg6LCb8ds8XgD3KCTWoRs+8tce534dC3IC7WgEpfb3PE1u5W67CF 2wKq0Qf9WSqpOmhiFQPn7LI04LOL35SUDgZ/oodRPEl2S7XWcLQZujeWgCjoCp0vP64g Q60BtUpjuQlCgUOYPtgbATtGF+Qt136yrn2tujgL8ujZ/79rkxyKH89/StMdZJhcjoLx v1Acpri0Vybui6wgBz9zziLS+1MSuKkUR9hpSN3R7PqueOQr47WZEPqqyzI3IVemHuP5 h2MDZkctN0WJy5noV3BaDHjAbaGuDGHRiYWS5glSt/W9EGY7xqaZtbHKLs58U5Vh8BGV HNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701470347; x=1702075147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nilNZRtTQifRr2NjZFoVre08KbRTer2dFroHFKuf5O4=; b=LFBJ7iLoZAJ8dY87RBVZhawG4J4x+seIcXbtdJRxXmUMvTkwEe4EuauPas/mLOjw9u 8viVo/ttPQo1/cWZKCB65bcw5BAa98B1Sqt0kdyCP75nSRMLZtQ759ZHBLM8uVXHV+jX rqjRa1V6jFi26fBNVezFIpT8UPtf5wDq02A+V1A7dU7Hv3rW6JmQr/1jfXXbZshaNFzC GRJiMjC+Q2AnEDvG+/Vfo3ETIsFWb22CuJ2cRO+glvE0K1hQDS6ll0LYBMdEY4BQG2St z9bEuKOMtedu6oszUZwbWMLcgRzkScZLKLR/YF5GGOqb/ZfshG1UJZGosjSJM6wS483Z /6Gw== X-Gm-Message-State: AOJu0Yyb3TtZoddM7VzFTC4t4fd5jQ3DmeE8TzXMTMzcYM4b/Z6v4DF4 uvSMEK5uJIEdgnMmaKrhUDEbwmLFbtSU8g== X-Received: by 2002:a25:c44:0:b0:db7:dad0:76ac with SMTP id 65-20020a250c44000000b00db7dad076acmr178050ybm.72.1701470346950; Fri, 01 Dec 2023 14:39:06 -0800 (PST) Received: from lvondent-mobl4.. (071-047-239-151.res.spectrum.com. [71.47.239.151]) by smtp.gmail.com with ESMTPSA id b18-20020a0c9b12000000b0065b13180892sm1915411qve.16.2023.12.01.14.39.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 14:39:06 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2 3/7] test-bap: Add SCC Config QoS, VS tests Date: Fri, 1 Dec 2023 17:38:56 -0500 Message-ID: <20231201223900.2498565-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231201223900.2498565-1-luiz.dentz@gmail.com> References: <20231201223900.2498565-1-luiz.dentz@gmail.com> 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-Transfer-Encoding: 8bit From: Luiz Augusto von Dentz 4.8.4 Unicast Client Initiates Config QoS – Vendor-Specific (Page 46) Test Purpose: Verify that a Unicast Client IUT can initiate a Config QoS operation for a vendor-specific codec. Pass verdict: The IUT successfully writes to the ASE Control Point characteristic with the opcode set to 0x02 (Config QoS) and the specified parameters. Test Summary ------------ BAP/UCL/SCC/BV-099-C [UCL SNK Config QoS, VS] Passed BAP/UCL/SCC/BV-100-C [UCL SRC Config QoS, VS] Passed Total: 2, Passed: 2 (100.0%), Failed: 0, Not Run: 0 --- unit/test-bap.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/unit/test-bap.c b/unit/test-bap.c index 303388e35c14..fdfedde6b965 100644 --- a/unit/test-bap.c +++ b/unit/test-bap.c @@ -2146,11 +2146,54 @@ static void test_scc_qos_lc3(void) test_client, &cfg_src_48_6_2, SCC_SRC_48_6_2); } +static struct test_config cfg_snk_qos_vs = { + .cc = IOV_NULL, + .qos = QOS_UCAST, + .snk = true, + .vs = true, + .state = BT_BAP_STREAM_STATE_QOS +}; + +#define SCC_SNK_QOS_VS \ + SCC_SNK_VS, \ + QOS_SNK(0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00) + +static struct test_config cfg_src_qos_vs = { + .cc = IOV_NULL, + .qos = QOS_UCAST, + .src = true, + .vs = true, + .state = BT_BAP_STREAM_STATE_QOS +}; + +#define SCC_SRC_QOS_VS \ + SCC_SRC_VS, \ + QOS_SRC(0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00) + +/* Test Purpose: + * Verify that a Unicast Client IUT can initiate a Config QoS operation for a + * vendor-specific codec. + * + * Pass verdict: + * The IUT successfully writes to the ASE Control Point characteristic with the + * opcode set to 0x02 (Config QoS) and the specified parameters. + */ +static void test_scc_qos_vs(void) +{ + define_test("BAP/UCL/SCC/BV-099-C [UCL SNK Config QoS, VS]", + test_client, &cfg_src_qos_vs, SCC_SRC_QOS_VS); + define_test("BAP/UCL/SCC/BV-100-C [UCL SRC QoS Codec, VS]", + test_client, &cfg_snk_qos_vs, SCC_SNK_QOS_VS); +} + static void test_scc(void) { test_scc_cc_lc3(); test_scc_cc_vs(); test_scc_qos_lc3(); + test_scc_qos_vs(); } int main(int argc, char *argv[]) -- 2.43.0