/Zephyr-Core-3.6.0/subsys/bluetooth/audio/ |
D | bap_base.c | 140 LOG_DBG("Invalid subgroup count: %u", subgroup_count); in bt_bap_base_get_base_from_ad() 156 LOG_DBG("Subgroup[%u]: Invalid BIS count: %u", i, bis_count); in bt_bap_base_get_base_from_ad() 194 LOG_DBG("Subgroup[%u]: Invalid BIS index: %u", i, bis_index); in bt_bap_base_get_base_from_ad() 251 struct bt_bap_base_subgroup *subgroup; in bt_bap_base_foreach_subgroup() local 272 subgroup = (struct bt_bap_base_subgroup *)net_buf.data; in bt_bap_base_foreach_subgroup() 273 if (!func(subgroup, user_data)) { in bt_bap_base_foreach_subgroup() 279 /* Parse subgroup data to get next subgroup pointer */ in bt_bap_base_foreach_subgroup() 304 int bt_bap_base_get_subgroup_codec_id(const struct bt_bap_base_subgroup *subgroup, in bt_bap_base_get_subgroup_codec_id() argument 309 CHECKIF(subgroup == NULL) { in bt_bap_base_get_subgroup_codec_id() 310 LOG_DBG("subgroup is NULL"); in bt_bap_base_get_subgroup_codec_id() [all …]
|
D | bap_broadcast_source.c | 29 /* The codec of the subgroup */ 48 * Each subgroup then has 56 * For each BIS in the subgroup there is 61 * For a minimal BASE with 1 subgroup and 1 BIS without and other data the 111 struct bt_bap_broadcast_subgroup *subgroup; in broadcast_source_set_state() local 113 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in broadcast_source_set_state() 116 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state() 268 struct bt_bap_broadcast_subgroup *subgroup = &broadcast_source_subgroups[index][i]; in broadcast_source_new_subgroup() local 270 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup() 271 return subgroup; in broadcast_source_new_subgroup() [all …]
|
D | bap_scan_delegator.c | 60 /** Requested BIS sync bitfield for each subgroup */ 134 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bt_debug_dump_recv_state() local 138 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state() 139 subgroup->metadata_len, bt_hex(subgroup->metadata, subgroup->metadata_len)); in bt_debug_dump_recv_state() 200 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in net_buf_put_recv_state() local 202 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync >> 1); in net_buf_put_recv_state() 203 (void)net_buf_simple_add_u8(&read_buf, subgroup->metadata_len); in net_buf_put_recv_state() 204 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state() 205 subgroup->metadata_len); in net_buf_put_recv_state() 550 struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in scan_delegator_add_source() local [all …]
|
D | bap_broadcast_assistant.c | 147 struct bt_bap_bass_subgroup *subgroup = &recv_state->subgroups[i]; in parse_recv_state() local 150 if (buf.len < sizeof(subgroup->bis_sync)) { in parse_recv_state() 152 buf.len, buf.len + sizeof(subgroup->bis_sync)); in parse_recv_state() 156 subgroup->bis_sync = net_buf_simple_pull_le32(&buf); in parse_recv_state() 158 if (buf.len < sizeof(subgroup->metadata_len)) { in parse_recv_state() 160 buf.len, buf.len + sizeof(subgroup->metadata_len)); in parse_recv_state() 163 subgroup->metadata_len = net_buf_simple_pull_u8(&buf); in parse_recv_state() 165 if (buf.len < subgroup->metadata_len) { in parse_recv_state() 167 buf.len, buf.len + subgroup->metadata_len); in parse_recv_state() 171 if (subgroup->metadata_len > sizeof(subgroup->metadata)) { in parse_recv_state() [all …]
|
D | Kconfig.bap | 63 The minimum size of a subgroup is 10 octets. 139 int "Basic Audio Broadcast Source subgroup count" 183 int "Basic Audio Profile Broadcast Sink subgroup count"
|
D | bap_broadcast_sink.c | 109 /* Set the bis_sync value to the indexes available per subgroup */ in update_recv_state_big_synced() 440 static bool base_subgroup_meta_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_meta_cb() argument 447 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in base_subgroup_meta_cb() 502 /* Set the bis_sync value to the indexes available per subgroup */ in update_recv_state_base() 534 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument 548 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &sink_subgroup->codec_cfg); in base_subgroup_cb() 554 ret = bt_bap_base_subgroup_foreach_bis(subgroup, base_subgroup_bis_index_cb, in base_subgroup_cb() 601 static bool base_subgroup_bis_count_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_bis_count_cb() argument 606 ret = bt_bap_base_get_subgroup_bis_count(subgroup); in base_subgroup_bis_count_cb() 947 struct bt_bap_broadcast_sink_subgroup *subgroup = &sink->subgroups[i]; in codec_cfg_from_base_by_index() local [all …]
|
D | bap_endpoint.h | 94 /* The codec specific configured data for each stream in the subgroup */
|
/Zephyr-Core-3.6.0/tests/bluetooth/audio/bap_base/src/ |
D | main.c | 28 0x02, /* subgroup count */ in bap_base_test_suite_fixture_init() 29 0x01, /* Subgroup 1: bis count */ in bap_base_test_suite_fixture_init() 39 0x01, /* Subgroup 1: bis count */ in bap_base_test_suite_fixture_init() 229 static bool test_base_foreach_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_foreach_subgroup_cb() argument 249 zassert_equal(count, 0x02, "Unexpected subgroup count value: %u", count); in ZTEST_F() 272 static bool test_base_get_subgroup_codec_id_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_get_subgroup_codec_id_cb() argument 278 ret = bt_bap_base_get_subgroup_codec_id(subgroup, &codec_id); in test_base_get_subgroup_codec_id_cb() 299 const struct bt_bap_base_subgroup *subgroup, void *user_data) in test_base_get_subgroup_codec_id_inval_param_null_subgroup_cb() argument 323 test_base_get_subgroup_codec_id_inval_param_null_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_get_subgroup_codec_id_inval_param_null_cb() argument 328 ret = bt_bap_base_get_subgroup_codec_id(subgroup, NULL); in test_base_get_subgroup_codec_id_inval_param_null_cb() [all …]
|
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/ |
D | bap_broadcast_assistant.c | 37 struct bt_bap_bass_subgroup subgroup; member 131 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local 135 subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb() 137 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb() 138 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb() 364 struct bt_bap_bass_subgroup subgroup = { 0 }; in cmd_bap_broadcast_assistant_add_src() local 455 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_src() 462 subgroup.metadata, in cmd_bap_broadcast_assistant_add_src() 463 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_src() 471 /* sizeof(subgroup.metadata) can always fit in uint8_t */ in cmd_bap_broadcast_assistant_add_src() [all …]
|
D | audio.h | 262 static inline bool print_base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, in print_base_subgroup_cb() argument 269 shell_print(ctx_shell, "Subgroup %p:", subgroup); in print_base_subgroup_cb() 271 ret = bt_bap_base_get_subgroup_codec_id(subgroup, &codec_id); in print_base_subgroup_cb() 280 ret = bt_bap_base_get_subgroup_codec_data(subgroup, &data); in print_base_subgroup_cb() 292 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &data); in print_base_subgroup_cb() 304 ret = bt_bap_base_subgroup_foreach_bis(subgroup, print_base_subgroup_bis_cb, &codec_id); in print_base_subgroup_cb() 317 shell_print(ctx_shell, "Subgroup count: %d", bt_bap_base_get_subgroup_count(base)); in print_base()
|
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/ |
D | bap_broadcast_assistant_test.c | 124 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local 128 i, subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb() 130 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb() 131 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb() 134 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb() 399 struct bt_bap_bass_subgroup subgroup = { 0 }; in test_bass_add_source() local 410 add_src_param.subgroups = &subgroup; in test_bass_add_source() 411 subgroup.bis_sync = 0; in test_bass_add_source() 412 subgroup.metadata_len = 0; in test_bass_add_source() 428 struct bt_bap_bass_subgroup subgroup = { 0 }; in test_bass_mod_source() local [all …]
|
D | cap_acceptor_test.c | 88 static bool valid_subgroup_metadata_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in valid_subgroup_metadata_cb() argument 94 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in valid_subgroup_metadata_cb() 96 FAIL("Could not get subgroup meta: %d\n", ret); in valid_subgroup_metadata_cb() 106 printk("Subgroup did not have streaming context\n"); in valid_subgroup_metadata_cb() 125 FAIL("Failed to get subgroup count: %d\n", ret); in base_recv_cb()
|
D | bap_broadcast_sink_test.c | 55 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument 62 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in base_subgroup_cb() 64 FAIL("Could not get subgroup meta: %d\n", ret); in base_subgroup_cb() 243 /* We only care about a single subgroup in this test */ in bis_sync_req_cb()
|
/Zephyr-Core-3.6.0/tests/bluetooth/tester/src/ |
D | btp_bap_broadcast.c | 238 /* BIS Codec Specific Configuration will be specified on subgroup level, in setup_broadcast_source() 256 /* BIS Codec Specific Configuration specified on subgroup level */ in setup_broadcast_source() 625 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument 630 err = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &parse_data->codec_cfg); in base_subgroup_cb() 636 err = bt_bap_base_subgroup_foreach_bis(subgroup, base_subgroup_bis_cb, user_data); in base_subgroup_cb() 832 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in btp_send_broadcast_receive_state_ev() local 834 sys_put_le32(subgroup->bis_sync >> 1, ptr); in btp_send_broadcast_receive_state_ev() 835 ptr += sizeof(subgroup->bis_sync); in btp_send_broadcast_receive_state_ev() 836 *ptr = subgroup->metadata_len; in btp_send_broadcast_receive_state_ev() 837 ptr += sizeof(subgroup->metadata_len); in btp_send_broadcast_receive_state_ev() [all …]
|
/Zephyr-Core-3.6.0/samples/bluetooth/broadcast_audio_source/ |
D | prj.conf | 10 # Two streams in one subgroup (stereo)
|
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/audio/ |
D | bap.h | 248 /** Struct to hold subgroup specific information for the receive state */ 291 /** Subgroup specific information */ 377 * that is requested to sync for each subgroup 1367 /** @brief Abstract Broadcast Audio Source Endpoint (BASE) subgroup structure. */ 1382 /** BIS structure for each BIS in a Broadcast Audio Source Endpoint (BASE) subgroup */ 1413 * @brief Get the subgroup count of a BASE 1418 * @retval The 8-bit subgroup count value 1445 bool (*func)(const struct bt_bap_base_subgroup *subgroup, 1450 * @brief Get the codec ID of a subgroup 1452 * @param[in] subgroup The subgroup pointer [all …]
|
/Zephyr-Core-3.6.0/samples/bluetooth/broadcast_audio_assistant/src/ |
D | main.c | 190 * in order to obtain the right subgroup information to send to in scan_recv_cb() 404 struct bt_bap_bass_subgroup subgroup = { 0 }; in main() local 476 * set only one bit in bis_sync, e.g. subgroup.bis_sync = BIT(1). in main() 481 subgroup.bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in main() 489 /* TODO: Obtain the and set the correct subgroup information. in main() 494 param.subgroups = &subgroup; in main()
|
/Zephyr-Core-3.6.0/dts/bindings/pinctrl/ |
D | nuvoton,numicro-pinctrl.yaml | 8 and each numbered subgroup in the pin group defines all the pins for that
|
D | openisa,rv32m1-pinctrl.yaml | 9 and each numbered subgroup in the pin group defines all the pins for that
|
D | nxp,kinetis-pinctrl.yaml | 8 and each numbered subgroup in the pin group defines all the pins for that
|
D | nxp,rt-iocon-pinctrl.yaml | 8 Each numbered subgroup represents pins with shared configuration for that
|
D | nxp,s32k3-pinctrl.yaml | 11 and each numbered subgroup in the pin group defines all the pins for that
|
D | nxp,lpc-iocon-pinctrl.yaml | 8 subgroup represents pins with shared configuration for that peripheral. The
|
D | nxp,s32ze-pinctrl.yaml | 11 and each numbered subgroup in the pin group defines all the pins for that
|
/Zephyr-Core-3.6.0/doc/connectivity/bluetooth/api/shell/ |
D | bap.rst | 159 Subgroup count: 2 160 Subgroup[0]: 175 Subgroup[1]:
|