Lines Matching refs:subgroup
668 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()
1437 struct bt_bap_bass_subgroup *subgroup = &delegator_subgroups[i]; in btp_bap_broadcast_assistant_add_src() local
1439 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_add_src()
1440 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_add_src()
1444 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_add_src()
1447 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_add_src()
1448 subgroup->metadata_len = *ptr; in btp_bap_broadcast_assistant_add_src()
1449 ptr += sizeof(subgroup->metadata_len); in btp_bap_broadcast_assistant_add_src()
1450 memcpy(subgroup->metadata, ptr, subgroup->metadata_len); in btp_bap_broadcast_assistant_add_src()
1451 ptr += subgroup->metadata_len; in btp_bap_broadcast_assistant_add_src()
1508 struct bt_bap_bass_subgroup *subgroup = &delegator_subgroups[i]; in btp_bap_broadcast_assistant_modify_src() local
1510 subgroup->bis_sync = sys_get_le32(ptr); in btp_bap_broadcast_assistant_modify_src()
1511 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_NO_PREF) { in btp_bap_broadcast_assistant_modify_src()
1515 subgroup->bis_sync <<= 1; in btp_bap_broadcast_assistant_modify_src()
1518 ptr += sizeof(subgroup->bis_sync); in btp_bap_broadcast_assistant_modify_src()
1519 subgroup->metadata_len = *ptr; in btp_bap_broadcast_assistant_modify_src()
1520 ptr += sizeof(subgroup->metadata_len); in btp_bap_broadcast_assistant_modify_src()
1521 memcpy(subgroup->metadata, ptr, subgroup->metadata_len); in btp_bap_broadcast_assistant_modify_src()
1522 ptr += subgroup->metadata_len; in btp_bap_broadcast_assistant_modify_src()