/Zephyr-latest/subsys/bluetooth/audio/ |
D | pbp.c | 24 int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len, in bt_pbp_get_announcement() argument 34 CHECKIF((meta == NULL && meta_len != 0) || (meta != NULL && meta_len == 0)) { in bt_pbp_get_announcement() 35 LOG_DBG("Invalid metadata combination: %p %zu", meta, meta_len); in bt_pbp_get_announcement() 40 CHECKIF(pba_data_buf->size < (meta_len + BT_PBP_MIN_PBA_SIZE)) { in bt_pbp_get_announcement() 41 LOG_DBG("Buffer size needs to be at least %d!\n", meta_len + BT_PBP_MIN_PBA_SIZE); in bt_pbp_get_announcement() 49 net_buf_simple_add_u8(pba_data_buf, meta_len); in bt_pbp_get_announcement() 50 net_buf_simple_add_mem(pba_data_buf, meta, meta_len); in bt_pbp_get_announcement() 60 uint8_t meta_len = 0; in bt_pbp_parse_announcement() local 86 meta_len = net_buf_simple_pull_u8(&buf); in bt_pbp_parse_announcement() 87 if (buf.len < meta_len) { in bt_pbp_parse_announcement() [all …]
|
D | codec.c | 558 size_t meta_len, size_t meta_size) in init_net_buf_simple_from_meta() argument 563 buf->len = meta_len; in init_net_buf_simple_from_meta() 566 static int codec_meta_get_val(const uint8_t meta[], size_t meta_len, in codec_meta_get_val() argument 579 return bt_audio_data_get_val(meta, meta_len, (uint8_t)type, data); in codec_meta_get_val() 582 static int codec_meta_set_val(uint8_t meta[], size_t meta_len, size_t meta_size, in codec_meta_set_val() argument 603 init_net_buf_simple_from_meta(&buf, meta, meta_len, meta_size); in codec_meta_set_val() 608 static int codec_meta_unset_val(uint8_t meta[], size_t meta_len, size_t meta_size, in codec_meta_unset_val() argument 618 init_net_buf_simple_from_meta(&buf, meta, meta_len, meta_size); in codec_meta_unset_val() 623 static int codec_meta_get_pref_context(const uint8_t meta[], size_t meta_len) in codec_meta_get_pref_context() argument 633 ret = codec_meta_get_val(meta, meta_len, BT_AUDIO_METADATA_TYPE_PREF_CONTEXT, &data); in codec_meta_get_pref_context() [all …]
|
D | bap_unicast_client_internal.h | 23 size_t meta_len); 26 size_t meta_len);
|
D | bap_unicast_server.c | 149 size_t meta_len) in bt_bap_unicast_server_metadata() argument 156 if (meta_len > sizeof(ep->codec_cfg.meta)) { in bt_bap_unicast_server_metadata() 161 err = unicast_server_cb->metadata(stream, meta, meta_len, &rsp); in bt_bap_unicast_server_metadata() 173 (void)memcpy(ep->codec_cfg.meta, meta, meta_len); in bt_bap_unicast_server_metadata()
|
D | bap_unicast_server.h | 19 size_t meta_len);
|
D | bap_stream.c | 251 if (codec_cfg->meta_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in bt_audio_valid_codec_cfg() 252 LOG_DBG("codec_cfg->meta_len (%zu) is invalid", codec_cfg->meta_len); in bt_audio_valid_codec_cfg() 682 int bt_bap_stream_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len) in bt_bap_stream_enable() argument 706 err = bt_bap_unicast_client_enable(stream, meta, meta_len); in bt_bap_stream_enable() 878 int bt_bap_stream_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len) in bt_bap_stream_metadata() argument 884 LOG_DBG("stream %p meta_len %zu", stream, meta_len); in bt_bap_stream_metadata() 891 CHECKIF((meta == NULL && meta_len != 0U) || (meta != NULL && meta_len == 0U)) { in bt_bap_stream_metadata() 892 LOG_DBG("Invalid meta (%p) or len (%zu)", meta, meta_len); in bt_bap_stream_metadata() 910 err = bt_bap_unicast_client_metadata(stream, meta, meta_len); in bt_bap_stream_metadata() 912 err = bt_bap_unicast_server_metadata(stream, meta, meta_len); in bt_bap_stream_metadata()
|
D | cap_initiator.c | 114 static bool cap_initiator_valid_metadata(const uint8_t meta[], size_t meta_len) in cap_initiator_valid_metadata() argument 122 LOG_DBG("meta %p len %zu", (void *)meta, meta_len); in cap_initiator_valid_metadata() 124 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &metadata_param); in cap_initiator_valid_metadata() 161 cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len); in cap_initiator_broadcast_audio_start_valid_param() 337 const uint8_t meta[], size_t meta_len) in bt_cap_initiator_broadcast_audio_update() argument 349 if (!cap_initiator_valid_metadata(meta, meta_len)) { in bt_cap_initiator_broadcast_audio_update() 355 meta_len); in bt_cap_initiator_broadcast_audio_update() 808 CHECKIF(!cap_initiator_valid_metadata(codec_cfg->meta, codec_cfg->meta_len)) { in valid_unicast_audio_start_param() 1251 bap_stream->codec_cfg->meta_len); in bt_cap_initiator_qos_configured() 1327 next_bap_stream->codec_cfg->meta_len); in bt_cap_initiator_enabled() [all …]
|
D | bap_broadcast_source.c | 371 net_buf_simple_add_u8(buf, codec_cfg->meta_len); in encode_base_subgroup() 374 if ((buf->size - buf->len) < codec_cfg->meta_len) { in encode_base_subgroup() 375 LOG_DBG("No room for metadata data: %zu", codec_cfg->meta_len); in encode_base_subgroup() 380 net_buf_simple_add_mem(buf, codec_cfg->meta, codec_cfg->meta_len); in encode_base_subgroup() 993 const uint8_t meta[], size_t meta_len) in bt_bap_broadcast_source_update_metadata() argument 1004 CHECKIF((meta == NULL && meta_len != 0) || (meta != NULL && meta_len == 0)) { in bt_bap_broadcast_source_update_metadata() 1005 LOG_DBG("Invalid metadata combination: %p %zu", meta, meta_len); in bt_bap_broadcast_source_update_metadata() 1010 CHECKIF(meta_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in bt_bap_broadcast_source_update_metadata() 1011 LOG_DBG("Invalid meta_len: %zu (max %d)", meta_len, in bt_bap_broadcast_source_update_metadata() 1029 memcpy(subgroup->codec_cfg->meta, meta, meta_len); in bt_bap_broadcast_source_update_metadata() [all …]
|
D | bap_unicast_client.c | 1424 uint8_t data_len, void *meta, uint8_t meta_len, in unicast_client_set_codec_cap() argument 1434 data_len, meta_len); in unicast_client_set_codec_cap() 1466 if (meta_len > 0U) { in unicast_client_set_codec_cap() 1467 if (meta_len > sizeof(codec_cap->meta)) { in unicast_client_set_codec_cap() 1471 net_buf_simple_init_with_data(&buf, meta, meta_len); in unicast_client_set_codec_cap() 1481 memcpy(codec_cap->meta, meta, meta_len); in unicast_client_set_codec_cap() 1482 codec_cap->meta_len = meta_len; in unicast_client_set_codec_cap() 1508 codec_cfg->meta_len = len; in unicast_client_ep_set_metadata() 1994 const uint8_t meta[], size_t meta_len) in unicast_client_ep_enable() argument 1998 LOG_DBG("ep %p buf %p meta_len %zu", ep, buf, meta_len); in unicast_client_ep_enable() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/ascs/uut/ |
D | bap_unicast_client.c | 28 size_t meta_len) in bt_bap_unicast_client_enable() argument 35 size_t meta_len) in bt_bap_unicast_client_metadata() argument
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 111 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, print_cb, "meta"); in print_codec_cfg() 184 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() argument 187 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in lc3_enable() 239 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() argument 248 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in lc3_metadata() 250 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &func_param); in lc3_metadata()
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 99 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, log_codec_cfg_cb, "meta"); in log_codec_cfg() 161 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_enable_cb() argument 163 LOG_INF("Enable: bap_stream %p meta_len %zu", bap_stream, meta_len); in unicast_server_enable_cb() 192 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_metadata_cb() argument 200 LOG_INF("Metadata: bap_stream %p meta_len %zu", bap_stream, meta_len); in unicast_server_metadata_cb() 202 err = bt_audio_data_parse(meta, meta_len, data_func_cb, &func_param); in unicast_server_metadata_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | gmap_ugt_test.c | 179 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_enable() argument 181 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in unicast_server_enable() 183 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in unicast_server_enable() 194 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_metadata() argument 196 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in unicast_server_metadata() 198 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in unicast_server_metadata()
|
D | bap_common.c | 69 print_ltv_array("meta", codec_cap->meta, codec_cap->meta_len); in print_codec_cap() 85 print_ltv_array("meta", codec_cfg->meta, codec_cfg->meta_len); in print_codec_cfg()
|
D | bap_unicast_server_test.c | 59 .meta_len = (5 + 1) + (LONG_META_LEN + 1U), 164 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() argument 167 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in lc3_enable() 192 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() argument 195 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in lc3_metadata() 197 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in lc3_metadata()
|
D | cap_acceptor_test.c | 522 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_enable() argument 524 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in unicast_server_enable() 526 return bt_audio_data_parse(meta, meta_len, ascs_data_func_cb, rsp); in unicast_server_enable() 537 size_t meta_len, struct bt_bap_ascs_rsp *rsp) in unicast_server_metadata() argument 539 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in unicast_server_metadata() 541 return bt_audio_data_parse(meta, meta_len, ascs_data_func_cb, rsp); in unicast_server_metadata()
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | bap_unicast_sr.c | 111 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, print_cb, "meta"); in print_codec_cfg() 252 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() argument 255 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in lc3_enable() 297 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() argument 300 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in lc3_metadata() 302 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in lc3_metadata()
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | pbp.h | 71 int bt_pbp_get_announcement(const uint8_t meta[], size_t meta_len,
|
D | bap.h | 1014 int bt_bap_stream_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len); 1027 int bt_bap_stream_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len); 1266 int (*enable)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, 1295 int (*metadata)(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, 2200 const uint8_t meta[], size_t meta_len);
|
D | cap.h | 299 size_t meta_len; member 587 const uint8_t meta[], size_t meta_len);
|
D | audio.h | 558 .meta_len = sizeof((uint8_t[])_meta), \ 581 .meta_len = sizeof((uint8_t[])_meta), \ 711 size_t meta_len; member 745 size_t meta_len; member
|
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/ |
D | main.c | 184 bt_audio_data_parse(codec_cfg->meta, codec_cfg->meta_len, print_cb, "meta"); in print_codec_cfg() 373 static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_enable() argument 376 printk("Enable: stream %p meta_len %zu\n", stream, meta_len); in lc3_enable() 460 static int lc3_metadata(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, in lc3_metadata() argument 463 printk("Metadata: stream %p meta_len %zu\n", stream, meta_len); in lc3_metadata() 465 return bt_audio_data_parse(meta, meta_len, data_func_cb, rsp); in lc3_metadata()
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | main.c | 109 bt_audio_data_parse(codec_cap->meta, codec_cap->meta_len, print_cb, "meta"); in print_codec_cap() 121 uint8_t meta_len; in check_audio_support_and_connect() local 146 min_size = sizeof(announcement_type) + sizeof(audio_contexts) + sizeof(meta_len); in check_audio_support_and_connect() 154 meta_len = net_buf_simple_pull_u8(&ascs_svc_data); in check_audio_support_and_connect() 163 announcement_type, audio_contexts, meta_len); in check_audio_support_and_connect() 752 codec_configuration.codec_cfg.meta_len); in enable_streams()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfd_srv.c | 445 size_t meta_len, fwid_len, size; in handle_upload_start() local 456 meta_len = net_buf_simple_pull_u8(buf); in handle_upload_start() 457 if (buf->len < meta_len) { in handle_upload_start() 461 meta = net_buf_simple_pull_mem(buf, meta_len); in handle_upload_start() 466 bt_hex(meta, meta_len)); in handle_upload_start() 483 srv->upload.slot->metadata_len == meta_len && in handle_upload_start() 484 !memcmp(srv->upload.slot->metadata, meta, meta_len) && in handle_upload_start() 526 err = bt_mesh_dfu_slot_info_set(srv->upload.slot, size, meta, meta_len); in handle_upload_start()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_cap.c | 271 codec_cfg.meta_len = cp->metadata_ltvs_len; in btp_cap_unicast_setup_ase() 385 stream_param->meta_len = update_data->metadata_ltvs_len; in btp_cap_unicast_audio_update() 388 data_ptr = ((uint8_t *)update_data) + stream_param->meta_len + in btp_cap_unicast_audio_update() 489 codec_cfg->meta_len = cp->metadata_ltvs_len; in btp_cap_broadcast_source_setup_stream() 525 codec_cfg->meta_len = cp->metadata_ltvs_len; in btp_cap_broadcast_source_setup_subgroup()
|