Home
last modified time | relevance | path

Searched refs:streams (Results 1 – 25 of 89) sorted by relevance

1234

/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/
Dtest_unicast_stop.c61 sys_slist_append(&fixture->unicast_group.streams, &bap_stream->_node); in cap_initiator_test_unicast_stop_fixture_init()
113 struct bt_cap_stream *streams[CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT] = {0}; in ZTEST_F() local
116 .count = ARRAY_SIZE(streams), in ZTEST_F()
117 .streams = streams, in ZTEST_F()
122 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F()
123 streams[i] = &fixture->cap_streams[i]; in ZTEST_F()
125 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F()
136 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F()
148 struct bt_cap_stream *streams[CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT] = {0}; in ZTEST_F() local
151 .count = ARRAY_SIZE(streams), in ZTEST_F()
[all …]
/Zephyr-latest/samples/drivers/audio/dmic/src/
Dmain.c38 cfg->streams[0].pcm_rate, cfg->channel.req_num_chan); in do_pdm_transfer()
103 .streams = &stream, in main()
112 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main()
113 cfg.streams[0].block_size = in main()
114 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
125 cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in main()
126 cfg.streams[0].block_size = in main()
127 BLOCK_SIZE(cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
/Zephyr-latest/tests/drivers/audio/dmic_api/src/
Dmain.c63 .streams = &pcm_stream,
89 cfg->streams[0].pcm_rate, cfg->channel.req_num_chan); in do_pdm_transfer()
143 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
144 dmic_cfg.streams[0].block_size = in ZTEST()
145 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
158 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
159 dmic_cfg.streams[0].block_size = in ZTEST()
160 BLOCK_SIZE(dmic_cfg.streams[0].pcm_rate, in ZTEST()
192 dmic_cfg.streams[0].pcm_rate = MAX_SAMPLE_RATE; in ZTEST()
193 dmic_cfg.streams[0].block_size = in ZTEST()
[all …]
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/
Dmain.c146 } streams[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; variable
280 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
282 streams[i].lc3_encoder = lc3_setup_encoder(frame_duration_us, freq_hz, 0, in init_lc3_thread()
283 &streams[i].lc3_encoder_mem); in init_lc3_thread()
285 if (streams[i].lc3_encoder == NULL) { in init_lc3_thread()
291 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
294 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init_lc3_thread()
295 send_data(&streams[i]); in init_lc3_thread()
371 for (size_t i = 0U; i < MIN(ARRAY_SIZE(streams), 2); i++) { in data_recv_cb()
373 ring_buf_put(&(streams[i].audio_ring_buf), (uint8_t *)(usb_pcm_data[i]), in data_recv_cb()
[all …]
/Zephyr-latest/drivers/audio/
Dmpxxdtyy-i2s.c99 uint8_t chan_size = cfg->streams->pcm_width; in mpxxdtyy_i2s_configure()
100 uint32_t audio_freq = cfg->streams->pcm_rate; in mpxxdtyy_i2s_configure()
104 data->pcm_mem_slab = cfg->streams->mem_slab; in mpxxdtyy_i2s_configure()
105 data->pcm_mem_size = cfg->streams->block_size; in mpxxdtyy_i2s_configure()
/Zephyr-latest/samples/drivers/i2s/i2s_codec/src/
Dmain.c88 .streams = &stream, in main()
130 cfg.streams[0].pcm_rate = SAMPLE_FREQUENCY; in main()
131 cfg.streams[0].block_size = BLOCK_SIZE; in main()
134 cfg.streams[0].pcm_rate, cfg.channel.req_num_chan); in main()
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_sink/src/
Dmain.c77 static struct bt_bap_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; variable
78 struct bt_bap_stream *streams_p[ARRAY_SIZE(streams)];
88 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U);
341 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in bap_broadcast_sink_init()
342 streams[i].ops = &stream_ops; in bap_broadcast_sink_init()
346 streams_p[i] = &streams[i]; in bap_broadcast_sink_init()
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dbap_broadcast_sink.c67 static struct bt_bap_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; variable
68 struct bt_bap_stream *streams_p[ARRAY_SIZE(streams)];
78 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U);
337 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in bap_broadcast_sink_init()
338 streams[i].ops = &stream_ops; in bap_broadcast_sink_init()
342 streams_p[i] = &streams[i]; in bap_broadcast_sink_init()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_sink_test.c60 static struct bt_bap_stream *streams[ARRAY_SIZE(broadcast_sink_streams)]; variable
84 static K_SEM_DEFINE(sem_stream_started, 0U, ARRAY_SIZE(streams));
85 static K_SEM_DEFINE(sem_stream_stopped, 0U, ARRAY_SIZE(streams));
91 static const uint32_t bis_index_mask = BIT_MASK(ARRAY_SIZE(streams) + 1U);
691 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in init()
692 streams[i] = bap_stream_from_audio_test_stream(&broadcast_sink_streams[i]); in init()
693 bt_bap_stream_cb_register(streams[i], &stream_ops); in init()
798 err = bt_bap_broadcast_sink_sync(g_sink, bis_index_bitfield, streams, broadcast_code); in test_broadcast_sync()
809 struct bt_bap_stream *tmp_streams[ARRAY_SIZE(streams) + 1] = {0}; in test_broadcast_sync_inval()
813 err = bt_bap_broadcast_sink_sync(NULL, bis_index_bitfield, streams, NULL); in test_broadcast_sync_inval()
[all …]
/Zephyr-latest/doc/services/debugging/
Dcs_trace_defmt.rst6 Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a
9 buffer where data from various trace streams can be saved. Typically tracing data is
/Zephyr-latest/samples/drivers/i2s/echo/
DREADME.rst11 an audio stream. It configures and starts both the RX and TX streams and then
23 streams.
47 Press Button 1 to toggle the echo effect and Button 2 to stop the streams.
DKconfig16 bool "Start/stop I2S streams when pressing sw1"
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dmain.c51 static struct bt_bap_stream streams[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT + variable
518 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in init()
519 streams[i].ops = &stream_ops; in init()
630 struct bt_bap_stream *stream = &streams[i]; in configure_streams()
649 struct bt_bap_stream *stream = &streams[i + configured_sink_stream_count]; in configure_streams()
679 stream_params[i].stream = &streams[i]; in create_group()
750 err = bt_bap_stream_enable(&streams[i], codec_configuration.codec_cfg.meta, in enable_streams()
774 err = bt_bap_stream_connect(&streams[i]); in connect_streams()
812 struct bt_bap_stream *stream = &streams[i]; in start_streams()
816 err = bt_bap_stream_start(&streams[i]); in start_streams()
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c45 static struct bt_bap_stream streams[CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT + variable
124 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in stream_alloc()
125 struct bt_bap_stream *stream = &streams[i]; in stream_alloc()
422 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in bap_unicast_sr_init()
423 bt_bap_stream_cb_register(&streams[i], &stream_ops); in bap_unicast_sr_init()
/Zephyr-latest/tests/bluetooth/audio/mocks/include/
Dbap_stream_expects.h120 static inline void expect_bt_bap_stream_ops_released_called(const struct bt_bap_stream *streams[], in expect_bt_bap_stream_ops_released_called() argument
131 found = streams[i] == mock_bap_stream_released_cb_fake.arg0_history[j]; in expect_bt_bap_stream_ops_released_called()
137 zexpect_true(found, "'%s()' not called with %p stream", func_name, streams[i]); in expect_bt_bap_stream_ops_released_called()
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dbap_unicast_sr.c43 static struct bt_bap_stream streams[CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT + variable
202 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in stream_alloc()
203 struct bt_bap_stream *stream = &streams[i]; in stream_alloc()
461 for (size_t i = 0; i < ARRAY_SIZE(streams); i++) { in bap_unicast_sr_init()
462 bt_bap_stream_cb_register(&streams[i], &stream_ops); in bap_unicast_sr_init()
/Zephyr-latest/drivers/dma/
Ddma_stm32.c97 stream = &config->streams[id]; in dma_stm32_irq_handler()
277 &dev_config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_configure()
529 stream = &config->streams[id]; in dma_stm32_reload()
585 stream = &config->streams[id]; in dma_stm32_start()
597 struct dma_stm32_stream *stream = &config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_stop()
654 config->streams[i].busy = false; in dma_stm32_init()
657 config->streams[i].mux_channel = i + config->offset; in dma_stm32_init()
681 stream = &config->streams[id]; in dma_stm32_get_status()
709 .streams = dma_stm32_streams_##index, \
Ddma_stm32u5.c256 stream = &config->streams[id]; in dma_stm32_irq_handler()
351 &dev_config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_configure()
561 stream = &config->streams[id]; in dma_stm32_reload()
605 stream = &config->streams[id]; in dma_stm32_start()
659 struct dma_stm32_stream *stream = &config->streams[id - STM32_DMA_STREAM_OFFSET]; in dma_stm32_stop()
707 config->streams[i].busy = false; in dma_stm32_init()
730 stream = &config->streams[id]; in dma_stm32_get_status()
811 .streams = dma_stm32_streams_##index, \
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_broadcast_source.c44 sys_slist_t streams; member
134 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state()
288 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup()
344 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in encode_base_subgroup()
461 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&subgroup->streams, stream, next_stream, _node) { in broadcast_source_cleanup()
469 sys_slist_remove(&subgroup->streams, NULL, &stream->_node); in broadcast_source_cleanup()
615 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_get_state()
795 sys_slist_append(&subgroup->streams, &stream->_node); in bt_bap_broadcast_source_create()
855 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_reconfig()
867 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, subgroup_stream, _node) { in bt_bap_broadcast_source_reconfig()
[all …]
Dbap_endpoint.h96 sys_slist_t streams; member
190 sys_slist_t streams; member
DKconfig.bap94 Since BAP streams are unidirectional, two BAP streams may use a single CIS, the number of
95 BAP audio streams per group may be up to twice of this value.
144 One broadcast source can send multiple streams
154 This option sets the maximum number of streams per broadcast source
185 One broadcast sink can receive multiple streams
195 This option sets the maximum number of streams per broadcast sink
/Zephyr-latest/lib/posix/options/
DKconfig.xsi_streams6 bool "X/Open streams"
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cap.c330 for (size_t i = 0; i < ARRAY_SIZE(u_conn->streams); i++) { in btp_cap_unicast_audio_start()
332 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_start()
432 *streams[ARRAY_SIZE(btp_csip_set_members) * BTP_BAP_UNICAST_MAX_STREAMS_COUNT]; in btp_cap_unicast_audio_stop() local
449 for (size_t i = 0; i < ARRAY_SIZE(u_conn->streams); i++) { in btp_cap_unicast_audio_stop()
450 struct btp_bap_unicast_stream *u_stream = &u_conn->streams[i]; in btp_cap_unicast_audio_stop()
456 streams[stream_cnt++] = stream_unicast_to_cap(u_stream); in btp_cap_unicast_audio_stop()
460 param.streams = streams; in btp_cap_unicast_audio_stop()
656 for (size_t i = 0; i < ARRAY_SIZE(source->streams); i++) { in btp_cap_broadcast_source_setup()
657 struct btp_bap_broadcast_stream *stream = &source->streams[i]; in btp_cap_broadcast_source_setup()
Dbtp_bap_broadcast.h32 struct btp_bap_broadcast_stream streams[CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT]; member
51 struct btp_bap_broadcast_stream streams[CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT]; member
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http2.c70 ARRAY_FOR_EACH(client->streams, i) { in find_http_stream_context()
71 if (client->streams[i].stream_id == stream_id) { in find_http_stream_context()
72 return &client->streams[i]; in find_http_stream_context()
82 ARRAY_FOR_EACH(client->streams, i) { in allocate_http_stream_context()
83 if (client->streams[i].stream_state == HTTP2_STREAM_IDLE) { in allocate_http_stream_context()
84 client->streams[i].stream_id = stream_id; in allocate_http_stream_context()
85 client->streams[i].stream_state = HTTP2_STREAM_OPEN; in allocate_http_stream_context()
86 client->streams[i].window_size = in allocate_http_stream_context()
88 client->streams[i].headers_sent = false; in allocate_http_stream_context()
89 client->streams[i].end_stream_sent = false; in allocate_http_stream_context()
[all …]

1234