/Zephyr-latest/subsys/bluetooth/audio/ |
D | cap_stream.c | 53 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_configured_cb() local 56 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_configured_cb() 58 LOG_DBG("%p", cap_stream); in cap_stream_configured_cb() 66 bt_cap_initiator_codec_configured(cap_stream); in cap_stream_configured_cb() 72 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_qos_set_cb() local 75 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_qos_set_cb() 77 LOG_DBG("%p", cap_stream); in cap_stream_qos_set_cb() 85 bt_cap_initiator_qos_configured(cap_stream); in cap_stream_qos_set_cb() 91 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_enabled_cb() local 94 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_enabled_cb() [all …]
|
D | cap_internal.h | 27 void bt_cap_initiator_codec_configured(struct bt_cap_stream *cap_stream); 28 void bt_cap_initiator_qos_configured(struct bt_cap_stream *cap_stream); 29 void bt_cap_initiator_enabled(struct bt_cap_stream *cap_stream); 30 void bt_cap_initiator_started(struct bt_cap_stream *cap_stream); 31 void bt_cap_initiator_connected(struct bt_cap_stream *cap_stream); 32 void bt_cap_initiator_metadata_updated(struct bt_cap_stream *cap_stream); 33 void bt_cap_initiator_disabled(struct bt_cap_stream *cap_stream); 34 void bt_cap_initiator_stopped(struct bt_cap_stream *cap_stream); 35 void bt_cap_initiator_released(struct bt_cap_stream *cap_stream); 36 void bt_cap_stream_ops_register_bap(struct bt_cap_stream *cap_stream); [all …]
|
D | cap_initiator.c | 470 static bool iso_is_in_state(const struct bt_cap_stream *cap_stream, enum bt_iso_state state) in iso_is_in_state() argument 472 const struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in iso_is_in_state() 477 static void set_cap_stream_in_progress(struct bt_cap_stream *cap_stream, bool value) in set_cap_stream_in_progress() argument 482 if (cap_stream == active_proc->proc_param.initiator[i].stream) { in set_cap_stream_in_progress() 488 __ASSERT(false, "CAP stream %p not in active_proc", cap_stream); in set_cap_stream_in_progress() 498 const struct bt_cap_stream *cap_stream) in get_proc_param_by_cap_stream() argument 501 if (active_proc->proc_param.initiator[i].stream == cap_stream) { in get_proc_param_by_cap_stream() 522 struct bt_cap_stream *cap_stream; in update_proc_done_cnt() local 527 cap_stream = proc_param->stream; in update_proc_done_cnt() 528 bap_stream = &cap_stream->bap_stream; in update_proc_done_cnt() [all …]
|
D | CMakeLists.txt | 63 zephyr_library_sources_ifdef(CONFIG_BT_CAP cap_stream.c)
|
D | cap_common.c | 201 bool bt_cap_common_stream_in_active_proc(const struct bt_cap_stream *cap_stream) in bt_cap_common_stream_in_active_proc() argument 210 if (active_proc.proc_param.initiator[i].stream == cap_stream) { in bt_cap_common_stream_in_active_proc()
|
/Zephyr-latest/samples/bluetooth/cap_initiator/src/ |
D | cap_initiator_tx.c | 48 struct bt_cap_stream *cap_stream = tx_streams[i].stream; in tx_thread_func() local 52 if (cap_stream == NULL) { in tx_thread_func() 56 bap_stream = &cap_stream->bap_stream; in tx_thread_func() 76 err = bt_cap_stream_send(cap_stream, buf, tx_streams[i].seq_num); in tx_thread_func() 93 int cap_initiator_tx_register_stream(struct bt_cap_stream *cap_stream) in cap_initiator_tx_register_stream() argument 95 if (cap_stream == NULL) { in cap_initiator_tx_register_stream() 101 tx_streams[i].stream = cap_stream; in cap_initiator_tx_register_stream() 111 int cap_initiator_tx_unregister_stream(struct bt_cap_stream *cap_stream) in cap_initiator_tx_unregister_stream() argument 113 if (cap_stream == NULL) { in cap_initiator_tx_unregister_stream() 118 if (tx_streams[i].stream == cap_stream) { in cap_initiator_tx_unregister_stream()
|
D | cap_initiator.h | 53 int cap_initiator_tx_register_stream(struct bt_cap_stream *cap_stream); 64 int cap_initiator_tx_unregister_stream(struct bt_cap_stream *cap_stream);
|
D | cap_initiator_broadcast.c | 34 struct bt_cap_stream *cap_stream = CONTAINER_OF(stream, struct bt_cap_stream, bap_stream); in broadcast_stream_started_cb() local 40 err = cap_initiator_tx_register_stream(cap_stream); in broadcast_stream_started_cb() 48 struct bt_cap_stream *cap_stream = CONTAINER_OF(stream, struct bt_cap_stream, bap_stream); in broadcast_stream_stopped_cb() local 53 err = cap_initiator_tx_unregister_stream(cap_stream); in broadcast_stream_stopped_cb()
|
D | cap_initiator_unicast.c | 126 struct bt_cap_stream *cap_stream = in unicast_stream_started_cb() local 130 err = cap_initiator_tx_register_stream(cap_stream); in unicast_stream_started_cb() 152 struct bt_cap_stream *cap_stream = in unicast_stream_stopped_cb() local 156 err = cap_initiator_tx_unregister_stream(cap_stream); in unicast_stream_stopped_cb()
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/ |
D | test_common.c | 44 void test_unicast_set_state(struct bt_cap_stream *cap_stream, struct bt_conn *conn, in test_unicast_set_state() argument 48 struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in test_unicast_set_state() 56 zassert_not_null(cap_stream); in test_unicast_set_state()
|
D | test_unicast_stop.c | 57 struct bt_cap_stream *cap_stream = &fixture->cap_streams[i]; in cap_initiator_test_unicast_stop_fixture_init() local 58 struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in cap_initiator_test_unicast_stop_fixture_init()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | common.h | 150 static inline struct bt_bap_stream *bap_stream_from_cap_stream(struct bt_cap_stream *cap_stream) in bap_stream_from_cap_stream() argument 152 return &cap_stream->bap_stream; in bap_stream_from_cap_stream() 156 audio_test_stream_from_cap_stream(struct bt_cap_stream *cap_stream) in audio_test_stream_from_cap_stream() argument 158 return CONTAINER_OF(cap_stream, struct audio_test_stream, stream); in audio_test_stream_from_cap_stream()
|
D | cap_initiator_broadcast_test.c | 561 struct bt_cap_stream *cap_stream = broadcast_streams[i]; in test_broadcast_audio_tx_sync() local 565 err = bt_cap_stream_get_tx_sync(cap_stream, &info); in test_broadcast_audio_tx_sync() 567 FAIL("Failed to get TX sync for stream[%zu]: %p: %d\n", i, cap_stream, err); in test_broadcast_audio_tx_sync() 572 printk("stream[%zu]: %p seq_num: %u\n", i, cap_stream, info.seq_num); in test_broadcast_audio_tx_sync() 574 FAIL("stream[%zu]: %p seq_num was 0\n", i, cap_stream); in test_broadcast_audio_tx_sync()
|
D | cap_initiator_unicast_test.c | 136 struct bt_cap_stream *cap_stream = cap_stream_from_bap_stream(stream); in unicast_stream_configured() local 141 non_idle_streams[i] = cap_stream; in unicast_stream_configured() 186 struct bt_cap_stream *cap_stream = cap_stream_from_bap_stream(stream); in unicast_stream_released() local 191 if (non_idle_streams[i] == cap_stream) { in unicast_stream_released()
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_unicast.c | 115 struct bt_cap_stream *cap_stream; in unicast_server_config_cb() local 121 cap_stream = stream_alloc(dir); in unicast_server_config_cb() 122 if (cap_stream == NULL) { in unicast_server_config_cb() 129 *bap_stream = &cap_stream->bap_stream; in unicast_server_config_cb() 319 struct bt_cap_stream *cap_stream = in unicast_stream_released_cb() local 324 stream_released(cap_stream); in unicast_stream_released_cb() 360 struct bt_cap_stream *cap_stream = &peer->source_stream; in tx_thread_func() local 361 struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in tx_thread_func() 383 err = bt_cap_stream_send(cap_stream, buf, peer->tx_seq_num); in tx_thread_func()
|
D | cap_acceptor.h | 68 void stream_released(const struct bt_cap_stream *cap_stream);
|
D | main.c | 152 void stream_released(const struct bt_cap_stream *cap_stream) in stream_released() argument 154 if (cap_stream == &peer.source_stream) { in stream_released() 156 } else if (cap_stream == &peer.sink_stream) { in stream_released()
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/include/ |
D | test_common.h | 19 void test_unicast_set_state(struct bt_cap_stream *cap_stream, struct bt_conn *conn,
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap_audio_stream.h | 22 struct bt_cap_stream cap_stream; member
|
D | btp_cap.c | 29 return &stream->audio_stream.cap_stream.bap_stream; in stream_unicast_to_bap() 34 return &stream->audio_stream.cap_stream; in stream_unicast_to_cap() 39 return &stream->audio_stream.cap_stream; in stream_broadcast_to_cap() 212 bt_cap_stream_ops_register(&u_stream->audio_stream.cap_stream, stream->ops); in cap_unicast_setup_ase() 384 stream_param->stream = &u_stream->audio_stream.cap_stream; in btp_cap_unicast_audio_update()
|
D | btp_bap_audio_stream.c | 45 return &stream->cap_stream.bap_stream; in audio_stream_to_bap_stream()
|
D | btp_bap_broadcast.c | 46 struct btp_bap_audio_stream, cap_stream), struct btp_bap_broadcast_stream, in stream_bap_to_broadcast() 52 return &stream->audio_stream.cap_stream.bap_stream; in stream_broadcast_to_bap()
|
D | btp_bap_unicast.c | 38 struct btp_bap_audio_stream, cap_stream), in stream_bap_to_unicast() 44 return &stream->audio_stream.cap_stream.bap_stream; in stream_unicast_to_bap()
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/ |
D | CMakeLists.txt | 15 ${ZEPHYR_BASE}/subsys/bluetooth/audio/cap_stream.c
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | bap.c | 176 struct bt_cap_stream *cap_stream = in shell_stream_from_bap_stream() local 178 struct shell_stream *sh_stream = CONTAINER_OF(cap_stream, struct shell_stream, stream); in shell_stream_from_bap_stream()
|