Home
last modified time | relevance | path

Searched refs:cap_stream (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dcap_stream.c20 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_configured_cb() local
23 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_configured_cb()
25 LOG_DBG("%p", cap_stream); in cap_stream_configured_cb()
28 bt_cap_initiator_codec_configured(cap_stream); in cap_stream_configured_cb()
38 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_qos_set_cb() local
41 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_qos_set_cb()
43 LOG_DBG("%p", cap_stream); in cap_stream_qos_set_cb()
46 bt_cap_initiator_qos_configured(cap_stream); in cap_stream_qos_set_cb()
56 struct bt_cap_stream *cap_stream = CONTAINER_OF(bap_stream, in cap_stream_enabled_cb() local
59 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_enabled_cb()
[all …]
Dcap_internal.h19 void bt_cap_initiator_codec_configured(struct bt_cap_stream *cap_stream);
20 void bt_cap_initiator_qos_configured(struct bt_cap_stream *cap_stream);
21 void bt_cap_initiator_enabled(struct bt_cap_stream *cap_stream);
22 void bt_cap_initiator_started(struct bt_cap_stream *cap_stream);
23 void bt_cap_initiator_metadata_updated(struct bt_cap_stream *cap_stream);
24 void bt_cap_initiator_released(struct bt_cap_stream *cap_stream);
25 void bt_cap_stream_ops_register_bap(struct bt_cap_stream *cap_stream);
139 bool bt_cap_common_stream_in_active_proc(const struct bt_cap_stream *cap_stream);
Dcap_initiator.c366 const struct bt_cap_stream *cap_stream = stream_param->stream; in valid_unicast_audio_start_param() local
397 CHECKIF(cap_stream == NULL) { in valid_unicast_audio_start_param()
402 bap_stream = &cap_stream->bap_stream; in valid_unicast_audio_start_param()
426 if (param->stream_params[j].stream == cap_stream) { in valid_unicast_audio_start_param()
431 i, cap_stream); in valid_unicast_audio_start_param()
497 struct bt_cap_stream *cap_stream = stream_param->stream; in cap_initiator_unicast_audio_configure() local
502 bt_cap_stream_ops_register_bap(cap_stream); in cap_initiator_unicast_audio_configure()
507 active_proc->proc_param.initiator[i].stream = cap_stream; in cap_initiator_unicast_audio_configure()
556 void bt_cap_initiator_codec_configured(struct bt_cap_stream *cap_stream) in bt_cap_initiator_codec_configured() argument
564 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_codec_configured()
[all …]
DCMakeLists.txt61 zephyr_library_sources_ifdef(CONFIG_BT_CAP cap_stream.c)
Dcap_common.c158 bool bt_cap_common_stream_in_active_proc(const struct bt_cap_stream *cap_stream) in bt_cap_common_stream_in_active_proc() argument
167 if (active_proc.proc_param.initiator[i].stream == cap_stream) { in bt_cap_common_stream_in_active_proc()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/
Dcommon.h147 static inline struct bt_bap_stream *bap_stream_from_cap_stream(struct bt_cap_stream *cap_stream) in bap_stream_from_cap_stream() argument
149 return &cap_stream->bap_stream; in bap_stream_from_cap_stream()
153 audio_test_stream_from_cap_stream(struct bt_cap_stream *cap_stream) in audio_test_stream_from_cap_stream() argument
155 return CONTAINER_OF(cap_stream, struct audio_test_stream, stream); in audio_test_stream_from_cap_stream()
Dcap_initiator_broadcast_test.c116 struct bt_cap_stream *cap_stream = cap_stream_from_audio_test_stream(test_stream); in broadcast_sent_cb() local
125 printk("[%zu]: Stream %p sent with seq_num %u\n", test_stream->tx_cnt, cap_stream, in broadcast_sent_cb()
143 ret = bt_cap_stream_send(cap_stream, buf, test_stream->seq_num++); in broadcast_sent_cb()
150 FAIL("Unable to broadcast data on %p: %d\n", cap_stream, ret); in broadcast_sent_cb()
526 struct bt_cap_stream *cap_stream = broadcast_streams[i]; in test_broadcast_audio_tx_sync() local
530 err = bt_cap_stream_get_tx_sync(cap_stream, &info); in test_broadcast_audio_tx_sync()
532 FAIL("Failed to get TX sync for stream[%zu]: %p: %d\n", i, cap_stream, err); in test_broadcast_audio_tx_sync()
537 printk("stream[%zu]: %p seq_num: %u\n", i, cap_stream, info.seq_num); in test_broadcast_audio_tx_sync()
539 FAIL("stream[%zu]: %p seq_num was 0\n", i, cap_stream); in test_broadcast_audio_tx_sync()
Dcap_initiator_unicast_test.c111 struct bt_cap_stream *cap_stream = cap_stream_from_bap_stream(stream); in unicast_stream_configured() local
116 non_idle_streams[i] = cap_stream; in unicast_stream_configured()
161 struct bt_cap_stream *cap_stream = cap_stream_from_bap_stream(stream); in unicast_stream_released() local
166 if (non_idle_streams[i] == cap_stream) { in unicast_stream_released()
Dgmap_ugg_test.c164 struct bt_cap_stream *cap_stream = cap_stream_from_audio_test_stream(test_stream); in stream_sent_cb() local
173 printk("[%zu]: Stream %p sent with seq_num %u\n", test_stream->tx_cnt, cap_stream, in stream_sent_cb()
191 ret = bt_cap_stream_send(cap_stream, buf, test_stream->seq_num++); in stream_sent_cb()
198 FAIL("Unable to broadcast data on %p: %d\n", cap_stream, ret); in stream_sent_cb()
/Zephyr-Core-3.6.0/tests/bluetooth/tester/src/
Dbtp_bap_audio_stream.h12 struct bt_cap_stream cap_stream; member
Dbtp_cap.c29 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()
211 bt_cap_stream_ops_register(&u_stream->audio_stream.cap_stream, stream->ops); in cap_unicast_setup_ase()
383 stream_param->stream = &u_stream->audio_stream.cap_stream; in btp_cap_unicast_audio_update()
Dbtp_bap_audio_stream.c38 return &stream->cap_stream.bap_stream; in audio_stream_to_bap_stream()
Dbtp_bap_broadcast.c41 struct btp_bap_audio_stream, cap_stream), struct btp_bap_broadcast_stream, in stream_bap_to_broadcast()
47 return &stream->audio_stream.cap_stream.bap_stream; in stream_broadcast_to_bap()
Dbtp_bap_unicast.c36 struct btp_bap_audio_stream, cap_stream), in stream_bap_to_unicast()
42 return &stream->audio_stream.cap_stream.bap_stream; in stream_unicast_to_bap()
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/
Dbap.c143 struct bt_cap_stream *cap_stream = in shell_stream_from_bap_stream() local
145 struct shell_stream *sh_stream = CONTAINER_OF(cap_stream, struct shell_stream, stream); in shell_stream_from_bap_stream()