Lines Matching refs:source_stream
170 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
366 source_stream->seq_num = 0U; in stream_started_cb()
367 source_stream->sent_cnt = 0U; in stream_started_cb()
376 struct broadcast_source_stream *source_stream = in stream_sent_cb()
379 send_data(source_stream); in stream_sent_cb()