Home
last modified time | relevance | path

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

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_stream_rx.c21 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in log_stream_rx() local
24 test_stream->valid_rx_cnt, test_stream->rx_cnt, stream, buf->len, info->flags, in log_stream_rx()
31 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in bap_stream_rx_recv_cb() local
33 if ((test_stream->rx_cnt % 50U) == 0U) { in bap_stream_rx_recv_cb()
37 test_stream->rx_cnt++; in bap_stream_rx_recv_cb()
39 if (test_stream->valid_rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in bap_stream_rx_recv_cb()
41 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in bap_stream_rx_recv_cb()
45 if (test_stream->valid_rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in bap_stream_rx_recv_cb()
47 FAIL("Duplicated PSN received: %u\n", test_stream->last_info.seq_num); in bap_stream_rx_recv_cb()
55 if (test_stream->valid_rx_cnt > 0) { in bap_stream_rx_recv_cb()
[all …]
Dcommon.h190 cap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in cap_stream_from_audio_test_stream() argument
192 return &test_stream->stream; in cap_stream_from_audio_test_stream()
196 bap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in bap_stream_from_audio_test_stream() argument
198 return bap_stream_from_cap_stream(cap_stream_from_audio_test_stream(test_stream)); in bap_stream_from_audio_test_stream()
Dbap_stream_tx.c204 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in bap_stream_tx_sent_cb() local
206 if ((test_stream->tx_cnt % 100U) == 0U) { in bap_stream_tx_sent_cb()
207 LOG_INF("Stream %p sent %zu SDUs", stream, test_stream->tx_cnt); in bap_stream_tx_sent_cb()
210 test_stream->tx_cnt++; in bap_stream_tx_sent_cb()
Dgmap_ugt_test.c86 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in unicast_stream_started_cb() local
88 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in unicast_stream_started_cb()
89 test_stream->rx_cnt = 0U; in unicast_stream_started_cb()
90 test_stream->valid_rx_cnt = 0U; in unicast_stream_started_cb()
91 test_stream->seq_num = 0U; in unicast_stream_started_cb()
92 test_stream->tx_cnt = 0U; in unicast_stream_started_cb()
Dpbp_public_broadcast_sink_test.c98 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
100 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in started_cb()
101 test_stream->rx_cnt = 0U; in started_cb()
102 test_stream->valid_rx_cnt = 0U; in started_cb()
Dcap_acceptor_test.c278 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
280 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in started_cb()
281 test_stream->rx_cnt = 0U; in started_cb()
282 test_stream->valid_rx_cnt = 0U; in started_cb()
283 test_stream->seq_num = 0U; in started_cb()
284 test_stream->tx_cnt = 0U; in started_cb()
329 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in unicast_stream_started() local
331 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in unicast_stream_started()
332 test_stream->rx_cnt = 0U; in unicast_stream_started()
333 test_stream->valid_rx_cnt = 0U; in unicast_stream_started()
[all …]
Dbap_broadcast_source_test.c179 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_started_cb() local
183 test_stream->seq_num = 0U; in stream_started_cb()
184 test_stream->tx_cnt = 0U; in stream_started_cb()
316 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in setup_broadcast_source() local
318 test_stream->tx_sdu_size = preset_16_1_1.qos.sdu; in setup_broadcast_source()
436 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_broadcast_source_reconfig() local
438 test_stream->tx_sdu_size = preset_16_1_1.qos.sdu; in test_broadcast_source_reconfig()
Dpbp_public_broadcast_source_test.c67 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in started_cb() local
70 test_stream->seq_num = 0U; in started_cb()
71 test_stream->tx_cnt = 0U; in started_cb()
Dcap_initiator_broadcast_test.c101 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in broadcast_stream_started_cb() local
104 test_stream->seq_num = 0U; in broadcast_stream_started_cb()
105 test_stream->tx_cnt = 0U; in broadcast_stream_started_cb()
391 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_broadcast_audio_create() local
393 test_stream->tx_sdu_size = create_param.qos->sdu; in test_broadcast_audio_create()
811 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in test_cap_initiator_ac() local
813 test_stream->tx_sdu_size = create_param.qos->sdu; in test_cap_initiator_ac()
Dbap_unicast_server_test.c140 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in lc3_qos() local
146 test_stream->tx_sdu_size = qos->sdu; in lc3_qos()
329 struct audio_test_stream *test_stream = in transceive_test_streams() local
333 while (test_stream->tx_cnt < MIN_SEND_COUNT) { in transceive_test_streams()
Dgmap_ugg_test.c183 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_started_cb() local
185 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in stream_started_cb()
186 test_stream->rx_cnt = 0U; in stream_started_cb()
187 test_stream->valid_rx_cnt = 0U; in stream_started_cb()
188 test_stream->seq_num = 0U; in stream_started_cb()
189 test_stream->tx_cnt = 0U; in stream_started_cb()
1218 struct audio_test_stream *test_stream = &broadcast_streams[i]; in test_gmap_ugg_broadcast_ac() local
1220 test_stream->tx_sdu_size = create_param.qos->sdu; in test_gmap_ugg_broadcast_ac()
Dbap_broadcast_sink_test.c566 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_started_cb() local
570 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in stream_started_cb()
571 test_stream->rx_cnt = 0U; in stream_started_cb()
572 test_stream->valid_rx_cnt = 0U; in stream_started_cb()
Dcap_initiator_unicast_test.c169 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in unicast_stream_started() local
171 memset(&test_stream->last_info, 0, sizeof(test_stream->last_info)); in unicast_stream_started()
172 test_stream->rx_cnt = 0U; in unicast_stream_started()
173 test_stream->valid_rx_cnt = 0U; in unicast_stream_started()
174 test_stream->seq_num = 0U; in unicast_stream_started()
175 test_stream->tx_cnt = 0U; in unicast_stream_started()
Dbap_unicast_client_test.c83 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_qos_set() local
87 test_stream->tx_sdu_size = stream->qos->sdu; in stream_qos_set()
825 struct audio_test_stream *test_stream = in transceive_streams() local
829 while (test_stream->tx_cnt < MIN_SEND_COUNT) { in transceive_streams()
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_control_params.c372 static struct bt_bap_stream test_stream; variable
383 *stream = &test_stream; in unicast_server_cb_config_custom_fake()