Home
last modified time | relevance | path

Searched refs:codec_cfg (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/
Dbap_common.c64 void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
66 printk("codec_cfg ID 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, in print_codec_cfg()
67 codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
69 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg()
70 print_ltv_array("data", codec_cfg->data, codec_cfg->data_len); in print_codec_cfg()
73 print_hex(codec_cfg->data, codec_cfg->data_len); in print_codec_cfg()
77 print_ltv_array("meta", codec_cfg->meta, codec_cfg->meta_len); in print_codec_cfg()
91 memcpy(&stream->codec_cfg, &named_preset->preset.codec_cfg, sizeof(stream->codec_cfg)); in copy_unicast_stream_preset()
Dbap_common.h39 struct bt_audio_codec_cfg codec_cfg; member
50 void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg);
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dcodec.c274 struct bt_audio_codec_cfg *codec_cfg) in init_net_buf_simple_from_codec_cfg() argument
276 buf->__buf = codec_cfg->data; in init_net_buf_simple_from_codec_cfg()
277 buf->data = codec_cfg->data; in init_net_buf_simple_from_codec_cfg()
278 buf->size = sizeof(codec_cfg->data); in init_net_buf_simple_from_codec_cfg()
279 buf->len = codec_cfg->data_len; in init_net_buf_simple_from_codec_cfg()
282 int bt_audio_codec_cfg_get_val(const struct bt_audio_codec_cfg *codec_cfg, in bt_audio_codec_cfg_get_val() argument
293 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_val()
305 err = bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, parse_cb, &param); in bt_audio_codec_cfg_get_val()
319 int bt_audio_codec_cfg_set_val(struct bt_audio_codec_cfg *codec_cfg, in bt_audio_codec_cfg_set_val() argument
326 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_set_val()
[all …]
Dbap_unicast_server.c67 const struct bt_audio_codec_cfg *codec_cfg) in bt_bap_unicast_server_reconfig() argument
78 err = unicast_server_cb->reconfig(stream, ep->dir, codec_cfg, &ep->qos_pref, &rsp); in bt_bap_unicast_server_reconfig()
87 (void)memcpy(&ep->codec_cfg, codec_cfg, sizeof(*codec_cfg)); in bt_bap_unicast_server_reconfig()
123 if (meta_len > sizeof(ep->codec_cfg.meta)) { in bt_bap_unicast_server_metadata()
140 (void)memcpy(ep->codec_cfg.meta, meta, meta_len); in bt_bap_unicast_server_metadata()
157 struct bt_audio_codec_cfg *codec_cfg, in bt_bap_unicast_server_config_ase() argument
160 return bt_ascs_config_ase(conn, stream, codec_cfg, qos_pref); in bt_bap_unicast_server_config_ase()
Dbap_stream.c69 struct bt_audio_codec_cfg *codec_cfg) in bt_bap_stream_attach() argument
71 LOG_DBG("conn %p stream %p ep %p codec_cfg %p", (void *)conn, stream, ep, codec_cfg); in bt_bap_stream_attach()
80 stream->codec_cfg = codec_cfg; in bt_bap_stream_attach()
183 bool bt_audio_valid_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in bt_audio_valid_codec_cfg() argument
185 if (codec_cfg == NULL) { in bt_audio_valid_codec_cfg()
190 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in bt_audio_valid_codec_cfg()
191 if (codec_cfg->cid != 0U) { in bt_audio_valid_codec_cfg()
192 LOG_DBG("codec_cfg->cid (%u) is invalid", codec_cfg->cid); in bt_audio_valid_codec_cfg()
196 if (codec_cfg->vid != 0U) { in bt_audio_valid_codec_cfg()
197 LOG_DBG("codec_cfg->vid (%u) is invalid", codec_cfg->vid); in bt_audio_valid_codec_cfg()
[all …]
Dbap_base.c380 struct bt_audio_codec_cfg *codec_cfg) in bt_bap_base_subgroup_codec_to_codec_cfg() argument
393 CHECKIF(codec_cfg == NULL) { in bt_bap_base_subgroup_codec_to_codec_cfg()
403 codec_cfg->id = codec_id.id; in bt_bap_base_subgroup_codec_to_codec_cfg()
404 codec_cfg->cid = codec_id.cid; in bt_bap_base_subgroup_codec_to_codec_cfg()
405 codec_cfg->vid = codec_id.vid; in bt_bap_base_subgroup_codec_to_codec_cfg()
410 if (ltv_len > ARRAY_SIZE(codec_cfg->data)) { in bt_bap_base_subgroup_codec_to_codec_cfg()
412 ARRAY_SIZE(codec_cfg->data)); in bt_bap_base_subgroup_codec_to_codec_cfg()
417 codec_cfg->data_len = ltv_len; in bt_bap_base_subgroup_codec_to_codec_cfg()
418 memcpy(codec_cfg->data, ltv_data, ltv_len); in bt_bap_base_subgroup_codec_to_codec_cfg()
423 if (ltv_len > ARRAY_SIZE(codec_cfg->meta)) { in bt_bap_base_subgroup_codec_to_codec_cfg()
[all …]
Dbap_broadcast_source.c30 struct bt_audio_codec_cfg *codec_cfg; member
279 struct bt_audio_codec_cfg *codec_cfg, in broadcast_source_setup_stream() argument
302 bt_bap_iso_configure_data_path(ep, codec_cfg); in broadcast_source_setup_stream()
309 bt_bap_stream_attach(NULL, stream, ep, codec_cfg); in broadcast_source_setup_stream()
321 const struct bt_audio_codec_cfg *codec_cfg; in encode_base_subgroup() local
330 codec_cfg = subgroup->codec_cfg; in encode_base_subgroup()
333 net_buf_simple_add_u8(buf, codec_cfg->id); in encode_base_subgroup()
334 net_buf_simple_add_le16(buf, codec_cfg->cid); in encode_base_subgroup()
335 net_buf_simple_add_le16(buf, codec_cfg->vid); in encode_base_subgroup()
337 net_buf_simple_add_u8(buf, codec_cfg->data_len); in encode_base_subgroup()
[all …]
Dcap_initiator.c112 const struct bt_audio_codec_cfg *codec_cfg; in cap_initiator_broadcast_audio_start_valid_param() local
116 codec_cfg = subgroup_param->codec_cfg; in cap_initiator_broadcast_audio_start_valid_param()
120 CHECKIF(codec_cfg == NULL) { in cap_initiator_broadcast_audio_start_valid_param()
126 cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len); in cap_initiator_broadcast_audio_start_valid_param()
165 bap_subgroup_param->codec_cfg = cap_subgroup_param->codec_cfg; in cap_initiator_broadcast_to_bap_broadcast_param()
367 const struct bt_audio_codec_cfg *codec_cfg = stream_param->codec_cfg; in valid_unicast_audio_start_param() local
377 CHECKIF(stream_param->codec_cfg == NULL) { in valid_unicast_audio_start_param()
382 CHECKIF(!cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len)) { in valid_unicast_audio_start_param()
483 struct bt_audio_codec_cfg *codec_cfg; in cap_initiator_unicast_audio_configure() local
510 memcpy(&active_proc->proc_param.initiator[i].start.codec_cfg, in cap_initiator_unicast_audio_configure()
[all …]
Dbap_stream.h18 struct bt_audio_codec_cfg *codec_cfg);
26 bool bt_audio_valid_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg);
Dbap_iso.c160 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
179 path->pid = codec_cfg->path_id; in bt_bap_iso_configure_data_path()
181 if (codec_cfg->ctlr_transcode) { in bt_bap_iso_configure_data_path()
182 path->format = codec_cfg->id; in bt_bap_iso_configure_data_path()
183 path->cid = codec_cfg->cid; in bt_bap_iso_configure_data_path()
184 path->vid = codec_cfg->vid; in bt_bap_iso_configure_data_path()
186 path->cc_len = codec_cfg->data_len; in bt_bap_iso_configure_data_path()
187 path->cc = codec_cfg->data; in bt_bap_iso_configure_data_path()
Dascs.c692 cfg->codec.id = ep->codec_cfg.id; in ascs_ep_get_status_config()
693 cfg->codec.cid = sys_cpu_to_le16(ep->codec_cfg.cid); in ascs_ep_get_status_config()
694 cfg->codec.vid = sys_cpu_to_le16(ep->codec_cfg.vid); in ascs_ep_get_status_config()
700 ep->stream->codec_cfg->id); in ascs_ep_get_status_config()
702 cfg->cc_len = ep->codec_cfg.data_len; in ascs_ep_get_status_config()
703 net_buf_simple_add_mem(buf, ep->codec_cfg.data, ep->codec_cfg.data_len); in ascs_ep_get_status_config()
723 bt_audio_dir_str(ep->dir), ep->stream->codec_cfg->id, ep->stream->qos->interval, in ascs_ep_get_status_qos()
736 enable->metadata_len = ep->codec_cfg.meta_len; in ascs_ep_get_status_enable()
737 net_buf_simple_add_mem(buf, ep->codec_cfg.meta, ep->codec_cfg.meta_len); in ascs_ep_get_status_enable()
1471 struct bt_audio_codec_cfg *codec_cfg; in ascs_ep_set_codec() local
[all …]
Dbap_unicast_server.h13 const struct bt_audio_codec_cfg *codec_cfg);
/Zephyr-Core-3.6.0/tests/bluetooth/audio/codec/src/
Dmain.c20 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local
29 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
36 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local
46 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
50 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST()
54 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
61 struct bt_audio_codec_cfg codec_cfg = in ZTEST() local
67 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
70 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST()
74 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/audio/
Daudio.h873 int bt_audio_codec_cfg_get_freq(const struct bt_audio_codec_cfg *codec_cfg);
885 int bt_audio_codec_cfg_set_freq(struct bt_audio_codec_cfg *codec_cfg,
917 int bt_audio_codec_cfg_get_frame_dur(const struct bt_audio_codec_cfg *codec_cfg);
929 int bt_audio_codec_cfg_set_frame_dur(struct bt_audio_codec_cfg *codec_cfg,
948 int bt_audio_codec_cfg_get_chan_allocation(const struct bt_audio_codec_cfg *codec_cfg,
961 int bt_audio_codec_cfg_set_chan_allocation(struct bt_audio_codec_cfg *codec_cfg,
982 int bt_audio_codec_cfg_get_octets_per_frame(const struct bt_audio_codec_cfg *codec_cfg);
994 int bt_audio_codec_cfg_set_octets_per_frame(struct bt_audio_codec_cfg *codec_cfg,
1018 int bt_audio_codec_cfg_get_frame_blocks_per_sdu(const struct bt_audio_codec_cfg *codec_cfg,
1031 int bt_audio_codec_cfg_set_frame_blocks_per_sdu(struct bt_audio_codec_cfg *codec_cfg,
[all …]
Dbap.h435 struct bt_audio_codec_cfg *codec_cfg; member
634 struct bt_audio_codec_cfg *codec_cfg);
649 int bt_bap_stream_reconfig(struct bt_bap_stream *stream, struct bt_audio_codec_cfg *codec_cfg);
846 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream,
866 const struct bt_audio_codec_cfg *codec_cfg,
1024 struct bt_audio_codec_cfg *codec_cfg,
1496 struct bt_audio_codec_cfg *codec_cfg);
1538 struct bt_audio_codec_cfg *codec_cfg);
1576 struct bt_audio_codec_cfg *codec_cfg; member
/Zephyr-Core-3.6.0/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c61 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
63 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg()
64 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
66 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg()
72 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg()
74 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg()
79 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg()
85 if (bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation) == 0) { in print_codec_cfg()
90 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg()
92 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg()
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/hap_ha/src/
Dbap_unicast_sr.c72 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
74 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg()
75 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()
83 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg()
85 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg()
90 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg()
96 if (bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation) == 0) { in print_codec_cfg()
101 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg()
103 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg()
[all …]
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/
Daudio.h80 struct bt_audio_codec_cfg codec_cfg; member
107 struct bt_audio_codec_cfg codec_cfg; member
214 const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
216 shell_print(sh, "codec cfg id 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cfg->id, in print_codec_cfg()
217 codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
220 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg()
221 print_ltv_array(sh, "data", codec_cfg->data, codec_cfg->data_len); in print_codec_cfg()
223 shell_hexdump(sh, codec_cfg->data, codec_cfg->data_len); in print_codec_cfg()
228 print_ltv_array(sh, "meta", codec_cfg->meta, codec_cfg->meta_len); in print_codec_cfg()
329 memcpy(&stream->codec_cfg, &named_preset->preset.codec_cfg, sizeof(stream->codec_cfg)); in copy_unicast_stream_preset()
[all …]
Dbap.c234 if (stream == NULL || stream->codec_cfg == NULL) { in init_lc3()
239 ret = bt_audio_codec_cfg_get_freq(stream->codec_cfg); in init_lc3()
246 ret = bt_audio_codec_cfg_get_frame_dur(stream->codec_cfg); in init_lc3()
253 lc3_octets_per_frame = bt_audio_codec_cfg_get_octets_per_frame(stream->codec_cfg); in init_lc3()
254 lc3_frames_per_sdu = bt_audio_codec_cfg_get_frame_blocks_per_sdu(stream->codec_cfg, true); in init_lc3()
255 lc3_octets_per_frame = bt_audio_codec_cfg_get_octets_per_frame(stream->codec_cfg); in init_lc3()
476 const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, in lc3_config() argument
481 print_codec_cfg(ctx_shell, codec_cfg); in lc3_config()
502 const struct bt_audio_codec_cfg *codec_cfg, in lc3_reconfig() argument
507 print_codec_cfg(ctx_shell, codec_cfg); in lc3_reconfig()
[all …]
/Zephyr-Core-3.6.0/tests/bluetooth/tester/src/
Dbtp_cap.c191 uint8_t cig_id, struct bt_audio_codec_cfg *codec_cfg, in cap_unicast_setup_ase() argument
217 memcpy(&u_stream->codec_cfg, codec_cfg, sizeof(*codec_cfg)); in cap_unicast_setup_ase()
233 struct bt_audio_codec_cfg codec_cfg; in btp_cap_unicast_setup_ase() local
257 memset(&codec_cfg, 0, sizeof(codec_cfg)); in btp_cap_unicast_setup_ase()
258 codec_cfg.id = cp->coding_format; in btp_cap_unicast_setup_ase()
259 codec_cfg.vid = cp->vid; in btp_cap_unicast_setup_ase()
260 codec_cfg.cid = cp->cid; in btp_cap_unicast_setup_ase()
264 codec_cfg.data_len = cp->cc_ltvs_len; in btp_cap_unicast_setup_ase()
265 memcpy(codec_cfg.data, ltv_ptr, cp->cc_ltvs_len); in btp_cap_unicast_setup_ase()
270 codec_cfg.meta_len = cp->metadata_ltvs_len; in btp_cap_unicast_setup_ase()
[all …]
Dbtp_bap_unicast.c55 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
57 LOG_DBG("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cfg->id, codec_cfg->cid, in print_codec_cfg()
58 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
60 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg()
66 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg()
68 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg()
73 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg()
79 if (bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation) == 0) { in print_codec_cfg()
84 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg()
86 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg()
[all …]
Dbtp_bap_broadcast.c224 struct bt_audio_codec_cfg *codec_cfg) in setup_broadcast_source() argument
241 memcpy(&source->streams[0].codec_cfg, codec_cfg, sizeof(*codec_cfg)); in setup_broadcast_source()
246 subgroup_param[i].codec_cfg = &source->streams[0].codec_cfg; in setup_broadcast_source()
295 struct bt_audio_codec_cfg codec_cfg; in btp_bap_broadcast_source_setup() local
315 memset(&codec_cfg, 0, sizeof(codec_cfg)); in btp_bap_broadcast_source_setup()
316 codec_cfg.id = cp->coding_format; in btp_bap_broadcast_source_setup()
317 codec_cfg.vid = cp->vid; in btp_bap_broadcast_source_setup()
318 codec_cfg.cid = cp->cid; in btp_bap_broadcast_source_setup()
319 codec_cfg.data_len = cp->cc_ltvs_len; in btp_bap_broadcast_source_setup()
320 memcpy(codec_cfg.data, cp->cc_ltvs, cp->cc_ltvs_len); in btp_bap_broadcast_source_setup()
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/unicast_audio_server/src/
Dmain.c132 static void print_codec_cfg(const struct bt_audio_codec_cfg *codec_cfg) in print_codec_cfg() argument
134 printk("codec_cfg 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cfg->id, codec_cfg->cid, in print_codec_cfg()
135 codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg()
137 if (codec_cfg->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cfg()
143 bt_audio_data_parse(codec_cfg->data, codec_cfg->data_len, print_cb, "data"); in print_codec_cfg()
145 ret = bt_audio_codec_cfg_get_freq(codec_cfg); in print_codec_cfg()
150 ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg); in print_codec_cfg()
156 if (bt_audio_codec_cfg_get_chan_allocation(codec_cfg, &chan_allocation) == 0) { in print_codec_cfg()
161 bt_audio_codec_cfg_get_octets_per_frame(codec_cfg)); in print_codec_cfg()
163 bt_audio_codec_cfg_get_frame_blocks_per_sdu(codec_cfg, true)); in print_codec_cfg()
[all …]
/Zephyr-Core-3.6.0/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c55 struct bt_audio_codec_cfg *codec_cfg; in bap_broadcast_source_test_suite_fixture_init() local
75 codec_cfg = malloc(sizeof(struct bt_audio_codec_cfg)); in bap_broadcast_source_test_suite_fixture_init()
76 zassert_not_null(codec_cfg); in bap_broadcast_source_test_suite_fixture_init()
92 memset(codec_cfg, 0, sizeof(struct bt_audio_codec_cfg)); in bap_broadcast_source_test_suite_fixture_init()
98 *codec_cfg = BT_AUDIO_CODEC_LC3_CONFIG_16_2(loc, ctx); in bap_broadcast_source_test_suite_fixture_init()
105 subgroup_param[i].codec_cfg = codec_cfg; in bap_broadcast_source_test_suite_fixture_init()
161 free(param->params[0].codec_cfg); in bap_broadcast_source_test_suite_after()
374 struct bt_audio_codec_cfg *codec_cfg = subgroup_params->codec_cfg; in ZTEST_F() local
377 subgroup_params->codec_cfg = NULL; in ZTEST_F()
380 subgroup_params->codec_cfg = codec_cfg; in ZTEST_F()
[all …]
/Zephyr-Core-3.6.0/tests/bluetooth/audio/bap_base/src/
Dmain.c500 struct bt_audio_codec_cfg codec_cfg; in test_base_subgroup_codec_to_codec_cfg_cb() local
503 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in test_base_subgroup_codec_to_codec_cfg_cb()
505 zassert_equal(codec_cfg.data_len, sizeof(expected_data), "Unexpected data length: %d", ret); in test_base_subgroup_codec_to_codec_cfg_cb()
506 zassert_equal(codec_cfg.meta_len, sizeof(expected_meta), "Unexpected meta length: %d", ret); in test_base_subgroup_codec_to_codec_cfg_cb()
507 zassert_mem_equal(codec_cfg.data, expected_data, sizeof(expected_data)); in test_base_subgroup_codec_to_codec_cfg_cb()
508 zassert_mem_equal(codec_cfg.meta, expected_meta, sizeof(expected_meta)); in test_base_subgroup_codec_to_codec_cfg_cb()
527 struct bt_audio_codec_cfg codec_cfg; in test_base_subgroup_codec_to_codec_cfg_inval_param_null_subgroup_cb() local
530 ret = bt_bap_base_subgroup_codec_to_codec_cfg(NULL, &codec_cfg); in test_base_subgroup_codec_to_codec_cfg_inval_param_null_subgroup_cb()
711 struct bt_audio_codec_cfg codec_cfg; in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb() local
714 ret = bt_bap_base_subgroup_bis_codec_to_codec_cfg(bis, &codec_cfg); in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb()
[all …]

123