Lines Matching refs:codec_cfg
252 stream->codec_cfg = NULL; in broadcast_sink_set_ep_state()
580 struct bt_audio_codec_cfg *codec_cfg = user_data; in merge_bis_and_subgroup_data_cb() local
583 err = bt_audio_codec_cfg_set_val(codec_cfg, data->type, data->data, data->data_len); in merge_bis_and_subgroup_data_cb()
614 memcpy(&sink_bis->codec_cfg, data->subgroup_codec_cfg, sizeof(sink_bis->codec_cfg)); in base_subgroup_bis_index_cb()
621 if (sink_bis->codec_cfg.id == BT_HCI_CODING_FORMAT_LC3) { in base_subgroup_bis_index_cb()
624 memcpy(&sink_bis->codec_cfg, data->subgroup_codec_cfg, in base_subgroup_bis_index_cb()
625 sizeof(sink_bis->codec_cfg)); in base_subgroup_bis_index_cb()
629 &sink_bis->codec_cfg); in base_subgroup_bis_index_cb()
640 if (sink_bis->codec_cfg.data_len + bis->data_len > in base_subgroup_bis_index_cb()
641 sizeof(sink_bis->codec_cfg.data)) { in base_subgroup_bis_index_cb()
644 sink_bis->codec_cfg.data_len + bis->data_len, in base_subgroup_bis_index_cb()
645 sizeof(sink_bis->codec_cfg.data)); in base_subgroup_bis_index_cb()
650 memcpy(&sink_bis->codec_cfg.data[sink_bis->codec_cfg.data_len], bis->data, in base_subgroup_bis_index_cb()
652 sink_bis->codec_cfg.data_len += bis->data_len; in base_subgroup_bis_index_cb()
667 struct bt_audio_codec_cfg codec_cfg; in base_subgroup_cb() local
678 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in base_subgroup_cb()
685 lookup_data.id = codec_cfg.id; in base_subgroup_cb()
691 codec_cfg.path_id = lookup_data.codec_cap->path_id; in base_subgroup_cb()
692 codec_cfg.ctlr_transcode = lookup_data.codec_cap->ctlr_transcode; in base_subgroup_cb()
694 data->subgroup_codec_cfg = &codec_cfg; in base_subgroup_cb()
1082 struct bt_audio_codec_cfg *codec_cfg) in bt_bap_broadcast_sink_setup_stream() argument
1108 bt_bap_iso_configure_data_path(ep, codec_cfg); in bt_bap_broadcast_sink_setup_stream()
1112 bt_bap_stream_attach(NULL, stream, ep, codec_cfg); in bt_bap_broadcast_sink_setup_stream()
1130 stream->codec_cfg = NULL; in broadcast_sink_cleanup_streams()
1156 return &bis->codec_cfg; in codec_cfg_from_base_by_index()
1282 struct bt_audio_codec_cfg *codec_cfg = in bt_bap_broadcast_sink_sync() local
1285 __ASSERT(codec_cfg != NULL, "Index %d not found in sink", i); in bt_bap_broadcast_sink_sync()
1287 codec_cfgs[stream_count++] = codec_cfg; in bt_bap_broadcast_sink_sync()
1307 struct bt_audio_codec_cfg *codec_cfg; in bt_bap_broadcast_sink_sync() local
1310 codec_cfg = codec_cfgs[i]; in bt_bap_broadcast_sink_sync()
1312 err = bt_bap_broadcast_sink_setup_stream(sink, stream, codec_cfg); in bt_bap_broadcast_sink_sync()