Lines Matching full:subgroup
211 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()
278 subgroup->codec_cfg.meta_len = len; in decode_subgroup()
279 memcpy(subgroup->codec_cfg.meta, meta_ltv_data, len); in decode_subgroup()
288 for (size_t i = 0U; i < subgroup->bis_count; i++) { in decode_subgroup()
289 const int err = decode_bis_data(buf, &subgroup->bis_data[i]); in decode_subgroup()
359 LOG_DBG("Failed to decode subgroup[%zu]: %d", i, err); in bt_bap_decode_base()