Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/tests/bsim/bluetooth/audio/src/
Dbap_unicast_server_test.c156 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in lc3_qos() local
162 test_stream->tx_sdu_size = qos->sdu; in lc3_qos()
205 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in lc3_disable() local
209 test_stream->tx_active = false; in lc3_disable()
274 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_recv_cb() local
276 if ((test_stream->rx_cnt % 100U) == 0U) { in stream_recv_cb()
277 printk("[%zu]: Incoming audio on stream %p len %u and ts %u\n", test_stream->rx_cnt, in stream_recv_cb()
281 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in stream_recv_cb()
282 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in stream_recv_cb()
286 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in stream_recv_cb()
[all …]
Dbap_broadcast_source_test.c225 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_sent_cb() local
229 if (!test_stream->tx_active) { in stream_sent_cb()
233 if ((test_stream->tx_cnt % 100U) == 0U) { in stream_sent_cb()
234 printk("Sent with seq_num %u\n", test_stream->seq_num); in stream_sent_cb()
245 net_buf_add_mem(buf, mock_iso_data, test_stream->tx_sdu_size); in stream_sent_cb()
246 ret = bt_bap_stream_send(stream, buf, test_stream->seq_num++); in stream_sent_cb()
252 if (test_stream->tx_active) { in stream_sent_cb()
259 test_stream->tx_cnt++; in stream_sent_cb()
315 struct audio_test_stream *test_stream = &broadcast_source_streams[i]; in setup_broadcast_source() local
317 test_stream->tx_sdu_size = preset_16_1_1.qos.sdu; in setup_broadcast_source()
[all …]
Dcap_initiator_broadcast_test.c130 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(bap_stream); in broadcast_sent_cb() local
131 struct bt_cap_stream *cap_stream = cap_stream_from_audio_test_stream(test_stream); in broadcast_sent_cb()
135 if (!test_stream->tx_active) { in broadcast_sent_cb()
139 if ((test_stream->tx_cnt % 100U) == 0U) { in broadcast_sent_cb()
140 printk("[%zu]: Stream %p sent with seq_num %u\n", test_stream->tx_cnt, cap_stream, in broadcast_sent_cb()
141 test_stream->seq_num); in broadcast_sent_cb()
144 if (test_stream->tx_sdu_size > CONFIG_BT_ISO_TX_MTU) { in broadcast_sent_cb()
145 FAIL("Invalid SDU %u for the MTU: %d", test_stream->tx_sdu_size, in broadcast_sent_cb()
157 net_buf_add_mem(buf, mock_iso_data, test_stream->tx_sdu_size); in broadcast_sent_cb()
158 ret = bt_cap_stream_send(cap_stream, buf, test_stream->seq_num++); in broadcast_sent_cb()
[all …]
Dcommon.h167 cap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in cap_stream_from_audio_test_stream() argument
169 return &test_stream->stream; in cap_stream_from_audio_test_stream()
173 bap_stream_from_audio_test_stream(struct audio_test_stream *test_stream) in bap_stream_from_audio_test_stream() argument
175 return bap_stream_from_cap_stream(cap_stream_from_audio_test_stream(test_stream)); in bap_stream_from_audio_test_stream()
Dbap_unicast_client_test.c90 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_qos_set() local
94 test_stream->tx_sdu_size = stream->qos->sdu; in stream_qos_set()
136 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_disabled() local
138 test_stream->tx_active = false; in stream_disabled()
162 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in stream_recv_cb() local
164 if ((test_stream->rx_cnt % 100U) == 0U) { in stream_recv_cb()
165 printk("[%zu]: Incoming audio on stream %p len %u and ts %u\n", test_stream->rx_cnt, in stream_recv_cb()
169 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in stream_recv_cb()
170 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in stream_recv_cb()
174 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in stream_recv_cb()
[all …]
Dbap_broadcast_sink_test.c560 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in recv_cb() local
562 if ((test_stream->rx_cnt % 100U) == 0U) { in recv_cb()
563 printk("[%zu]: Incoming audio on stream %p len %u and ts %u\n", test_stream->rx_cnt, in recv_cb()
567 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in recv_cb()
568 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in recv_cb()
572 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in recv_cb()
573 FAIL("Duplicated PSN received: %u\n", test_stream->last_info.seq_num); in recv_cb()
592 test_stream->rx_cnt++; in recv_cb()
594 if (test_stream->rx_cnt >= MIN_SEND_COUNT) { in recv_cb()
Dcap_acceptor_test.c300 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(stream); in recv_cb() local
302 if ((test_stream->rx_cnt % 50U) == 0U) { in recv_cb()
303 printk("[%zu]: Incoming audio on stream %p len %u and ts %u\n", test_stream->rx_cnt, in recv_cb()
307 if (test_stream->rx_cnt > 0U && info->ts == test_stream->last_info.ts) { in recv_cb()
308 FAIL("Duplicated timestamp received: %u\n", test_stream->last_info.ts); in recv_cb()
312 if (test_stream->rx_cnt > 0U && info->seq_num == test_stream->last_info.seq_num) { in recv_cb()
313 FAIL("Duplicated PSN received: %u\n", test_stream->last_info.seq_num); in recv_cb()
332 test_stream->rx_cnt++; in recv_cb()
334 if (test_stream->rx_cnt >= MIN_SEND_COUNT) { in recv_cb()
Dgmap_ugg_test.c183 struct audio_test_stream *test_stream = audio_test_stream_from_bap_stream(bap_stream); in stream_sent_cb() local
184 struct bt_cap_stream *cap_stream = cap_stream_from_audio_test_stream(test_stream); in stream_sent_cb()
188 if (!test_stream->tx_active) { in stream_sent_cb()
192 if ((test_stream->tx_cnt % 100U) == 0U) { in stream_sent_cb()
193 printk("[%zu]: Stream %p sent with seq_num %u\n", test_stream->tx_cnt, cap_stream, in stream_sent_cb()
194 test_stream->seq_num); in stream_sent_cb()
197 if (test_stream->tx_sdu_size > CONFIG_BT_ISO_TX_MTU) { in stream_sent_cb()
198 FAIL("Invalid SDU %u for the MTU: %d", test_stream->tx_sdu_size, in stream_sent_cb()
210 net_buf_add_mem(buf, mock_iso_data, test_stream->tx_sdu_size); in stream_sent_cb()
211 ret = bt_cap_stream_send(cap_stream, buf, test_stream->seq_num++); in stream_sent_cb()
[all …]
/Zephyr-Core-3.7.0/tests/bluetooth/audio/ascs/src/
Dtest_ase_control_params.c347 static struct bt_bap_stream test_stream; variable
358 *stream = &test_stream; in unicast_server_cb_config_custom_fake()