Home
last modified time | relevance | path

Searched refs:bis_sync (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c136 state.subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_add_src()
137 inst->subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_add_src()
175 state.subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_mod_src()
176 inst->subgroups[i].bis_sync = param->subgroups[i].bis_sync; in bt_bap_broadcast_assistant_mod_src()
201 zassert_equal(0, inst->subgroups[i].bis_sync); in bt_bap_broadcast_assistant_rem_src()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_internal.h53 uint32_t bis_sync; member
133 static inline bool valid_bis_syncs(uint32_t bis_sync) in valid_bis_syncs() argument
135 if (bis_sync == BT_BAP_BIS_SYNC_NO_PREF) { in valid_bis_syncs()
139 if (bis_sync > BIT_MASK(BT_ISO_MAX_GROUP_ISO_COUNT)) { in valid_bis_syncs()
Dbap_scan_delegator.c145 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state()
220 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
1361 if (bis_synced[i] != subgroup->bis_sync) { in bt_bap_scan_delegator_set_bis_sync_state()
1363 subgroup->bis_sync = bis_synced[i]; in bt_bap_scan_delegator_set_bis_sync_state()
1415 if (!bis_syncs_unique_or_no_pref(subgroup->bis_sync, in valid_bt_bap_scan_delegator_add_src_param()
1417 LOG_DBG("Invalid BIS sync: %u", subgroup->bis_sync); in valid_bt_bap_scan_delegator_add_src_param()
1518 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED && in valid_bt_bap_scan_delegator_mod_src_param()
1519 !bis_syncs_unique_or_no_pref(subgroup->bis_sync, aggregated_bis_syncs)) { in valid_bt_bap_scan_delegator_mod_src_param()
1520 LOG_DBG("Invalid BIS sync: %u", subgroup->bis_sync); in valid_bt_bap_scan_delegator_mod_src_param()
1578 const uint32_t bis_sync = param->subgroups[i].bis_sync; in bt_bap_scan_delegator_mod_src() local
[all …]
Dbap_broadcast_assistant.c300 if (buf.len < sizeof(subgroup->bis_sync)) { in parse_recv_state()
302 buf.len, buf.len + sizeof(subgroup->bis_sync)); in parse_recv_state()
306 subgroup->bis_sync = net_buf_simple_pull_le32(&buf); in parse_recv_state()
1279 CHECKIF(pa_sync == 0 && (subgroups[i].bis_sync != 0U && in valid_subgroup_params()
1280 subgroups[i].bis_sync != BT_BAP_BIS_SYNC_NO_PREF)) { in valid_subgroup_params()
1287 if (!bis_syncs_unique_or_no_pref(subgroups[i].bis_sync, aggregated_bis_syncs)) { in valid_subgroup_params()
1289 subgroups[i].bis_sync, aggregated_bis_syncs); in valid_subgroup_params()
1295 if (subgroups[i].bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in valid_subgroup_params()
1296 aggregated_bis_syncs |= subgroups[i].bis_sync; in valid_subgroup_params()
1425 const size_t subgroup_size = sizeof(subgroup->bis_sync) + in bt_bap_broadcast_assistant_add_src()
[all …]
Dcap_commander.c277 CHECKIF(!valid_bis_syncs(param_subgroups->bis_sync)) { in valid_broadcast_reception_start_param()
279 j, param_subgroups->bis_sync); in valid_broadcast_reception_start_param()
284 CHECKIF((total_bis_sync & param_subgroups->bis_sync) != 0) { in valid_broadcast_reception_start_param()
287 i, j, param_subgroups->bis_sync, total_bis_sync); in valid_broadcast_reception_start_param()
292 total_bis_sync |= param_subgroups->bis_sync; in valid_broadcast_reception_start_param()
440 if (subgroup->bis_sync != 0) { in cap_commander_broadcast_assistant_recv_state_cb()
653 stored_param->broadcast_reception_stop.subgroups[j].bis_sync = 0; in bt_cap_commander_broadcast_reception_stop()
Dbap_broadcast_sink.c122 subgroup_param->bis_sync = sink_subgroup->bis_indexes & sink->indexes_bitfield; in update_recv_state_big_synced()
171 mod_src_param.subgroups[i].bis_sync = BT_BAP_BIS_SYNC_FAILED; in update_recv_state_big_cleared()
548 subgroup_param->bis_sync = recv_state->subgroups[i].bis_sync; in update_recv_state_base()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c156 subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
422 unsigned long bis_sync; in cmd_bap_broadcast_assistant_add_src() local
424 bis_sync = shell_strtoul(argv[7], 0, &result); in cmd_bap_broadcast_assistant_add_src()
431 if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_bap_broadcast_assistant_add_src()
432 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_bap_broadcast_assistant_add_src()
437 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_src()
653 const unsigned long bis_sync = shell_strtoul(argv[3], 0, &err); in cmd_bap_broadcast_assistant_add_broadcast_id() local
659 } else if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_bap_broadcast_assistant_add_broadcast_id()
660 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_bap_broadcast_assistant_add_broadcast_id()
665 subgroup.bis_sync = bis_sync; in cmd_bap_broadcast_assistant_add_broadcast_id()
[all …]
Dbap_scan_delegator.c637 unsigned long bis_sync; in cmd_bap_scan_delegator_add_src() local
639 bis_sync = shell_strtoul(argv[6], 16, &err); in cmd_bap_scan_delegator_add_src()
646 if (bis_sync > BT_BAP_BIS_SYNC_NO_PREF) { in cmd_bap_scan_delegator_add_src()
647 shell_error(sh, "Invalid bis_sync %lu", bis_sync); in cmd_bap_scan_delegator_add_src()
652 subgroup_param->bis_sync = 0U; in cmd_bap_scan_delegator_add_src()
742 unsigned long bis_sync; in cmd_bap_scan_delegator_add_src_by_pa_sync() local
744 bis_sync = shell_strtoul(argv[3], 16, &err); in cmd_bap_scan_delegator_add_src_by_pa_sync()
751 if (bis_sync > BT_BAP_BIS_SYNC_NO_PREF) { in cmd_bap_scan_delegator_add_src_by_pa_sync()
752 shell_error(sh, "Invalid bis_sync %lu", bis_sync); in cmd_bap_scan_delegator_add_src_by_pa_sync()
757 subgroup_param->bis_sync = 0U; in cmd_bap_scan_delegator_add_src_by_pa_sync()
[all …]
Dcap_commander.c626 unsigned long bis_sync; in cmd_cap_commander_broadcast_reception_start() local
628 bis_sync = shell_strtoul(argv[6], 0, &err); in cmd_cap_commander_broadcast_reception_start()
635 if (!BT_BAP_BASS_VALID_BIT_BITFIELD(bis_sync)) { in cmd_cap_commander_broadcast_reception_start()
636 shell_error(sh, "Invalid bis_sync: %lu", bis_sync); in cmd_cap_commander_broadcast_reception_start()
641 subgroup.bis_sync = bis_sync; in cmd_cap_commander_broadcast_reception_start()
643 subgroup.bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in cmd_cap_commander_broadcast_reception_start()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_assistant_test.c154 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED) { in bap_broadcast_assistant_recv_state_cb()
156 subgroup->bis_sync); in bap_broadcast_assistant_recv_state_cb()
167 i, subgroup->bis_sync, subgroup->metadata_len); in bap_broadcast_assistant_recv_state_cb()
173 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
442 subgroup.bis_sync = 0; in test_bass_add_source()
495 static void test_bass_mod_source(uint32_t bis_sync) in test_bass_mod_source() argument
511 subgroup.bis_sync = bis_sync; in test_bass_mod_source()
556 remote_bis_sync = recv_state.subgroups[0].bis_sync; in test_bass_mod_source()
557 if (subgroup.bis_sync == 0) { in test_bass_mod_source()
572 remote_bis_sync = recv_state.subgroups[0].bis_sync; in test_bass_mod_source()
[all …]
Dcap_commander_test.c523 printk("\t[%d]: BIS sync %u, metadata_len %u\n", i, subgroup->bis_sync, in bap_broadcast_assistant_recv_state_cb()
530 if (subgroup->bis_sync != 0) { in bap_broadcast_assistant_recv_state_cb()
1045 uint32_t bis_sync[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS]; in test_broadcast_reception_start() local
1056 bis_sync); in test_broadcast_reception_start()
1064 reception_start_param.param[i].subgroups[j].bis_sync = bis_sync[j]; in test_broadcast_reception_start()
Dbap_scan_delegator_test.c505 subgroup_param->bis_sync = BT_BAP_BIS_SYNC_NO_PREF; in add_source()
564 subgroup_param->bis_sync = 0U; in mod_source()
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_scan_delegator.rst31 <enc_state> [bis_sync [metadata]]
32 add_src_by_pa_sync : Add a PA as source <broadcast_id> <enc_state> [bis_sync
35 [bis_sync [metadata]]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c1088 sys_put_le32(subgroup->bis_sync >> 1, ptr); in btp_send_broadcast_receive_state_ev()
1089 ptr += sizeof(subgroup->bis_sync); in btp_send_broadcast_receive_state_ev()
1650 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_add_src()
1651 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_add_src()
1655 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_add_src()
1658 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_add_src()
1721 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_modify_src()
1722 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_modify_src()
1726 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_modify_src()
1729 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_modify_src()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_cancel.c52 fixture->subgroups[i].bis_sync = BIT(i); in test_start_param_init()
Dtest_broadcast_reception.c144 fixture->subgroups[i].bis_sync = BIT(i); in test_start_param_init()
436 fixture->start_param.param[0].subgroups[0].bis_sync = in ZTEST_F()
437 fixture->start_param.param[0].subgroups[1].bis_sync; in ZTEST_F()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c445 uint32_t bis_sync = 0U; in get_req_bis_sync() local
448 bis_sync |= bis_sync_req[i]; in get_req_bis_sync()
451 return bis_sync; in get_req_bis_sync()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c472 printk("subgroup %d bis_sync: 0x%08x\n", i, recv_state->subgroups[i].bis_sync); in recv_state_updated_cb()
529 printk("subgroup %d bis_sync: 0x%08x\n", i, recv_state->subgroups[i].bis_sync); in pa_sync_term_req_cb()
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c196 subgroup_param->bis_sync |= BT_ISO_BIS_INDEX_BIT(bis->index); in add_pa_sync_base_subgroup_bis_cb()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h641 uint32_t bis_sync; member