/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_common.c | 72 void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 74 printk("codec_cfg ID 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, in print_codec_cfg() 75 codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 77 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 78 print_ltv_array("data", codec_cfg->data, codec_cfg->data_len); in print_codec_cfg() 81 print_hex(codec_cfg->data, codec_cfg->data_len); in print_codec_cfg() 85 print_ltv_array("meta", codec_cfg->meta, codec_cfg->meta_len); in print_codec_cfg() 99 memcpy(&stream->codec_cfg, &named_preset->preset.codec_cfg, sizeof(stream->codec_cfg)); in copy_unicast_stream_preset()
|
D | bap_common.h | 48 struct bt_audio_codec_cfg codec_cfg; member 59 void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg);
|
D | bap_broadcast_source_test.c | 61 const struct bt_audio_codec_cfg *codec_cfg = stream->codec_cfg; in validate_stream_codec_cfg() local 62 const struct bt_audio_codec_cfg *exp_codec_cfg = &preset_16_1_1.codec_cfg; in validate_stream_codec_cfg() 71 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in validate_stream_codec_cfg() 88 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in validate_stream_codec_cfg() 108 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, true); in validate_stream_codec_cfg() 129 ret = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in validate_stream_codec_cfg() 145 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true); in validate_stream_codec_cfg() 286 subgroup_params[i].codec_cfg = &preset_16_1_1.codec_cfg; in setup_broadcast_source() 422 subgroup_params[i].codec_cfg = &preset_16_1_1.codec_cfg; in test_broadcast_source_reconfig()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | codec.c | 260 struct bt_audio_codec_cfg *codec_cfg) in init_net_buf_simple_from_codec_cfg() argument 262 buf->__buf = codec_cfg->data; in init_net_buf_simple_from_codec_cfg() 263 buf->data = codec_cfg->data; in init_net_buf_simple_from_codec_cfg() 264 buf->size = sizeof(codec_cfg->data); in init_net_buf_simple_from_codec_cfg() 265 buf->len = codec_cfg->data_len; in init_net_buf_simple_from_codec_cfg() 268 int bt_audio_codec_cfg_get_val(const struct bt_audio_codec_cfg *codec_cfg, in bt_audio_codec_cfg_get_val() argument 271 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_val() 281 return bt_audio_data_get_val(codec_cfg->data, codec_cfg->data_len, (uint8_t)type, data); in bt_audio_codec_cfg_get_val() 284 int bt_audio_codec_cfg_set_val(struct bt_audio_codec_cfg *codec_cfg, in bt_audio_codec_cfg_set_val() argument 291 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_set_val() [all …]
|
D | bap_broadcast_source.c | 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() [all …]
|
D | bap_stream.c | 80 struct bt_audio_codec_cfg *codec_cfg) in bt_bap_stream_attach() argument 82 LOG_DBG("conn %p stream %p ep %p codec_cfg %p", (void *)conn, stream, ep, codec_cfg); in bt_bap_stream_attach() 91 stream->codec_cfg = codec_cfg; in bt_bap_stream_attach() 210 bool bt_audio_valid_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in bt_audio_valid_codec_cfg() argument 212 if (codec_cfg == NULL) { in bt_audio_valid_codec_cfg() 217 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in bt_audio_valid_codec_cfg() 218 if (codec_cfg->cid != 0U) { in bt_audio_valid_codec_cfg() 219 LOG_DBG("codec_cfg->cid (%u) is invalid", codec_cfg->cid); in bt_audio_valid_codec_cfg() 223 if (codec_cfg->vid != 0U) { in bt_audio_valid_codec_cfg() 224 LOG_DBG("codec_cfg->vid (%u) is invalid", codec_cfg->vid); in bt_audio_valid_codec_cfg() [all …]
|
D | bap_unicast_server.c | 100 const struct bt_audio_codec_cfg *codec_cfg) in bt_bap_unicast_server_reconfig() argument 111 err = unicast_server_cb->reconfig(stream, ep->dir, codec_cfg, &ep->qos_pref, &rsp); in bt_bap_unicast_server_reconfig() 120 (void)memcpy(&ep->codec_cfg, codec_cfg, sizeof(*codec_cfg)); in bt_bap_unicast_server_reconfig() 156 if (meta_len > sizeof(ep->codec_cfg.meta)) { in bt_bap_unicast_server_metadata() 173 (void)memcpy(ep->codec_cfg.meta, meta, meta_len); in bt_bap_unicast_server_metadata() 190 struct bt_audio_codec_cfg *codec_cfg, in bt_bap_unicast_server_config_ase() argument 193 return bt_ascs_config_ase(conn, stream, codec_cfg, qos_pref); in bt_bap_unicast_server_config_ase()
|
D | bap_base.c | 445 struct bt_audio_codec_cfg *codec_cfg) in bt_bap_base_subgroup_codec_to_codec_cfg() argument 458 CHECKIF(codec_cfg == NULL) { in bt_bap_base_subgroup_codec_to_codec_cfg() 468 codec_cfg->id = codec_id.id; in bt_bap_base_subgroup_codec_to_codec_cfg() 469 codec_cfg->cid = codec_id.cid; in bt_bap_base_subgroup_codec_to_codec_cfg() 470 codec_cfg->vid = codec_id.vid; in bt_bap_base_subgroup_codec_to_codec_cfg() 475 if (ltv_len > ARRAY_SIZE(codec_cfg->data)) { in bt_bap_base_subgroup_codec_to_codec_cfg() 477 ARRAY_SIZE(codec_cfg->data)); in bt_bap_base_subgroup_codec_to_codec_cfg() 482 codec_cfg->data_len = ltv_len; in bt_bap_base_subgroup_codec_to_codec_cfg() 483 memcpy(codec_cfg->data, ltv_data, ltv_len); in bt_bap_base_subgroup_codec_to_codec_cfg() 488 if (ltv_len > ARRAY_SIZE(codec_cfg->meta)) { in bt_bap_base_subgroup_codec_to_codec_cfg() [all …]
|
D | bap_broadcast_sink.c | 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() [all …]
|
D | bap_stream.h | 26 struct bt_audio_codec_cfg *codec_cfg); 33 bool bt_audio_valid_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg);
|
D | bap_iso.c | 173 void bt_bap_iso_configure_data_path(struct bt_bap_ep *ep, struct bt_audio_codec_cfg *codec_cfg) in bt_bap_iso_configure_data_path() argument 192 path->pid = codec_cfg->path_id; in bt_bap_iso_configure_data_path() 194 if (codec_cfg->ctlr_transcode) { in bt_bap_iso_configure_data_path() 195 path->format = codec_cfg->id; in bt_bap_iso_configure_data_path() 196 path->cid = codec_cfg->cid; in bt_bap_iso_configure_data_path() 197 path->vid = codec_cfg->vid; in bt_bap_iso_configure_data_path() 199 path->cc_len = codec_cfg->data_len; in bt_bap_iso_configure_data_path() 200 path->cc = codec_cfg->data; in bt_bap_iso_configure_data_path()
|
/Zephyr-latest/tests/bluetooth/audio/codec/src/ |
D | main.c | 32 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local 41 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST() 48 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local 58 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST() 62 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST() 66 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST() 73 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local 79 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST() 82 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST() 86 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | audio.h | 852 int bt_audio_codec_cfg_get_freq(const struct bt_audio_codec_cfg *codec_cfg); 864 int bt_audio_codec_cfg_set_freq(struct bt_audio_codec_cfg *codec_cfg, 897 int bt_audio_codec_cfg_get_frame_dur(const struct bt_audio_codec_cfg *codec_cfg); 909 int bt_audio_codec_cfg_set_frame_dur(struct bt_audio_codec_cfg *codec_cfg, 932 int bt_audio_codec_cfg_get_chan_allocation(const struct bt_audio_codec_cfg *codec_cfg, 946 int bt_audio_codec_cfg_set_chan_allocation(struct bt_audio_codec_cfg *codec_cfg, 968 int bt_audio_codec_cfg_get_octets_per_frame(const struct bt_audio_codec_cfg *codec_cfg); 980 int bt_audio_codec_cfg_set_octets_per_frame(struct bt_audio_codec_cfg *codec_cfg, 1003 int bt_audio_codec_cfg_get_frame_blocks_per_sdu(const struct bt_audio_codec_cfg *codec_cfg, 1016 int bt_audio_codec_cfg_set_frame_blocks_per_sdu(struct bt_audio_codec_cfg *codec_cfg, [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 74 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 76 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg() 77 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 79 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 85 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg() 87 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg() 92 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg() 98 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, false); in print_codec_cfg() 104 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg() 106 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg() [all …]
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 59 static void log_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in log_codec_cfg() argument 61 LOG_INF("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cfg->id, codec_cfg->cid, in log_codec_cfg() 62 codec_cfg->vid, codec_cfg->data_len); in log_codec_cfg() 64 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in log_codec_cfg() 70 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, log_codec_cfg_cb, "data"); in log_codec_cfg() 72 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in log_codec_cfg() 77 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in log_codec_cfg() 83 if (bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, true) == in log_codec_cfg() 88 ret = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in log_codec_cfg() 94 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in log_codec_cfg() [all …]
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 74 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 76 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg() 77 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 79 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 85 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg() 87 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg() 92 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg() 98 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, false); in print_codec_cfg() 104 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg() 106 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_cap.c | 192 uint8_t cig_id, struct bt_audio_codec_cfg *codec_cfg, in cap_unicast_setup_ase() argument 218 memcpy(&u_stream->codec_cfg, codec_cfg, sizeof(*codec_cfg)); in cap_unicast_setup_ase() 234 struct bt_audio_codec_cfg codec_cfg; in btp_cap_unicast_setup_ase() local 258 memset(&codec_cfg, 0, sizeof(codec_cfg)); in btp_cap_unicast_setup_ase() 259 codec_cfg.id = cp->coding_format; in btp_cap_unicast_setup_ase() 260 codec_cfg.vid = cp->vid; in btp_cap_unicast_setup_ase() 261 codec_cfg.cid = cp->cid; in btp_cap_unicast_setup_ase() 265 codec_cfg.data_len = cp->cc_ltvs_len; in btp_cap_unicast_setup_ase() 266 memcpy(codec_cfg.data, ltv_ptr, cp->cc_ltvs_len); in btp_cap_unicast_setup_ase() 271 codec_cfg.meta_len = cp->metadata_ltvs_len; in btp_cap_unicast_setup_ase() [all …]
|
D | btp_bap_unicast.c | 57 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 59 LOG_DBG("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cfg->id, codec_cfg->cid, in print_codec_cfg() 60 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 62 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 68 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg() 70 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg() 75 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg() 81 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, false); in print_codec_cfg() 87 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg() 89 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg() [all …]
|
D | btp_bap_broadcast.c | 242 struct bt_audio_codec_cfg *codec_cfg) in setup_broadcast_source() argument 259 memcpy(&source->streams[0].codec_cfg, codec_cfg, sizeof(*codec_cfg)); in setup_broadcast_source() 264 subgroup_param[i].codec_cfg = &source->streams[0].codec_cfg; in setup_broadcast_source() 324 struct bt_audio_codec_cfg codec_cfg; in btp_bap_broadcast_source_setup() local 344 memset(&codec_cfg, 0, sizeof(codec_cfg)); in btp_bap_broadcast_source_setup() 345 codec_cfg.id = cp->coding_format; in btp_bap_broadcast_source_setup() 346 codec_cfg.vid = cp->vid; in btp_bap_broadcast_source_setup() 347 codec_cfg.cid = cp->cid; in btp_bap_broadcast_source_setup() 348 codec_cfg.data_len = cp->cc_ltvs_len; in btp_bap_broadcast_source_setup() 349 memcpy(codec_cfg.data, cp->cc_ltvs, cp->cc_ltvs_len); in btp_bap_broadcast_source_setup() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/ |
D | test_unicast_start.c | 120 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 183 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 207 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 233 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 259 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 283 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 306 stream_param.codec_cfg = NULL; in ZTEST_F() 329 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 352 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() 375 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F() [all …]
|
D | test_common.c | 64 bap_stream->codec_cfg = &preset->codec_cfg; in test_unicast_set_state()
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | audio.h | 92 struct bt_audio_codec_cfg codec_cfg; member 176 struct bt_audio_codec_cfg codec_cfg; member 674 const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 677 codec_cfg->id, codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 685 if (codec_cfg->data_len == 0U) { in print_codec_cfg() 687 } else if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 691 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg() 696 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg() 702 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, false); in print_codec_cfg() 707 ret = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in print_codec_cfg() [all …]
|
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/ |
D | main.c | 147 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument 149 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg() 150 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 152 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg() 158 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg() 160 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg() 165 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg() 171 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation, false); in print_codec_cfg() 177 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg() 179 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/ |
D | main.c | 69 struct bt_audio_codec_cfg *codec_cfg; in bap_broadcast_source_test_suite_fixture_init() local 89 codec_cfg = malloc(sizeof(struct bt_audio_codec_cfg)); in bap_broadcast_source_test_suite_fixture_init() 90 zassert_not_null(codec_cfg); in bap_broadcast_source_test_suite_fixture_init() 106 memset(codec_cfg, 0, sizeof(struct bt_audio_codec_cfg)); in bap_broadcast_source_test_suite_fixture_init() 112 *codec_cfg = BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, in bap_broadcast_source_test_suite_fixture_init() 120 subgroup_param[i].codec_cfg = codec_cfg; in bap_broadcast_source_test_suite_fixture_init() 181 free(param->params[0].codec_cfg); in bap_broadcast_source_test_suite_after() 256 struct bt_audio_codec_cfg *codec_cfg = bap_stream->codec_cfg; in ZTEST_F() local 259 zassert_equal(bt_audio_codec_cfg_get_freq(codec_cfg), in ZTEST_F() 261 zassert_equal(bt_audio_codec_cfg_get_frame_dur(codec_cfg), in ZTEST_F() [all …]
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | stream_lc3.c | 58 const struct bt_audio_codec_cfg *codec_cfg = stream->bap_stream->codec_cfg; in extract_lc3_config() local 64 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in extract_lc3_config() 86 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in extract_lc3_config() 108 ret = bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &lc3_tx->chan_allocation, false); in extract_lc3_config() 116 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true); in extract_lc3_config() 121 ret = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in extract_lc3_config()
|