From patchwork Fri Apr 4 19:39:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 878641 Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 653BE223705 for ; Fri, 4 Apr 2025 19:40:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743795611; cv=none; b=AC0Gdm8Fn2Nf683wChxWxUpILwmKMO/g9ilMcrXyqwSbtQkf2YGfB9MsSBsxcgx9OJPGbjkuuYHTu2wpwbOi/ar3Phg3KutdVdKwVC5ht7y7v2pH6eJZMgxvrLNyfgkcyxFjJqpE0TM7qAu2LSE7r7mX1K0D4HZ4qvSC7NFLJK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743795611; c=relaxed/simple; bh=lV9Er+Su+VuJRn8I3P/Z5RcbhKDljCbZ7qikSHJHQD8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QIGwMULspHRXl756ZFjdpgy9SZ3hr8kJX70C/v5W0fsY2sHm49ckFH12Q6y2n7R2Uq6JakdXFA1jpYCSq0D9+2cnyesljJzHi04nXIc0Lh2lVXM7uXReTE6qs8WzyTQV8QgzNtMSpWyqS2hlKvZW90ZHqw6EgdF4Nc3XqDuJx7g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QxGkPVH5; arc=none smtp.client-ip=209.85.222.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QxGkPVH5" Received: by mail-ua1-f50.google.com with SMTP id a1e0cc1a2514c-86d377306ddso1102530241.2 for ; Fri, 04 Apr 2025 12:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743795606; x=1744400406; 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=oH5zIz3fH+HzePqUrVUnHeTuTck/L6WwKXLj9XMwPLs=; b=QxGkPVH5Ad+am0FDg8bIva2GiPrZWlHTAd1MqfTE6EiPlcYKmArVBkvTF1pKgaGQkD ANxh2Ea/hb7rdD2ovus8NZeGG1+glQLYMnWPbONrscjlpp+nUz/h43LFl0ttHfXi1VOR DTcdSoJCtA9AFbWuDjflsOyBkIQ6i9L1YCiF6xkDc+2ObG+M02mVY+Z6IL9FAR03Dhf9 r2MDtEabiVJOaJuu9hYOG9XUYwxrXARMa6h4h6lJpJYCXw3SPUPZltfNB/8iI6bnQ+e0 HkaeO1DZOU4uJHYqg+2LGYlFKFPx4g+0pozW06mm6JmcECCkWTcy4toHAOp+o/rGf6hc CGfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743795606; x=1744400406; 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=oH5zIz3fH+HzePqUrVUnHeTuTck/L6WwKXLj9XMwPLs=; b=q4TuzVAGjcEm0exUiupqejjn5EKC8ZUiC6ye+RxhGN2LCVo81SK7jV9fK6l2PQHtA3 eaCqXV25fjdvWPwXy9iu/65U5UhndoWeMiXGlHl8F2C5zQ26ZhPGJLrB+hL+YLPYOh88 HwXCdngYnQfraf2n1Xabo0IlKNxOKh8Te8WU9JKIAK4RNppe0x8UCu2loUw/xjtBgJ3R jb05LwPQxSGpPbNf0HJFgYieaT/wU/TdSRIp+M6/ICK98uTp82i/CgFcrU4bI+P96Jb+ u7sMvdXxTX357uHJGOZDfIhQjU/J4NBGJavhNOpU4lcvlxzC/pScEpw8HrTyCmH/YRAT juDg== X-Gm-Message-State: AOJu0YzZkMwAEzNE+3bOCt4dvGRgjFyTcnPYFKL29a/QrVujlfIQGdpI rv/1WJhIN7Be4/bHyi1GPhrzW8fjdnR7WaMiYY3GeWh1bGkb7z12IGpAY0wQkPE= X-Gm-Gg: ASbGnctc8EW31b6OVun6/Er81GDRZI/eYeBLOeh3emGkkrK0hGHUtBJHSUmqoRnB2og TQEXWNZeWNU6PLeCLgCYsgR7kNwr/UHO0CyhNkBfOkQmkJ7HumVecPQACDj8WevPPxnp+g3YBnt 2G1fA+Wm7k7uaph1we6kk6TZUqe3czFyd3Fp2LEOQxldv+EUY0doHwRbkiLHtxk0sXxFquKi7js wVNMbc+W3Pz835QueeGJ7+hNfwPOx9OwGQPq7Zlc/1Vt6lykxA9xSII05wRVTDhl+HPDfJfhCB9 HT4fSskjeFDYnYBsEmxvj1C11xiUG1RTef2h4axkFf90jd3fEKp9SU6BuK/n6ob4yk7/rhFW7wS 8qRFjv++ypX1eSpNGSXzfJk/Q X-Google-Smtp-Source: AGHT+IH5cc/FEexBUEnQan3JgIPEmzkBlB9vYHStRDWZ2IzvcyTnSSm/e/hbP9dk57e3uTYbZluCnw== X-Received: by 2002:a05:6102:91c:b0:4c1:801e:deb2 with SMTP id ada2fe7eead31-4c86365fe4emr787099137.7.1743795605972; Fri, 04 Apr 2025 12:40:05 -0700 (PDT) Received: from lvondent-mobl5.. (syn-050-089-067-214.res.spectrum.com. [50.89.67.214]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-8738b1d352esm718587241.19.2025.04.04.12.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Apr 2025 12:40:04 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1 02/11] test-bap: Introduce USR/SCC tests for LC3 Date: Fri, 4 Apr 2025 15:39:40 -0400 Message-ID: <20250404193959.359008-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250404193959.359008-1-luiz.dentz@gmail.com> References: <20250404193959.359008-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 From: Luiz Augusto von Dentz 4.9.1 Unicast Server as Audio Sink Performs Config Codec – LC3 Test Purpose: Verify that a Unicast Server Audio Sink IUT can perform a Config Codec operation initiated by a Unicast Client for an ASE in the Idle state, the Codec Configured state. Pass Veridict: The IUT sends a Response_Code of 0x00 (Success) in response to each Config Codec operation. 4.9.2 Unicast Server as Audio Source Performs Config Codec – LC3 Test Purpose: Verify that a Unicast Server Audio Source IUT can perform a Config Codec operation initiated by a Unicast Client for an ASE in the Idle state, the Codec Configured state. Pass verdict: The IUT sends a Response_Code of 0x00 (Success) in response to each Config Codec operation. Test Summary ------------ BAP/USR/SCC/BV-001-C [USR SNK Config Codec, LC3 8_1] Passed BAP/USR/SCC/BV-002-C [USR SNK Config Codec, LC3 8_2] Passed BAP/USR/SCC/BV-003-C [USR SNK Config Codec, LC3 16_1] Passed BAP/USR/SCC/BV-004-C [USR SNK Config Codec, LC3 16_2] Passed BAP/USR/SCC/BV-005-C [USR SNK Config Codec, LC3 24_1] Passed BAP/USR/SCC/BV-006-C [USR SNK Config Codec, LC3 24_2] Passed BAP/USR/SCC/BV-007-C [USR SNK Config Codec, LC3 32_1] Passed BAP/USR/SCC/BV-008-C [USR SNK Config Codec, LC3 32_2] Passed BAP/USR/SCC/BV-009-C [USR SNK Config Codec, LC3 44.1_1] Passed BAP/USR/SCC/BV-010-C [USR SNK Config Codec, LC3 44.1_2] Passed BAP/USR/SCC/BV-011-C [USR SNK Config Codec, LC3 48_1] Passed BAP/USR/SCC/BV-012-C [USR SNK Config Codec, LC3 48_2] Passed BAP/USR/SCC/BV-013-C [USR SNK Config Codec, LC3 48_3] Passed BAP/USR/SCC/BV-014-C [USR SNK Config Codec, LC3 48_4] Passed BAP/USR/SCC/BV-015-C [USR SNK Config Codec, LC3 48_5] Passed BAP/USR/SCC/BV-016-C [USR SNK Config Codec, LC3 48_6] Passed BAP/USR/SCC/BV-017-C [USR SRC Config Codec, LC3 8_1] Passed BAP/USR/SCC/BV-018-C [USR SRC Config Codec, LC3 8_2] Passed BAP/USR/SCC/BV-019-C [USR SRC Config Codec, LC3 16_1] Passed BAP/USR/SCC/BV-020-C [USR SRC Config Codec, LC3 16_2] Passed BAP/USR/SCC/BV-021-C [USR SRC Config Codec, LC3 24_1] Passed BAP/USR/SCC/BV-022-C [USR SRC Config Codec, LC3 24_2] Passed BAP/USR/SCC/BV-023-C [USR SRC Config Codec, LC3 32_1] Passed BAP/USR/SCC/BV-024-C [USR SRC Config Codec, LC3 32_2] Passed BAP/USR/SCC/BV-025-C [USR SRC Config Codec, LC3 44.1_1] Passed BAP/USR/SCC/BV-026-C [USR SRC Config Codec, LC3 44.1_2] Passed BAP/USR/SCC/BV-027-C [USR SRC Config Codec, LC3 48_1] Passed BAP/USR/SCC/BV-028-C [USR SRC Config Codec, LC3 48_2] Passed BAP/USR/SCC/BV-029-C [USR SRC Config Codec, LC3 48_3] Passed BAP/USR/SCC/BV-030-C [USR SRC Config Codec, LC3 48_4] Passed BAP/USR/SCC/BV-031-C [USR SRC Config Codec, LC3 48_5] Passed BAP/USR/SCC/BV-032-C [USR SRC Config Codec, LC3 48_6] Passed Total: 32, Passed: 32 (100.0%), Failed: 0, Not Run: 0 --- unit/test-bap.c | 234 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 202 insertions(+), 32 deletions(-) diff --git a/unit/test-bap.c b/unit/test-bap.c index cabb9b296ee2..dc199f4871e1 100644 --- a/unit/test-bap.c +++ b/unit/test-bap.c @@ -90,9 +90,11 @@ static struct iovec lc3_caps = LC3_CAPABILITIES(LC3_FREQ_ANY, LC3_DURATION_ANY, 3u, 26, 240); static struct bt_bap_pac_qos lc3_qos = { + .phy = 0x02, + .rtn = 0x01, .location = 0x00000003, .supported_context = 0x0fff, - .context = 0x0fff + .context = 0x0fff, }; #define iov_data(args...) ((const struct iovec[]) { args }) @@ -402,12 +404,18 @@ static void gatt_notify_cb(struct gatt_db_attribute *attrib, struct test_data *data = user_data; uint16_t handle = gatt_db_attribute_get_handle(attrib); - if (!data->server) + if (tester_use_debug()) + tester_debug("handle 0x%04x len %zd", handle, len); + + if (!data->server) { + if (tester_use_debug()) + tester_debug("data->server %p", data->server); return; + } if (!bt_gatt_server_send_notification(data->server, handle, value, len, false)) - printf("%s: Failed to send notification\n", __func__); + tester_debug("%s: Failed to send notification", __func__); } static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib, @@ -475,6 +483,19 @@ static void setup_complete_cb(const void *user_data) tester_setup_complete(); } +static int pac_config(struct bt_bap_stream *stream, struct iovec *cfg, + struct bt_bap_qos *qos, bt_bap_pac_config_t cb, + void *user_data) +{ + cb(stream, 0); + + return 0; +} + +static struct bt_bap_pac_ops ucast_pac_ops = { + .config = pac_config, +}; + static void test_setup_server(const void *user_data) { struct test_data *data = (void *)user_data; @@ -494,23 +515,19 @@ static void test_setup_server(const void *user_data) data->ccc_states = queue_new(); - /* If there is no configuration, add a sink PAC since otherwise bt_bap - * won't even register the required services. - */ - if (!data->cfg) { - data->snk = bt_bap_add_pac(db, "test-bap-snk", - BT_BAP_SINK, LC3_ID, + data->snk = bt_bap_add_pac(db, "test-bap-snk", BT_BAP_SINK, LC3_ID, data->qos, data->caps, NULL); - data->src = bt_bap_add_pac(db, "test-bap-src", - BT_BAP_SOURCE, LC3_ID, + g_assert(data->snk); + + bt_bap_pac_set_ops(data->snk, &ucast_pac_ops, NULL); + + data->src = bt_bap_add_pac(db, "test-bap-src", BT_BAP_SOURCE, LC3_ID, data->qos, data->caps, NULL); - g_assert(data->snk); - g_assert(data->src); - } else { - test_setup_pacs(data); - } + g_assert(data->src); + + bt_bap_pac_set_ops(data->src, &ucast_pac_ops, NULL); att = bt_att_new(io_get_fd(io), false); g_assert(att); @@ -675,15 +692,6 @@ static void test_client(const void *user_data) bt_bap_attach(data->bap, data->client); } -static int pac_config(struct bt_bap_stream *stream, struct iovec *cfg, - struct bt_bap_qos *qos, bt_bap_pac_config_t cb, - void *user_data) -{ - cb(stream, 0); - - return 0; -} - static struct bt_bap_pac_ops bcast_pac_ops = { .config = pac_config, }; @@ -1154,8 +1162,6 @@ static void test_server(const void *user_data) tester_io_set_complete_func(test_complete_cb); - test_setup_pacs(data); - data->id = bt_bap_register(bap_attached, NULL, data); g_assert(data->id); @@ -1221,13 +1227,13 @@ static void test_disc(void) * Data: 0101010000 * ATT: Handle Value Notification (0x1b) len 37 * Handle: 0x0016 - * Data: 01010102010a00204e00409c00204e00409c00_cfg + * Data: 01010002010a00204e00409c00204e00409c00_cfg */ #define SCC_SNK(_cfg...) \ IOV_DATA(0x52, 0x22, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, _cfg), \ IOV_DATA(0x1b, 0x22, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00), \ IOV_NULL, \ - IOV_DATA(0x1b, 0x16, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, 0x0a, 0x00, \ + IOV_DATA(0x1b, 0x16, 0x00, 0x01, 0x01, 0x00, 0x02, 0x01, 0x0a, 0x00, \ 0x20, 0x4e, 0x00, 0x40, 0x9c, 0x00, 0x20, 0x4e, 0x00, \ 0x40, 0x9c, 0x00, _cfg) @@ -1412,13 +1418,13 @@ static struct test_config cfg_snk_48_6 = { * Data: 0101030000 * ATT: Handle Value Notification (0x1b) len 37 * Handle: 0x001c - * Data: 03010102010a00204e00409c00204e00409c00_cfg + * Data: 03010002010a00204e00409c00204e00409c00_cfg */ #define SCC_SRC(_cfg...) \ IOV_DATA(0x52, 0x22, 0x00, 0x01, 0x01, 0x03, 0x02, 0x02, _cfg), \ IOV_DATA(0x1b, 0x22, 0x00, 0x01, 0x01, 0x03, 0x00, 0x00), \ IOV_NULL, \ - IOV_DATA(0x1b, 0x1c, 0x00, 0x03, 0x01, 0x01, 0x02, 0x01, 0x0a, 0x00, \ + IOV_DATA(0x1b, 0x1c, 0x00, 0x03, 0x01, 0x00, 0x02, 0x01, 0x0a, 0x00, \ 0x20, 0x4e, 0x00, 0x40, 0x9c, 0x00, 0x20, 0x4e, 0x00, \ 0x40, 0x9c, 0x00, _cfg) @@ -1600,7 +1606,7 @@ static struct test_config cfg_src_48_6 = { * formatted in an LTV structure with the length, type, and value * specified in Table 4.10. */ -static void test_scc_cc_lc3(void) +static void test_ucl_scc_cc_lc3(void) { define_test("BAP/UCL/SCC/BV-001-C [UCL SRC Config Codec, LC3 8_1]", test_setup, test_client, &cfg_snk_8_1, SCC_SNK_8_1); @@ -1668,6 +1674,170 @@ static void test_scc_cc_lc3(void) test_setup, test_client, &cfg_src_48_6, SCC_SRC_48_6); } + +/* 4.9 Unicast Server Configuration */ +static void test_usr_scc_cc_lc3(void) +{ + /* 4.9.1 Unicast Server as Audio Sink Performs Config Codec – LC3 + * + * Test Purpose: + * Verify that a Unicast Server Audio Sink IUT can perform a Config + * Codec operation initiated by a Unicast Client for an ASE in the Idle + * state, the Codec Configured state. + * + * Pass Veridict: + * The IUT sends a Response_Code of 0x00 (Success) in response to each + * Config Codec operation. + * + * BAP/USR/SCC/BV-001-C [USR SNK Config Codec, LC3 8_1] + * BAP/USR/SCC/BV-002-C [USR SNK Config Codec, LC3 8_2] + * BAP/USR/SCC/BV-003-C [USR SNK Config Codec, LC3 16_1] + * BAP/USR/SCC/BV-004-C [USR SNK Config Codec, LC3 16_2] + * BAP/USR/SCC/BV-005-C [USR SNK Config Codec, LC3 24_1] + * BAP/USR/SCC/BV-006-C [USR SNK Config Codec, LC3 24_2] + * BAP/USR/SCC/BV-007-C [USR SNK Config Codec, LC3 32_1] + * BAP/USR/SCC/BV-008-C [USR SNK Config Codec, LC3 32_2] + * BAP/USR/SCC/BV-009-C [USR SNK Config Codec, LC3 44.1_1] + * BAP/USR/SCC/BV-010-C [USR SNK Config Codec, LC3 44.1_2] + * BAP/USR/SCC/BV-011-C [USR SNK Config Codec, LC3 48_1] + * BAP/USR/SCC/BV-012-C [USR SNK Config Codec, LC3 48_2] + * BAP/USR/SCC/BV-013-C [USR SNK Config Codec, LC3 48_3] + * BAP/USR/SCC/BV-014-C [USR SNK Config Codec, LC3 48_4] + * BAP/USR/SCC/BV-015-C [USR SNK Config Codec, LC3 48_5] + * BAP/USR/SCC/BV-016-C [USR SNK Config Codec, LC3 48_6] + */ + define_test("BAP/USR/SCC/BV-001-C [USR SNK Config Codec, LC3 8_1]", + test_setup_server, test_server, &cfg_snk_8_1, + SCC_SNK_8_1); + define_test("BAP/USR/SCC/BV-002-C [USR SNK Config Codec, LC3 8_2]", + test_setup_server, test_server, &cfg_snk_8_2, + SCC_SNK_8_2); + define_test("BAP/USR/SCC/BV-003-C [USR SNK Config Codec, LC3 16_1]", + test_setup_server, test_server, &cfg_snk_16_1, + SCC_SNK_16_1); + define_test("BAP/USR/SCC/BV-004-C [USR SNK Config Codec, LC3 16_2]", + test_setup_server, test_server, &cfg_snk_16_2, + SCC_SNK_16_2); + define_test("BAP/USR/SCC/BV-005-C [USR SNK Config Codec, LC3 24_1]", + test_setup_server, test_server, &cfg_snk_24_1, + SCC_SNK_24_1); + define_test("BAP/USR/SCC/BV-006-C [USR SNK Config Codec, LC3 24_2]", + test_setup_server, test_server, &cfg_snk_24_2, + SCC_SNK_24_2); + define_test("BAP/USR/SCC/BV-007-C [USR SNK Config Codec, LC3 32_1]", + test_setup_server, test_server, &cfg_snk_32_1, + SCC_SNK_32_1); + define_test("BAP/USR/SCC/BV-008-C [USR SNK Config Codec, LC3 32_2]", + test_setup_server, test_server, &cfg_snk_32_2, + SCC_SNK_32_2); + define_test("BAP/USR/SCC/BV-009-C [USR SNK Config Codec, LC3 44.1_1]", + test_setup_server, test_server, &cfg_snk_44_1, + SCC_SNK_44_1); + define_test("BAP/USR/SCC/BV-010-C [USR SNK Config Codec, LC3 44.1_2]", + test_setup_server, test_server, &cfg_snk_44_2, + SCC_SNK_44_2); + define_test("BAP/USR/SCC/BV-011-C [USR SNK Config Codec, LC3 48_1]", + test_setup_server, test_server, &cfg_snk_48_1, + SCC_SNK_48_1); + define_test("BAP/USR/SCC/BV-012-C [USR SNK Config Codec, LC3 48_2]", + test_setup_server, test_server, &cfg_snk_48_2, + SCC_SNK_48_2); + define_test("BAP/USR/SCC/BV-013-C [USR SNK Config Codec, LC3 48_3]", + test_setup_server, test_server, &cfg_snk_48_3, + SCC_SNK_48_3); + define_test("BAP/USR/SCC/BV-014-C [USR SNK Config Codec, LC3 48_4]", + test_setup_server, test_server, &cfg_snk_48_4, + SCC_SNK_48_4); + define_test("BAP/USR/SCC/BV-015-C [USR SNK Config Codec, LC3 48_5]", + test_setup_server, test_server, &cfg_snk_48_5, + SCC_SNK_48_5); + define_test("BAP/USR/SCC/BV-016-C [USR SNK Config Codec, LC3 48_6]", + test_setup_server, test_server, &cfg_snk_48_6, + SCC_SNK_48_6); + /* 4.9.2 Unicast Server as Audio Source Performs Config Codec – LC3 + * + * Test Purpose + * Verify that a Unicast Server Audio Source IUT can perform a Config + * Codec operation initiated by a Unicast Client for an ASE in the Idle + * state, the Codec Configured state. + * + * Pass verdict + * The IUT sends a Response_Code of 0x00 (Success) in response to each + * Config Codec operation. + * + * BAP/USR/SCC/BV-017-C [USR SRC Config Codec, LC3 8_1] + * BAP/USR/SCC/BV-018-C [USR SRC Config Codec, LC3 8_2] + * BAP/USR/SCC/BV-019-C [USR SRC Config Codec, LC3 16_1] + * BAP/USR/SCC/BV-020-C [USR SRC Config Codec, LC3 16_2] + * BAP/USR/SCC/BV-021-C [USR SRC Config Codec, LC3 24_1] + * BAP/USR/SCC/BV-022-C [USR SRC Config Codec, LC3 24_2] + * BAP/USR/SCC/BV-023-C [USR SRC Config Codec, LC3 32_1] + * BAP/USR/SCC/BV-024-C [USR SRC Config Codec, LC3 32_2] + * BAP/USR/SCC/BV-025-C [USR SRC Config Codec, LC3 44.1_1] + * BAP/USR/SCC/BV-026-C [USR SRC Config Codec, LC3 44.1_2] + * BAP/USR/SCC/BV-027-C [USR SRC Config Codec, LC3 48_1] + * BAP/USR/SCC/BV-028-C [USR SRC Config Codec, LC3 48_2] + * BAP/USR/SCC/BV-029-C [USR SRC Config Codec, LC3 48_3] + * BAP/USR/SCC/BV-030-C [USR SRC Config Codec, LC3 48_4] + * BAP/USR/SCC/BV-031-C [USR SRC Config Codec, LC3 48_5] + * BAP/USR/SCC/BV-032-C [USR SRC Config Codec, LC3 48_6] + */ + define_test("BAP/USR/SCC/BV-017-C [USR SRC Config Codec, LC3 8_1]", + test_setup_server, test_server, &cfg_src_8_1, + SCC_SRC_8_1); + define_test("BAP/USR/SCC/BV-018-C [USR SRC Config Codec, LC3 8_2]", + test_setup_server, test_server, &cfg_src_8_2, + SCC_SRC_8_2); + define_test("BAP/USR/SCC/BV-019-C [USR SRC Config Codec, LC3 16_1]", + test_setup_server, test_server, &cfg_src_16_1, + SCC_SRC_16_1); + define_test("BAP/USR/SCC/BV-020-C [USR SRC Config Codec, LC3 16_2]", + test_setup_server, test_server, &cfg_src_16_2, + SCC_SRC_16_2); + define_test("BAP/USR/SCC/BV-021-C [USR SRC Config Codec, LC3 24_1]", + test_setup_server, test_server, &cfg_src_24_1, + SCC_SRC_24_1); + define_test("BAP/USR/SCC/BV-022-C [USR SRC Config Codec, LC3 24_2]", + test_setup_server, test_server, &cfg_src_24_2, + SCC_SRC_24_2); + define_test("BAP/USR/SCC/BV-023-C [USR SRC Config Codec, LC3 32_1]", + test_setup_server, test_server, &cfg_src_32_1, + SCC_SRC_32_1); + define_test("BAP/USR/SCC/BV-024-C [USR SRC Config Codec, LC3 32_2]", + test_setup_server, test_server, &cfg_src_32_2, + SCC_SRC_32_2); + define_test("BAP/USR/SCC/BV-025-C [USR SRC Config Codec, LC3 44.1_1]", + test_setup_server, test_server, &cfg_src_44_1, + SCC_SRC_44_1); + define_test("BAP/USR/SCC/BV-026-C [USR SRC Config Codec, LC3 44.1_2]", + test_setup_server, test_server, &cfg_src_44_2, + SCC_SRC_44_2); + define_test("BAP/USR/SCC/BV-027-C [USR SRC Config Codec, LC3 48_1]", + test_setup_server, test_server, &cfg_src_48_1, + SCC_SRC_48_1); + define_test("BAP/USR/SCC/BV-028-C [USR SRC Config Codec, LC3 48_2]", + test_setup_server, test_server, &cfg_src_48_2, + SCC_SRC_48_2); + define_test("BAP/USR/SCC/BV-029-C [USR SRC Config Codec, LC3 48_3]", + test_setup_server, test_server, &cfg_src_48_3, + SCC_SRC_48_3); + define_test("BAP/USR/SCC/BV-030-C [USR SRC Config Codec, LC3 48_4]", + test_setup_server, test_server, &cfg_src_48_4, + SCC_SRC_48_4); + define_test("BAP/USR/SCC/BV-031-C [USR SRC Config Codec, LC3 48_5]", + test_setup_server, test_server, &cfg_src_48_5, + SCC_SRC_48_5); + define_test("BAP/USR/SCC/BV-032-C [USR SRC Config Codec, LC3 48_6]", + test_setup_server, test_server, &cfg_src_48_6, + SCC_SRC_48_6); +} + +static void test_scc_cc_lc3(void) +{ + test_ucl_scc_cc_lc3(); + test_usr_scc_cc_lc3(); +} + static struct test_config cfg_snk_vs = { .cc = IOV_NULL, .qos = QOS_UCAST,