/Zephyr-latest/subsys/bluetooth/audio/ |
D | codec.c | 1561 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 1564 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_get_val() 1569 return codec_meta_get_val(codec_cap->meta, codec_cap->meta_len, type, data); in bt_audio_codec_cap_meta_get_val() 1572 int bt_audio_codec_cap_meta_set_val(struct bt_audio_codec_cap *codec_cap, in bt_audio_codec_cap_meta_set_val() argument 1578 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_set_val() 1583 ret = codec_meta_set_val(codec_cap->meta, codec_cap->meta_len, ARRAY_SIZE(codec_cap->meta), in bt_audio_codec_cap_meta_set_val() 1586 codec_cap->meta_len = ret; in bt_audio_codec_cap_meta_set_val() 1592 int bt_audio_codec_cap_meta_unset_val(struct bt_audio_codec_cap *codec_cap, in bt_audio_codec_cap_meta_unset_val() argument 1597 CHECKIF(codec_cap == NULL) { in bt_audio_codec_cap_meta_unset_val() 1602 ret = codec_meta_unset_val(codec_cap->meta, codec_cap->meta_len, in bt_audio_codec_cap_meta_unset_val() [all …]
|
D | pacs.c | 142 const struct bt_audio_codec_cap *codec_cap = cap->codec_cap; in build_pac_records() local 154 pac_codec->id = codec_cap->id; in build_pac_records() 155 pac_codec->cid = sys_cpu_to_le16(codec_cap->cid); in build_pac_records() 156 pac_codec->vid = sys_cpu_to_le16(codec_cap->vid); in build_pac_records() 158 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->data_len)) { in build_pac_records() 162 net_buf_simple_add_u8(buf, codec_cap->data_len); in build_pac_records() 163 net_buf_simple_add_mem(buf, codec_cap->data, codec_cap->data_len); in build_pac_records() 165 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->meta_len)) { in build_pac_records() 169 net_buf_simple_add_u8(buf, codec_cap->meta_len); in build_pac_records() 170 net_buf_simple_add_mem(buf, codec_cap->meta, codec_cap->meta_len); in build_pac_records() [all …]
|
D | bap_broadcast_sink.c | 60 const struct bt_audio_codec_cap *codec_cap; member 560 if (cap->codec_cap->id == data->id) { in codec_lookup_id() 561 data->codec_cap = cap->codec_cap; in codec_lookup_id() 688 if (lookup_data.codec_cap == NULL) { 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()
|
D | bap_unicast_client.c | 618 const struct bt_audio_codec_cap *codec_cap) in unicast_client_notify_pac_record() argument 631 listener->pac_record(conn, dir, codec_cap); in unicast_client_notify_pac_record() 1425 struct bt_audio_codec_cap *codec_cap) in unicast_client_set_codec_cap() argument 1429 if (!codec_cap) { in unicast_client_set_codec_cap() 1437 (void)memset(codec_cap, 0, sizeof(*codec_cap)); in unicast_client_set_codec_cap() 1439 codec_cap->id = id; in unicast_client_set_codec_cap() 1440 codec_cap->cid = cid; in unicast_client_set_codec_cap() 1441 codec_cap->vid = vid; in unicast_client_set_codec_cap() 1444 if (data_len > sizeof(codec_cap->data)) { in unicast_client_set_codec_cap() 1462 memcpy(codec_cap->data, data, data_len); in unicast_client_set_codec_cap() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_common.c | 56 void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 58 printk("codec_cap ID 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, in print_codec_cap() 59 codec_cap->cid, codec_cap->vid, codec_cap->data_len); in print_codec_cap() 61 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 62 print_ltv_array("data", codec_cap->data, codec_cap->data_len); in print_codec_cap() 65 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap() 69 print_ltv_array("meta", codec_cap->meta, codec_cap->meta_len); in print_codec_cap()
|
D | bap_common.h | 58 void print_codec_cap(const struct bt_audio_codec_cap *codec_cap);
|
D | gmap_ugt_test.c | 41 static struct bt_audio_codec_cap codec_cap = variable 369 .codec_cap = &codec_cap, in test_main()
|
D | pacs_notify_server_test.c | 42 .codec_cap = &lc3_codec_1, 45 .codec_cap = &lc3_codec_2,
|
D | cap_acceptor_test.c | 696 static const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( in init() local 720 .codec_cap = &codec_cap, in init() 760 .codec_cap = &codec_cap, in init()
|
D | bap_unicast_client_test.c | 306 static void print_remote_codec_cap(const struct bt_audio_codec_cap *codec_cap, in print_remote_codec_cap() argument 309 printk("codec %p dir 0x%02x\n", codec_cap, dir); in print_remote_codec_cap() 311 print_codec_cap(codec_cap); in print_remote_codec_cap() 339 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 341 print_remote_codec_cap(codec_cap, dir); in pac_record_cb()
|
D | bap_broadcast_sink_test.c | 80 static const struct bt_audio_codec_cap codec_cap = BT_AUDIO_CODEC_CAP_LC3( variable 370 .codec_cap = &codec_cap,
|
/Zephyr-latest/tests/bluetooth/audio/codec/src/ |
D | main.c | 1077 struct bt_audio_codec_cap codec_cap = in ZTEST() local 1086 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST() 1093 struct bt_audio_codec_cap codec_cap = in ZTEST() local 1103 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST() 1107 ret = bt_audio_codec_cap_set_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, in ZTEST() 1111 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST() 1118 struct bt_audio_codec_cap codec_cap = in ZTEST() local 1124 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST() 1127 ret = bt_audio_codec_cap_set_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, in ZTEST() 1131 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | audio.h | 1500 int bt_audio_codec_cap_get_val(const struct bt_audio_codec_cap *codec_cap, 1515 int bt_audio_codec_cap_set_val(struct bt_audio_codec_cap *codec_cap, 1530 int bt_audio_codec_cap_unset_val(struct bt_audio_codec_cap *codec_cap, 1544 int bt_audio_codec_cap_get_freq(const struct bt_audio_codec_cap *codec_cap); 1556 int bt_audio_codec_cap_set_freq(struct bt_audio_codec_cap *codec_cap, 1569 int bt_audio_codec_cap_get_frame_dur(const struct bt_audio_codec_cap *codec_cap); 1581 int bt_audio_codec_cap_set_frame_dur(struct bt_audio_codec_cap *codec_cap, 1596 int bt_audio_codec_cap_get_supported_audio_chan_counts(const struct bt_audio_codec_cap *codec_cap, 1610 struct bt_audio_codec_cap *codec_cap, enum bt_audio_codec_cap_chan_count chan_count); 1624 const struct bt_audio_codec_cap *codec_cap, [all …]
|
D | pacs.h | 42 const struct bt_audio_codec_cap *codec_cap; member
|
/Zephyr-latest/samples/bluetooth/tmap_central/src/ |
D | cap_initiator.c | 203 static void print_remote_codec(const struct bt_audio_codec_cap *codec_cap, enum bt_audio_dir dir) in print_remote_codec() argument 205 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_remote_codec() 206 codec_cap->vid, codec_cap->data_len); in print_remote_codec() 208 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_remote_codec() 209 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_remote_codec() 212 print_hex(codec_cap->data, codec_cap->data_len); in print_remote_codec() 216 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_remote_codec() 258 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 260 print_remote_codec(codec_cap, dir); in pac_record_cb()
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | main.c | 96 static void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 98 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_codec_cap() 99 codec_cap->vid, codec_cap->data_len); in print_codec_cap() 101 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 102 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap() 105 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap() 109 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_codec_cap() 365 static void print_remote_codec_cap(const struct bt_audio_codec_cap *codec_cap, in print_remote_codec_cap() argument 368 printk("codec_cap %p dir 0x%02x\n", codec_cap, dir); in print_remote_codec_cap() 370 print_codec_cap(codec_cap); in print_remote_codec_cap() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | audio.h | 503 const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 505 shell_print(sh, "%*scodec cap id 0x%02x cid 0x%04x vid 0x%04x", indent, "", codec_cap->id, in print_codec_cap() 506 codec_cap->cid, codec_cap->vid); in print_codec_cap() 514 if (codec_cap->data_len == 0U) { in print_codec_cap() 516 } else if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 520 ret = bt_audio_codec_cap_get_freq(codec_cap); in print_codec_cap() 525 ret = bt_audio_codec_cap_get_frame_dur(codec_cap); in print_codec_cap() 531 ret = bt_audio_codec_cap_get_supported_audio_chan_counts(codec_cap, true); in print_codec_cap() 537 ret = bt_audio_codec_cap_get_octets_per_frame(codec_cap, &codec_frame); in print_codec_cap() 542 ret = bt_audio_codec_cap_get_max_codec_frames_per_sdu(codec_cap, true); in print_codec_cap() [all …]
|
/Zephyr-latest/samples/bluetooth/cap_initiator/src/ |
D | cap_initiator_unicast.c | 223 static void log_codec(const struct bt_audio_codec_cap *codec_cap, enum bt_audio_dir dir) in log_codec() argument 225 LOG_INF("codec id 0x%02x cid 0x%04x vid 0x%04x count %u", codec_cap->id, codec_cap->cid, in log_codec() 226 codec_cap->vid, codec_cap->data_len); in log_codec() 228 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in log_codec() 229 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, log_codec_cb, "data"); in log_codec() 231 LOG_HEXDUMP_DBG(codec_cap->data, codec_cap->data_len, "data"); in log_codec() 234 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, log_codec_cb, "meta"); in log_codec() 275 const struct bt_audio_codec_cap *codec_cap) in pac_record_cb() argument 277 log_codec(codec_cap, dir); in pac_record_cb()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap_unicast.c | 97 static void print_codec_cap(const struct bt_audio_codec_cap *codec_cap) in print_codec_cap() argument 99 LOG_DBG("codec_cap 0x%02x cid 0x%04x vid 0x%04x count %zu", codec_cap->id, codec_cap->cid, in print_codec_cap() 100 codec_cap->vid, codec_cap->data_len); in print_codec_cap() 102 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap() 103 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap() 105 LOG_HEXDUMP_DBG(codec_cap->data, codec_cap->data_len, "data"); in print_codec_cap() 108 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_codec_cap() 199 static bool codec_cap_get_val(const struct bt_audio_codec_cap *codec_cap, uint8_t type, in codec_cap_get_val() argument 208 err = bt_audio_data_parse(codec_cap->data, codec_cap->data_len, data_type_search_cb, in codec_cap_get_val() 228 const struct bt_audio_codec_cap *codec_cap, in btp_send_pac_codec_found_ev() argument [all …]
|
D | btp_bap.c | 48 .codec_cap = &default_codec_cap, 52 .codec_cap = &default_codec_cap, 56 .codec_cap = &vendor_codec_cap, 60 .codec_cap = &vendor_codec_cap,
|
/Zephyr-latest/include/zephyr/bluetooth/classic/ |
D | a2dp.h | 44 .codec_cap = _capability, .stream = NULL, \ 331 struct bt_a2dp_codec_ie *codec_cap; member 342 struct bt_a2dp_codec_ie codec_cap; member
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | main.c | 272 .codec_cap = &lc3_codec_cap, in init_cap_acceptor() 286 .codec_cap = &lc3_codec_cap, in init_cap_acceptor()
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | a2dp.c | 138 net_buf_add_u8(rsp_buf, ep->codec_cap->len + 2U); in a2dp_get_capabilities_ind() 144 net_buf_add_mem(rsp_buf, &ep->codec_cap->codec_ie[0], ep->codec_cap->len); in a2dp_get_capabilities_ind() 189 sbc = (struct bt_a2dp_codec_sbc_params *)&ep->codec_cap->codec_ie[0]; in a2dp_process_config_ind() 460 memcpy(&info->codec_cap.codec_ie, codec_info_element, codec_info_element_len); in bt_a2dp_get_capabilities_cb() 461 info->codec_cap.len = codec_info_element_len; in bt_a2dp_get_capabilities_cb() 466 *ep->codec_cap = info->codec_cap; in bt_a2dp_get_capabilities_cb()
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 399 .codec_cap = &lc3_codec_cap, 403 .codec_cap = &lc3_codec_cap,
|
/Zephyr-latest/subsys/bluetooth/host/classic/shell/ |
D | a2dp.c | 37 .codec_cap = &peer_sbc_capabilities, 208 codec_ie = ep_info->codec_cap.codec_ie; in shell_a2dp_print_capabilities() 209 codec_ie_len = ep_info->codec_cap.len; in shell_a2dp_print_capabilities()
|