Home
last modified time | relevance | path

Searched refs:subgroup (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/subsys/bluetooth/audio/
Dbap_base.c316 struct bt_bap_base_subgroup *subgroup; in bt_bap_base_foreach_subgroup() local
337 subgroup = (struct bt_bap_base_subgroup *)net_buf.data; in bt_bap_base_foreach_subgroup()
338 if (!func(subgroup, user_data)) { in bt_bap_base_foreach_subgroup()
369 int bt_bap_base_get_subgroup_codec_id(const struct bt_bap_base_subgroup *subgroup, in bt_bap_base_get_subgroup_codec_id() argument
374 CHECKIF(subgroup == NULL) { in bt_bap_base_get_subgroup_codec_id()
386 net_buf_simple_init_with_data(&net_buf, (void *)subgroup, BASE_SUBGROUP_MAX_SIZE); in bt_bap_base_get_subgroup_codec_id()
393 int bt_bap_base_get_subgroup_codec_data(const struct bt_bap_base_subgroup *subgroup, uint8_t **data) in bt_bap_base_get_subgroup_codec_data() argument
397 CHECKIF(subgroup == NULL) { in bt_bap_base_get_subgroup_codec_data()
409 net_buf_simple_init_with_data(&net_buf, (void *)subgroup, BASE_SUBGROUP_MAX_SIZE); in bt_bap_base_get_subgroup_codec_data()
417 int bt_bap_base_get_subgroup_codec_meta(const struct bt_bap_base_subgroup *subgroup, uint8_t **meta) in bt_bap_base_get_subgroup_codec_meta() argument
[all …]
Dbap_broadcast_source.c129 struct bt_bap_broadcast_subgroup *subgroup; in broadcast_source_set_state() local
131 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in broadcast_source_set_state()
134 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state()
286 struct bt_bap_broadcast_subgroup *subgroup = &broadcast_source_subgroups[index][i]; in broadcast_source_new_subgroup() local
288 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup()
289 return subgroup; in broadcast_source_new_subgroup()
334 static bool encode_base_subgroup(struct bt_bap_broadcast_subgroup *subgroup, in encode_base_subgroup() argument
344 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in encode_base_subgroup()
348 codec_cfg = subgroup->codec_cfg; in encode_base_subgroup()
421 struct bt_bap_broadcast_subgroup *subgroup; in encode_base() local
[all …]
Dbap_scan_delegator.c141 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bt_debug_dump_recv_state() local
145 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state()
146 subgroup->metadata_len, in bt_debug_dump_recv_state()
147 bt_hex(subgroup->metadata, subgroup->metadata_len)); in bt_debug_dump_recv_state()
211 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in net_buf_put_recv_state() local
213 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
214 (void)net_buf_simple_add_u8(&read_buf, subgroup->metadata_len); in net_buf_put_recv_state()
215 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state()
216 subgroup->metadata_len); in net_buf_put_recv_state()
558 struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in scan_delegator_add_source() local
[all …]
Dbap_broadcast_assistant.c280 struct bt_bap_bass_subgroup *subgroup = &recv_state->subgroups[i]; in parse_recv_state() local
283 if (buf.len < sizeof(subgroup->bis_sync)) { in parse_recv_state()
285 buf.len, buf.len + sizeof(subgroup->bis_sync)); in parse_recv_state()
289 subgroup->bis_sync = net_buf_simple_pull_le32(&buf); in parse_recv_state()
291 if (buf.len < sizeof(subgroup->metadata_len)) { in parse_recv_state()
293 buf.len, buf.len + sizeof(subgroup->metadata_len)); in parse_recv_state()
296 subgroup->metadata_len = net_buf_simple_pull_u8(&buf); in parse_recv_state()
298 if (buf.len < subgroup->metadata_len) { in parse_recv_state()
300 buf.len, buf.len + subgroup->metadata_len); in parse_recv_state()
304 if (subgroup->metadata_len > sizeof(subgroup->metadata)) { in parse_recv_state()
[all …]
Dbap_broadcast_sink.c485 static bool base_subgroup_meta_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_meta_cb() argument
492 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in base_subgroup_meta_cb()
662 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument
678 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in base_subgroup_cb()
696 ret = bt_bap_base_subgroup_foreach_bis(subgroup, base_subgroup_bis_index_cb, data); in base_subgroup_cb()
745 static bool base_subgroup_bis_count_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_bis_count_cb() argument
750 ret = bt_bap_base_get_subgroup_bis_count(subgroup); in base_subgroup_bis_count_cb()
DKconfig.bap60 The minimum size of a subgroup is 10 octets.
131 int "Basic Audio Broadcast Source subgroup count"
173 int "Basic Audio Profile Broadcast Sink subgroup count"
Dcap_commander.c434 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in cap_commander_broadcast_assistant_recv_state_cb() local
439 if (subgroup->bis_sync != 0) { in cap_commander_broadcast_assistant_recv_state_cb()
/Zephyr-latest/tests/bluetooth/audio/bap_base/src/
Dmain.c248 static bool test_base_foreach_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_foreach_subgroup_cb() argument
291 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
297 ret = bt_bap_base_get_subgroup_codec_id(subgroup, &codec_id); in test_base_get_subgroup_codec_id_cb()
318 const struct bt_bap_base_subgroup *subgroup, void *user_data) in test_base_get_subgroup_codec_id_inval_param_null_subgroup_cb() argument
342 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
347 ret = bt_bap_base_get_subgroup_codec_id(subgroup, NULL); in test_base_get_subgroup_codec_id_inval_param_null_cb()
365 static bool test_base_get_subgroup_codec_data_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_get_subgroup_codec_data_cb() argument
375 ret = bt_bap_base_get_subgroup_codec_data(subgroup, &data); in test_base_get_subgroup_codec_data_cb()
394 const struct bt_bap_base_subgroup *subgroup, void *user_data) in test_base_get_subgroup_codec_data_inval_param_null_subgroup_cb() argument
418 test_base_get_subgroup_codec_data_inval_param_null_cb(const struct bt_bap_base_subgroup *subgroup, in test_base_get_subgroup_codec_data_inval_param_null_cb() argument
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c46 struct bt_bap_bass_subgroup subgroup; member
154 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
158 subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
160 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb()
161 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
355 struct bt_bap_bass_subgroup subgroup = { 0 }; in cmd_bap_broadcast_assistant_add_src() local
446 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_src()
453 subgroup.metadata, in cmd_bap_broadcast_assistant_add_src()
454 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_src()
464 subgroup.metadata_len = metadata_len; in cmd_bap_broadcast_assistant_add_src()
[all …]
Dcap_commander.c534 struct bt_bap_bass_subgroup subgroup = {0}; in cmd_cap_commander_broadcast_reception_start() local
638 subgroup.bis_sync = bis_sync; in cmd_cap_commander_broadcast_reception_start()
640 subgroup.bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in cmd_cap_commander_broadcast_reception_start()
646 metadata_len = hex2bin(argv[7], strlen(argv[7]), subgroup.metadata, in cmd_cap_commander_broadcast_reception_start()
647 sizeof(subgroup.metadata)); in cmd_cap_commander_broadcast_reception_start()
657 subgroup.metadata_len = metadata_len; in cmd_cap_commander_broadcast_reception_start()
661 memcpy(member_param->subgroups, &subgroup, sizeof(struct bt_bap_bass_subgroup)); in cmd_cap_commander_broadcast_reception_start()
Daudio.h852 static inline bool print_base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, in print_base_subgroup_cb() argument
861 shell_print(ctx_shell, "Subgroup %p:", subgroup); in print_base_subgroup_cb()
863 ret = bt_bap_base_get_subgroup_codec_id(subgroup, &codec_id); in print_base_subgroup_cb()
872 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in print_base_subgroup_cb()
877 ret = bt_bap_base_get_subgroup_codec_data(subgroup, &data); in print_base_subgroup_cb()
898 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &data); in print_base_subgroup_cb()
921 ret = bt_bap_base_subgroup_foreach_bis(subgroup, print_base_subgroup_bis_cb, &codec_id); in print_base_subgroup_cb()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_assistant_test.c151 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
153 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED) { in bap_broadcast_assistant_recv_state_cb()
155 subgroup->bis_sync); in bap_broadcast_assistant_recv_state_cb()
162 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
166 i, subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
168 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb()
169 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
172 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
434 struct bt_bap_bass_subgroup subgroup = { 0 }; in test_bass_add_source() local
445 add_src_param.subgroups = &subgroup; in test_bass_add_source()
[all …]
Dcap_commander_test.c476 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
479 printk("\t[%d]: BIS sync %u, metadata_len %u\n", i, subgroup->bis_sync, in bap_broadcast_assistant_recv_state_cb()
480 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
482 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb()
483 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
486 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
Dbap_broadcast_sink_test.c95 static bool valid_base_subgroup(const struct bt_bap_base_subgroup *subgroup) in valid_base_subgroup() argument
105 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in valid_base_subgroup()
199 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument
206 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in base_subgroup_cb()
221 if (!valid_base_subgroup(subgroup)) { in base_subgroup_cb()
Dcap_acceptor_test.c116 static bool valid_subgroup_metadata_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in valid_subgroup_metadata_cb() argument
124 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &meta); in valid_subgroup_metadata_cb()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c668 static bool base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, void *user_data) in base_subgroup_cb() argument
673 err = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &parse_data->codec_cfg); in base_subgroup_cb()
679 err = bt_bap_base_subgroup_foreach_bis(subgroup, base_subgroup_bis_cb, user_data); in base_subgroup_cb()
875 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in btp_send_broadcast_receive_state_ev() local
877 sys_put_le32(subgroup->bis_sync >> 1, ptr); in btp_send_broadcast_receive_state_ev()
878 ptr += sizeof(subgroup->bis_sync); in btp_send_broadcast_receive_state_ev()
879 *ptr = subgroup->metadata_len; in btp_send_broadcast_receive_state_ev()
880 ptr += sizeof(subgroup->metadata_len); in btp_send_broadcast_receive_state_ev()
881 memcpy(ptr, subgroup->metadata, subgroup->metadata_len); in btp_send_broadcast_receive_state_ev()
882 ptr += subgroup->metadata_len; in btp_send_broadcast_receive_state_ev()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h1888 bool (*func)(const struct bt_bap_base_subgroup *subgroup,
1901 int bt_bap_base_get_subgroup_codec_id(const struct bt_bap_base_subgroup *subgroup,
1913 int bt_bap_base_get_subgroup_codec_data(const struct bt_bap_base_subgroup *subgroup,
1925 int bt_bap_base_get_subgroup_codec_meta(const struct bt_bap_base_subgroup *subgroup,
1938 int bt_bap_base_subgroup_codec_to_codec_cfg(const struct bt_bap_base_subgroup *subgroup,
1949 int bt_bap_base_get_subgroup_bis_count(const struct bt_bap_base_subgroup *subgroup);
1960 int bt_bap_base_subgroup_get_bis_indexes(const struct bt_bap_base_subgroup *subgroup,
1974 int bt_bap_base_subgroup_foreach_bis(const struct bt_bap_base_subgroup *subgroup,
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c663 static bool subgroup_get_valid_bis_indexes_cb(const struct bt_bap_base_subgroup *subgroup, in subgroup_get_valid_bis_indexes_cb() argument
676 err = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in subgroup_get_valid_bis_indexes_cb()
699 err = bt_bap_base_subgroup_foreach_bis(subgroup, bis_get_channel_allocation_cb, &data); in subgroup_get_valid_bis_indexes_cb()
998 for (uint8_t subgroup = 0; subgroup < recv_state->num_subgroups; subgroup++) { in bis_sync_req_cb() local
999 if (bis_sync_req[subgroup] != 0) { in bis_sync_req_cb()
1001 requested_bis_sync = bis_sync_req[subgroup]; in bis_sync_req_cb()
1004 bis_sync_req[subgroup] != BT_BAP_BIS_SYNC_NO_PREF) { in bis_sync_req_cb()
1015 requested_subgroup_sync |= BIT(subgroup); in bis_sync_req_cb()
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c201 static bool add_pa_sync_base_subgroup_cb(const struct bt_bap_base_subgroup *subgroup, in add_pa_sync_base_subgroup_cb() argument
209 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &data); in add_pa_sync_base_subgroup_cb()
222 ret = bt_bap_base_subgroup_foreach_bis(subgroup, add_pa_sync_base_subgroup_bis_cb, in add_pa_sync_base_subgroup_cb()
/Zephyr-latest/doc/develop/test/
Dtwister.rst609 as_json: <list of regex subgroup names> (optional)
/Zephyr-latest/doc/releases/
Drelease-notes-3.3.rst397 * Added support for Broadcast source subgroup and BIS codec configuration.
3612 * :github:`47242` - LE Audio: Add subgroup support for broadcast source
/Zephyr-latest/doc/
Dzephyr.doxyfile.in446 # (for instance a group of public functions) to be put as a subgroup of that