Lines Matching refs:codec_cfg

47 	struct bt_audio_codec_cfg *codec_cfg;  member
297 struct bt_audio_codec_cfg *codec_cfg, in broadcast_source_setup_stream() argument
320 bt_bap_iso_configure_data_path(ep, codec_cfg); in broadcast_source_setup_stream()
327 bt_bap_stream_attach(NULL, stream, ep, codec_cfg); in broadcast_source_setup_stream()
339 const struct bt_audio_codec_cfg *codec_cfg; in encode_base_subgroup() local
348 codec_cfg = subgroup->codec_cfg; in encode_base_subgroup()
351 net_buf_simple_add_u8(buf, codec_cfg->id); in encode_base_subgroup()
352 net_buf_simple_add_le16(buf, codec_cfg->cid); in encode_base_subgroup()
353 net_buf_simple_add_le16(buf, codec_cfg->vid); in encode_base_subgroup()
355 net_buf_simple_add_u8(buf, codec_cfg->data_len); in encode_base_subgroup()
357 if ((buf->size - buf->len) < codec_cfg->data_len) { in encode_base_subgroup()
358 LOG_DBG("No room for config data: %zu", codec_cfg->data_len); in encode_base_subgroup()
362 net_buf_simple_add_mem(buf, codec_cfg->data, codec_cfg->data_len); in encode_base_subgroup()
371 net_buf_simple_add_u8(buf, codec_cfg->meta_len); in encode_base_subgroup()
374 if ((buf->size - buf->len) < codec_cfg->meta_len) { in encode_base_subgroup()
375 LOG_DBG("No room for metadata data: %zu", codec_cfg->meta_len); in encode_base_subgroup()
380 net_buf_simple_add_mem(buf, codec_cfg->meta, codec_cfg->meta_len); in encode_base_subgroup()
465 stream->codec_cfg = NULL; in broadcast_source_cleanup()
541 CHECKIF(!bt_audio_valid_codec_cfg(subgroup_param->codec_cfg)) { in valid_broadcast_source_param()
582 subgroup_param->codec_cfg->id == BT_HCI_CODING_FORMAT_LC3 && in valid_broadcast_source_param()
627 struct bt_audio_codec_cfg *codec_cfg = user_data; in merge_bis_and_subgroup_data_cb() local
630 err = bt_audio_codec_cfg_set_val(codec_cfg, data->type, data->data, data->data_len); in merge_bis_and_subgroup_data_cb()
641 static int update_codec_cfg_data(struct bt_audio_codec_cfg *codec_cfg, in update_codec_cfg_data() argument
651 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in update_codec_cfg_data()
653 merge_bis_and_subgroup_data_cb, codec_cfg); in update_codec_cfg_data()
664 if (codec_cfg->data_len + stream_param->data_len > in update_codec_cfg_data()
665 sizeof(codec_cfg->data)) { in update_codec_cfg_data()
668 codec_cfg->data_len + stream_param->data_len, in update_codec_cfg_data()
669 sizeof(codec_cfg->data)); in update_codec_cfg_data()
674 memcpy(&codec_cfg->data[codec_cfg->data_len], stream_param->data, in update_codec_cfg_data()
676 codec_cfg->data_len += stream_param->data_len; in update_codec_cfg_data()
738 subgroup->codec_cfg = subgroup_param->codec_cfg; in bt_bap_broadcast_source_create()
752 struct bt_audio_codec_cfg *codec_cfg; in bt_bap_broadcast_source_create() local
754 codec_cfg = subgroup_param->codec_cfg; in bt_bap_broadcast_source_create()
764 codec_cfg = &source->codec_cfg[bis_count]; in bt_bap_broadcast_source_create()
765 memcpy(codec_cfg, subgroup_param->codec_cfg, in bt_bap_broadcast_source_create()
768 err = update_codec_cfg_data(codec_cfg, stream_param); in bt_bap_broadcast_source_create()
778 err = broadcast_source_setup_stream(index, stream, codec_cfg, qos, source); in bt_bap_broadcast_source_create()
903 struct bt_audio_codec_cfg *codec_cfg; in bt_bap_broadcast_source_reconfig() local
914 codec_cfg = subgroup_param->codec_cfg; in bt_bap_broadcast_source_reconfig()
915 subgroup->codec_cfg = codec_cfg; in bt_bap_broadcast_source_reconfig()
933 codec_cfg = &source->codec_cfg[bis_count]; in bt_bap_broadcast_source_reconfig()
934 memcpy(codec_cfg, subgroup_param->codec_cfg, in bt_bap_broadcast_source_reconfig()
937 err = update_codec_cfg_data(codec_cfg, stream_param); in bt_bap_broadcast_source_reconfig()
969 bt_bap_stream_attach(NULL, stream, stream->ep, codec_cfg); in bt_bap_broadcast_source_reconfig()
970 bt_bap_iso_configure_data_path(stream->ep, codec_cfg); in bt_bap_broadcast_source_reconfig()
1028 memset(subgroup->codec_cfg->meta, 0, sizeof(subgroup->codec_cfg->meta)); in bt_bap_broadcast_source_update_metadata()
1029 memcpy(subgroup->codec_cfg->meta, meta, meta_len); in bt_bap_broadcast_source_update_metadata()
1030 subgroup->codec_cfg->meta_len = meta_len; in bt_bap_broadcast_source_update_metadata()