Home
last modified time | relevance | path

Searched full:subgroup (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_broadcast_source.c29 /* 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()
257 struct bt_bap_broadcast_subgroup *subgroup = &broadcast_source_subgroups[index][i]; in broadcast_source_new_subgroup() local
259 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup()
260 return subgroup; in broadcast_source_new_subgroup()
[all …]
Dbap_scan_delegator.c57 /** Requested BIS sync bitfield for each subgroup */
131 const struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i]; in bt_debug_dump_recv_state() local
135 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state()
136 subgroup->metadata_len, bt_hex(subgroup->metadata, subgroup->metadata_len)); in bt_debug_dump_recv_state()
178 const struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i]; in net_buf_put_recv_state() local
180 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
181 (void)net_buf_simple_add_u8(&read_buf, subgroup->metadata_len); in net_buf_put_recv_state()
182 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state()
183 subgroup->metadata_len); in net_buf_put_recv_state()
508 struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i]; in scan_delegator_add_source() local
[all …]
Daudio.c211 static int decode_subgroup(struct net_buf_simple *buf, struct bt_bap_base_subgroup *subgroup) in decode_subgroup() argument
216 codec_cfg = &subgroup->codec_cfg; in decode_subgroup()
218 subgroup->bis_count = net_buf_simple_pull_u8(buf); in decode_subgroup()
219 if (subgroup->bis_count > ARRAY_SIZE(subgroup->bis_data)) { in decode_subgroup()
220 LOG_DBG("BASE has more BIS %u than we support %u", subgroup->bis_count, in decode_subgroup()
221 (uint8_t)ARRAY_SIZE(subgroup->bis_data)); in decode_subgroup()
241 if (len > sizeof(subgroup->codec_cfg.data)) { in decode_subgroup()
249 subgroup->codec_cfg.data_len = len; in decode_subgroup()
250 memcpy(subgroup->codec_cfg.data, cfg_ltv_data, len); in decode_subgroup()
270 if (len > sizeof(subgroup->codec_cfg.meta)) { in decode_subgroup()
[all …]
Dbap_broadcast_assistant.c141 struct bt_bap_scan_delegator_subgroup *subgroup = &recv_state->subgroups[i]; in parse_recv_state() local
144 if (buf.len < sizeof(subgroup->bis_sync)) { in parse_recv_state()
146 buf.len, buf.len + sizeof(subgroup->bis_sync)); in parse_recv_state()
150 subgroup->bis_sync = net_buf_simple_pull_le32(&buf); in parse_recv_state()
152 if (buf.len < sizeof(subgroup->metadata_len)) { in parse_recv_state()
154 buf.len, buf.len + sizeof(subgroup->metadata_len)); in parse_recv_state()
157 subgroup->metadata_len = net_buf_simple_pull_u8(&buf); in parse_recv_state()
159 if (buf.len < subgroup->metadata_len) { in parse_recv_state()
161 buf.len, buf.len + subgroup->metadata_len); in parse_recv_state()
165 if (subgroup->metadata_len > sizeof(subgroup->metadata)) { in parse_recv_state()
[all …]
Dbap_broadcast_sink.c110 const struct bt_bap_base_subgroup *subgroup = &base->subgroups[i]; in update_recv_state_big_synced() local
112 /* Update the BIS sync indexes for the subgroup based on the BASE*/ in update_recv_state_big_synced()
113 for (size_t j = 0U; j < subgroup->bis_count; j++) { in update_recv_state_big_synced()
114 const struct bt_bap_base_bis_data *bis_data = &subgroup->bis_data[j]; in update_recv_state_big_synced()
456 const struct bt_bap_base_subgroup *subgroup = &base->subgroups[i]; in update_recv_state_base_copy_meta() local
458 subgroup_param->metadata_len = subgroup->codec_cfg.meta_len; in update_recv_state_base_copy_meta()
459 memcpy(subgroup_param->metadata, subgroup->codec_cfg.meta, in update_recv_state_base_copy_meta()
460 subgroup->codec_cfg.meta_len); in update_recv_state_base_copy_meta()
821 struct bt_bap_base_subgroup *subgroup = &base->subgroups[i]; in codec_cfg_from_base_by_index() local
823 for (size_t j = 0U; j < subgroup->bis_count; j++) { in codec_cfg_from_base_by_index()
[all …]
DKconfig.bap129 int "Basic Audio Broadcast Source subgroup count"
173 int "Basic Audio Profile Broadcast Sink subgroup count"
Dbap_endpoint.h88 /* The codec specific configured data for each stream in the subgroup */
Dcap_initiator.c99 LOG_DBG("subgroup[%zu]->codec_cfg is NULL", i); in cap_initiator_broadcast_audio_start_valid_param()
107 LOG_DBG("Invalid metadata supplied for subgroup[%zu]", i); in cap_initiator_broadcast_audio_start_valid_param()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c34 struct bt_bap_scan_delegator_subgroup subgroup; member
139 const struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
143 subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
145 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb()
146 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
371 struct bt_bap_scan_delegator_subgroup subgroup = { 0 }; in cmd_bap_broadcast_assistant_add_src() local
462 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_src()
469 subgroup.metadata, in cmd_bap_broadcast_assistant_add_src()
470 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_src()
478 /* sizeof(subgroup.metadata) can always fit in uint8_t */ in cmd_bap_broadcast_assistant_add_src()
[all …]
Daudio.h239 const struct bt_bap_base_subgroup *subgroup; in print_base() local
241 subgroup = &base->subgroups[i]; in print_base()
243 shell_print(sh, "Subgroup[%d]:", i); in print_base()
244 print_codec_cfg(sh, &subgroup->codec_cfg); in print_base()
246 for (size_t j = 0U; j < subgroup->bis_count; j++) { in print_base()
249 bis_data = &subgroup->bis_data[j]; in print_base()
Dbap.c1721 shell_print(ctx_shell, "Subgroup count: %u", base->subgroup_count); in base_recv()
1724 const struct bt_bap_base_subgroup *subgroup; in base_recv() local
1726 subgroup = &base->subgroups[i]; in base_recv()
1729 print_codec_cfg(ctx_shell, &subgroup->codec_cfg); in base_recv()
1731 for (int j = 0; j < subgroup->bis_count; j++) { in base_recv()
1734 bis_data = &subgroup->bis_data[j]; in base_recv()
1739 if (subgroup->codec_cfg.id == BT_HCI_CODING_FORMAT_LC3) { in base_recv()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_assistant_test.c121 const struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i]; in bap_broadcast_assistant_recv_state_cb() local
125 i, subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
127 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb()
128 subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
131 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
386 struct bt_bap_scan_delegator_subgroup subgroup = { 0 }; in test_bass_add_source() local
397 add_src_param.subgroups = &subgroup; in test_bass_add_source()
398 subgroup.bis_sync = 0; in test_bass_add_source()
399 subgroup.metadata_len = 0; in test_bass_add_source()
415 struct bt_bap_scan_delegator_subgroup subgroup = { 0 }; in test_bass_mod_source() local
[all …]
Dcap_acceptor_test.c125 static bool valid_subgroup_metadata(const struct bt_bap_base_subgroup *subgroup) in valid_subgroup_metadata() argument
130 printk("meta %p len %zu", subgroup->codec_cfg.meta, subgroup->codec_cfg.meta_len); in valid_subgroup_metadata()
132 err = bt_audio_data_parse(subgroup->codec_cfg.meta, subgroup->codec_cfg.meta_len, in valid_subgroup_metadata()
139 printk("Subgroup did not have streaming context\n"); in valid_subgroup_metadata()
163 const struct bt_bap_base_subgroup *subgroup = &base->subgroups[i]; in base_recv_cb() local
165 for (size_t j = 0U; j < subgroup->bis_count; j++) { in base_recv_cb()
166 const uint8_t index = subgroup->bis_data[j].index; in base_recv_cb()
171 if (!valid_subgroup_metadata(subgroup)) { in base_recv_cb()
172 FAIL("Subgroup[%zu] has invalid metadata\n", i); in base_recv_cb()
/Zephyr-Core-3.5.0/dts/bindings/pinctrl/
Dnuvoton,numicro-pinctrl.yaml8 and each numbered subgroup in the pin group defines all the pins for that
Dopenisa,rv32m1-pinctrl.yaml9 and each numbered subgroup in the pin group defines all the pins for that
Dnxp,kinetis-pinctrl.yaml8 and each numbered subgroup in the pin group defines all the pins for that
Dnxp,rt-iocon-pinctrl.yaml8 Each numbered subgroup represents pins with shared configuration for that
Dnxp,s32k3-pinctrl.yaml11 and each numbered subgroup in the pin group defines all the pins for that
Dnxp,lpc-iocon-pinctrl.yaml8 subgroup represents pins with shared configuration for that peripheral. The
Dnxp,s32ze-pinctrl.yaml11 and each numbered subgroup in the pin group defines all the pins for that
Dxlnx,pinctrl-zynq.yaml11 configuration for a peripheral, and each subgroup in the pin group defines all the pins for that
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/
Dbap.h280 /** Struct to hold subgroup specific information for the receive state */
321 /** Subgroup specific information */
408 * that is requested to sync for each subgroup
1331 /* Number of BIS in the subgroup */
1333 /** Codec information for the subgroup
1339 /* Array of BIS specific data for each BIS in the subgroup */
1396 /** Broadcast Source subgroup parameters*/
1404 /** Subgroup Codec configuration. */
1474 * exist in a subgroup not part of @p param, then that stream is left as is (i.e. it is not removed;
1710 * subgroup.
[all …]
Dcap.h357 /** Subgroup Codec configuration. */
/Zephyr-Core-3.5.0/doc/connectivity/bluetooth/api/shell/
Dbap.rst159 Subgroup count: 2
160 Subgroup[0]:
175 Subgroup[1]:
/Zephyr-Core-3.5.0/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c298 zassert_not_equal(0, err, "Did not fail with NULL subgroup params"); in ZTEST_F()
733 zassert_not_equal(0, err, "Did not fail with NULL subgroup params"); in ZTEST_F()
1175 0x01, /* subgroup count */ in ZTEST_F()
1232 0x02, /* subgroup count */ in ZTEST_F()
1233 0x01, /* Subgroup 1: bis count */ in ZTEST_F()
1243 0x01, /* Subgroup 1: bis count */ in ZTEST_F()

12