Home
last modified time | relevance | path

Searched refs:source_stream (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/
Dmain.c170 static void send_data(struct broadcast_source_stream *source_stream) in send_data() argument
172 struct bt_bap_stream *stream = &source_stream->stream; in send_data()
190 if (source_stream->lc3_encoder == NULL) { in send_data()
197 uint32_t size = ring_buf_get(&source_stream->audio_ring_buf, (uint8_t *)send_pcm_data, in send_data()
208 ret = lc3_encode(source_stream->lc3_encoder, LC3_PCM_FORMAT_S16, send_pcm_data, 1, in send_data()
221 ret = bt_bap_stream_send(stream, buf, source_stream->seq_num++); in send_data()
229 source_stream->sent_cnt++; in send_data()
230 if ((source_stream->sent_cnt % 1000U) == 0U) { in send_data()
231 printk("Stream %p: Sent %u total ISO packets\n", stream, source_stream->sent_cnt); in send_data()
363 struct broadcast_source_stream *source_stream = in stream_started_cb() local
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_unicast_client_test.c745 struct bt_bap_stream *source_stream; in connect_streams() local
752 source_stream = pair_params[0].rx_param == NULL ? NULL : pair_params[0].rx_param->stream; in connect_streams()
767 if (source_stream != NULL) { in connect_streams()
768 const int err = connect_stream(source_stream); in connect_streams()
803 struct bt_bap_stream *source_stream; in start_streams() local
805 source_stream = pair_params[0].rx_param == NULL ? NULL : pair_params[0].rx_param->stream; in start_streams()
807 if (source_stream != NULL) { in start_streams()
808 const int err = start_stream(source_stream); in start_streams()
820 struct bt_bap_stream *source_stream; in transceive_streams() local
823 source_stream = pair_params[0].rx_param == NULL ? NULL : pair_params[0].rx_param->stream; in transceive_streams()
[all …]
Dbap_unicast_server_test.c304 struct bt_bap_stream *source_stream = NULL; in transceive_test_streams() local
336 } else if (info.dir == BT_AUDIO_DIR_SOURCE && source_stream == NULL) { in transceive_test_streams()
337 source_stream = stream; in transceive_test_streams()
341 if (source_stream != NULL) { in transceive_test_streams()
343 audio_test_stream_from_bap_stream(source_stream); in transceive_test_streams()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor.h20 struct bt_cap_stream source_stream; member
Dmain.c145 } else if (dir == BT_AUDIO_DIR_SOURCE && peer.source_stream.bap_stream.ep == NULL) { in stream_alloc()
146 return &peer.source_stream; in stream_alloc()
154 if (cap_stream == &peer.source_stream) { in stream_released()
196 if (peer.source_stream.bap_stream.ep != NULL) { in reset_cap_acceptor()
Dcap_acceptor_unicast.c360 struct bt_cap_stream *cap_stream = &peer->source_stream; in tx_thread_func()
440 bt_cap_stream_ops_register(&peer->source_stream, &unicast_stream_ops); in init_cap_acceptor_unicast()
/Zephyr-latest/samples/bluetooth/cap_initiator/src/
Dcap_initiator_unicast.c54 struct bt_cap_stream source_stream; member
167 if (stream == &peer.source_stream.bap_stream) { in unicast_stream_released_cb()
320 bt_cap_stream_ops_register(&peer.source_stream, &unicast_stream_ops); in discover_sources()
341 .stream = &peer.source_stream.bap_stream, in unicast_group_create()
460 stream_param[param.count].stream = &peer.source_stream; in unicast_audio_start()
771 if (peer.source_stream.bap_stream.ep != NULL) { in reset_cap_initiator()