/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/ |
D | bap_unicast_common.c | 46 void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 48 printk("codec_cap ID 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, in print_codec_cap() 49 codec_cap->cid, codec_cap->vid, codec_cap->data_len); in print_codec_cap() 51 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 52 print_ltv_array("data", codec_cap->data, codec_cap->data_len); in print_codec_cap() 55 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap() 59 print_ltv_array("meta", codec_cap->meta, codec_cap->meta_len); in print_codec_cap()
|
D | bap_unicast_common.h | 35 void print_codec_cap(const struct bt_audio_codec_cap *codec_cap);
|
D | pacs_notify_server_test.c | 24 .codec_cap = &lc3_codec_1, 27 .codec_cap = &lc3_codec_2,
|
D | cap_acceptor_test.c | 38 static const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( variable 577 .codec_cap = &codec_cap, in init() 617 .codec_cap = &codec_cap, in init()
|
D | bap_unicast_client_test.c | 234 static void print_remote_codec_cap(const struct bt_audio_codec_cap *codec_cap, in print_remote_codec_cap() argument 237 printk("codec %p dir 0x%02x\n", codec_cap, dir); in print_remote_codec_cap() 239 print_codec_cap(codec_cap); in print_remote_codec_cap() 267 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 269 print_remote_codec_cap(codec_cap, dir); in pac_record_cb()
|
D | bap_broadcast_sink_test.c | 35 static const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( variable 185 .codec_cap = &codec_cap,
|
D | cap_initiator_unicast_test.c | 269 static void print_remote_codec(const struct bt_audio_codec_cap *codec_cap, enum bt_audio_dir dir) in print_remote_codec() argument 271 printk("codec_cap %p dir 0x%02x\n", codec_cap, dir); in print_remote_codec() 273 print_codec_cap(codec_cap); in print_remote_codec() 277 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 279 print_remote_codec(codec_cap, dir); in pac_record_cb()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | codec.c | 885 int bt_audio_codec_cap_meta_get_val(const struct bt_audio_codec_cap *codec_cap, uint8_t type, in bt_audio_codec_cap_meta_get_val() argument 888 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_get_val() 893 return codec_meta_get_val(codec_cap->meta, codec_cap->meta_len, type, data); in bt_audio_codec_cap_meta_get_val() 896 int bt_audio_codec_cap_meta_get_pref_context(const struct bt_audio_codec_cap *codec_cap) in bt_audio_codec_cap_meta_get_pref_context() argument 898 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_get_pref_context() 903 return codec_meta_get_pref_context(codec_cap->meta, codec_cap->meta_len); in bt_audio_codec_cap_meta_get_pref_context() 906 int bt_audio_codec_cap_meta_get_stream_context(const struct bt_audio_codec_cap *codec_cap) in bt_audio_codec_cap_meta_get_stream_context() argument 908 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_get_stream_context() 913 return codec_meta_get_stream_context(codec_cap->meta, codec_cap->meta_len); in bt_audio_codec_cap_meta_get_stream_context() 916 int bt_audio_codec_cap_meta_get_program_info(const struct bt_audio_codec_cap *codec_cap, in bt_audio_codec_cap_meta_get_program_info() argument [all …]
|
D | pacs.c | 119 const struct bt_audio_codec_cap *codec_cap = cap->codec_cap; in build_pac_records() local 131 pac_codec->id = codec_cap->id; in build_pac_records() 132 pac_codec->cid = sys_cpu_to_le16(codec_cap->cid); in build_pac_records() 133 pac_codec->vid = sys_cpu_to_le16(codec_cap->vid); in build_pac_records() 135 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->data_len)) { in build_pac_records() 139 net_buf_simple_add_u8(buf, codec_cap->data_len); in build_pac_records() 140 net_buf_simple_add_mem(buf, codec_cap->data, codec_cap->data_len); in build_pac_records() 142 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->meta_len)) { in build_pac_records() 146 net_buf_simple_add_u8(buf, codec_cap->meta_len); in build_pac_records() 147 net_buf_simple_add_mem(buf, codec_cap->meta, codec_cap->meta_len); in build_pac_records() [all …]
|
D | bap_broadcast_sink.c | 49 const struct bt_audio_codec_cap *codec_cap; member 837 if (cap->codec_cap->id == data->id) { in codec_lookup_id() 838 data->codec_cap = cap->codec_cap; in codec_lookup_id() 971 if (lookup_data.codec_cap == NULL) { in bt_bap_broadcast_sink_sync() 978 codec_cfg->path_id = lookup_data.codec_cap->path_id; in bt_bap_broadcast_sink_sync()
|
D | bap_unicast_client.c | 1187 struct bt_audio_codec_cap *codec_cap) in unicast_client_set_codec_cap() argument 1191 if (!codec_cap) { in unicast_client_set_codec_cap() 1199 (void)memset(codec_cap, 0, sizeof(*codec_cap)); in unicast_client_set_codec_cap() 1201 codec_cap->id = id; in unicast_client_set_codec_cap() 1202 codec_cap->cid = cid; in unicast_client_set_codec_cap() 1203 codec_cap->vid = vid; in unicast_client_set_codec_cap() 1206 if (data_len > sizeof(codec_cap->data)) { in unicast_client_set_codec_cap() 1224 memcpy(codec_cap->data, data, data_len); in unicast_client_set_codec_cap() 1225 codec_cap->data_len = data_len; in unicast_client_set_codec_cap() 1229 if (meta_len > sizeof(codec_cap->meta)) { in unicast_client_set_codec_cap() [all …]
|
D | ascs.c | 1296 const struct bt_audio_codec_cap *codec_cap; member 1303 if (cap->codec_cap->id == data->id && cap->codec_cap->cid == data->cid && in codec_lookup_id() 1304 cap->codec_cap->vid == data->vid) { in codec_lookup_id() 1305 data->codec_cap = cap->codec_cap; in codec_lookup_id() 1336 if (lookup_data.codec_cap == NULL) { in ascs_ep_set_codec() 1350 codec_cfg->path_id = lookup_data.codec_cap->path_id; in ascs_ep_set_codec() 1548 if (lookup_data.codec_cap == NULL) { in bt_ascs_config_ase()
|
/Zephyr-Core-3.5.0/tests/bluetooth/audio/codec/src/ |
D | main.c | 329 const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in ZTEST() local 336 ret = bt_audio_codec_cap_get_freq(&codec_cap); in ZTEST() 342 const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in ZTEST() local 349 ret = bt_audio_codec_cap_get_frame_duration(&codec_cap); in ZTEST() 355 const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in ZTEST() local 362 ret = bt_audio_codec_cap_get_supported_audio_chan_counts(&codec_cap); in ZTEST() 372 const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in ZTEST() local 380 ret = bt_audio_codec_cap_get_octets_per_frame(&codec_cap, &codec_frame); in ZTEST() 390 const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in ZTEST() local 397 ret = bt_audio_codec_cap_get_max_codec_frames_per_sdu(&codec_cap); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/audio/ |
D | audio.h | 933 uint8_t bt_audio_codec_cap_get_val(const struct bt_audio_codec_cap *codec_cap, uint8_t type, 946 int bt_audio_codec_cap_get_freq(const struct bt_audio_codec_cap *codec_cap); 958 int bt_audio_codec_cap_get_frame_duration(const struct bt_audio_codec_cap *codec_cap); 970 int bt_audio_codec_cap_get_supported_audio_chan_counts(const struct bt_audio_codec_cap *codec_cap); 984 const struct bt_audio_codec_cap *codec_cap, 997 int bt_audio_codec_cap_get_max_codec_frames_per_sdu(const struct bt_audio_codec_cap *codec_cap); 1009 int bt_audio_codec_cap_meta_get_val(const struct bt_audio_codec_cap *codec_cap, uint8_t type, 1023 int bt_audio_codec_cap_meta_get_pref_context(const struct bt_audio_codec_cap *codec_cap); 1036 int bt_audio_codec_cap_meta_get_stream_context(const struct bt_audio_codec_cap *codec_cap); 1049 int bt_audio_codec_cap_meta_get_program_info(const struct bt_audio_codec_cap *codec_cap, [all …]
|
D | pacs.h | 22 const struct bt_audio_codec_cap *codec_cap; member
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/ |
D | cap_initiator.c | 194 static void print_remote_codec(const struct bt_audio_codec_cap *codec_cap, enum bt_audio_dir dir) in print_remote_codec() argument 196 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_remote_codec() 197 codec_cap->vid, codec_cap->data_len); in print_remote_codec() 199 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_remote_codec() 200 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_remote_codec() 203 print_hex(codec_cap->data, codec_cap->data_len); in print_remote_codec() 207 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_remote_codec() 249 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 251 print_remote_codec(codec_cap, dir); in pac_record_cb()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/ |
D | audio.h | 182 const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 184 shell_print(sh, "codec cap id 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cap->id, in print_codec_cap() 185 codec_cap->cid, codec_cap->vid, codec_cap->data_len); in print_codec_cap() 188 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 189 print_ltv_array(sh, "data", codec_cap->data, codec_cap->data_len); in print_codec_cap() 191 shell_hexdump(sh, codec_cap->data, codec_cap->data_len); in print_codec_cap() 196 print_ltv_array(sh, "meta", codec_cap->meta, codec_cap->meta_len); in print_codec_cap()
|
D | bap.c | 601 .codec_cap = &lc3_codec_cap, 605 .codec_cap = &lc3_codec_cap, 752 const struct bt_audio_codec_cap *codec_cap, in print_remote_codec_cap() argument 755 shell_print(ctx_shell, "conn %p: codec_cap %p dir 0x%02x", conn, codec_cap, in print_remote_codec_cap() 758 print_codec_cap(ctx_shell, codec_cap); in print_remote_codec_cap() 798 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 800 print_remote_codec_cap(conn, codec_cap, dir); in pac_record_cb()
|
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_client/src/ |
D | main.c | 374 static void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 376 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_codec_cap() 377 codec_cap->vid, codec_cap->data_len); in print_codec_cap() 379 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 380 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap() 383 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap() 387 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_codec_cap() 603 static void print_remote_codec_cap(const struct bt_audio_codec_cap *codec_cap, in print_remote_codec_cap() argument 606 printk("codec_cap %p dir 0x%02x\n", codec_cap, dir); in print_remote_codec_cap() 608 print_codec_cap(codec_cap); in print_remote_codec_cap() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/ |
D | btp_bap.c | 168 static void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 170 LOG_DBG("codec_cap 0x%02x cid 0x%04x vid 0x%04x count %zu", codec_cap->id, codec_cap->cid, in print_codec_cap() 171 codec_cap->vid, codec_cap->data_len); in print_codec_cap() 173 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 174 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap() 176 LOG_HEXDUMP_DBG(codec_cap->data, codec_cap->data_len, "data"); in print_codec_cap() 179 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_codec_cap() 774 static bool codec_cap_get_val(const struct bt_audio_codec_cap *codec_cap, uint8_t type, in codec_cap_get_val() argument 783 err = bt_audio_data_parse(codec_cap->data, codec_cap->data_len, data_type_search_cb, in codec_cap_get_val() 803 const struct bt_audio_codec_cap *codec_cap, in btp_send_pac_codec_found_ev() argument [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 384 .codec_cap = &lc3_codec_cap, 388 .codec_cap = &lc3_codec_cap,
|
/Zephyr-Core-3.5.0/samples/bluetooth/broadcast_audio_sink/src/ |
D | main.c | 54 static const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( variable 371 .codec_cap = &codec_cap,
|
/Zephyr-Core-3.5.0/samples/bluetooth/unicast_audio_server/src/ |
D | main.c | 614 .codec_cap = &lc3_codec_cap, 618 .codec_cap = &lc3_codec_cap,
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 331 .codec_cap = &lc3_codec_cap,
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_bmr/src/ |
D | bap_broadcast_sink.c | 99 .codec_cap = &codec,
|