Home
last modified time | relevance | path

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

/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c340 static int lc3_enable(struct broadcast_sink_stream *sink_stream) in lc3_enable() argument
348 printk("Enable: stream with codec %p\n", sink_stream->stream.codec_cfg); in lc3_enable()
350 ret = bt_audio_codec_cfg_get_freq(sink_stream->stream.codec_cfg); in lc3_enable()
358 ret = bt_audio_codec_cfg_get_frame_dur(sink_stream->stream.codec_cfg); in lc3_enable()
366 ret = bt_audio_codec_cfg_get_chan_allocation(sink_stream->stream.codec_cfg, in lc3_enable()
367 &sink_stream->chan_allocation, true); in lc3_enable()
373 ret = bt_audio_codec_cfg_get_octets_per_frame(sink_stream->stream.codec_cfg); in lc3_enable()
375 sink_stream->lc3_octets_per_frame = (uint16_t)ret; in lc3_enable()
381 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(sink_stream->stream.codec_cfg, true); in lc3_enable()
383 sink_stream->lc3_frames_blocks_per_sdu = (uint8_t)ret; in lc3_enable()
[all …]
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor.h22 struct bt_cap_stream sink_stream; member
Dmain.c143 if (dir == BT_AUDIO_DIR_SINK && peer.sink_stream.bap_stream.ep == NULL) { in stream_alloc()
144 return &peer.sink_stream; in stream_alloc()
156 } else if (cap_stream == &peer.sink_stream) { in stream_released()
204 if (peer.sink_stream.bap_stream.ep != NULL) { in reset_cap_acceptor()
Dcap_acceptor_unicast.c441 bt_cap_stream_ops_register(&peer->sink_stream, &unicast_stream_ops); in init_cap_acceptor_unicast()
/Zephyr-latest/samples/bluetooth/cap_initiator/src/
Dcap_initiator_unicast.c56 struct bt_cap_stream sink_stream; member
169 } else if (stream == &peer.sink_stream.bap_stream) { in unicast_stream_released_cb()
296 bt_cap_stream_ops_register(&peer.sink_stream, &unicast_stream_ops); in discover_sinks()
345 .stream = &peer.sink_stream.bap_stream, in unicast_group_create()
452 stream_param[param.count].stream = &peer.sink_stream; in unicast_audio_start()
779 if (peer.sink_stream.bap_stream.ep != NULL) { in reset_cap_initiator()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_unicast_server_test.c305 struct bt_bap_stream *sink_stream = NULL; in transceive_test_streams() local
334 if (info.dir == BT_AUDIO_DIR_SINK && sink_stream == NULL) { in transceive_test_streams()
335 sink_stream = stream; in transceive_test_streams()
351 if (sink_stream != NULL) { in transceive_test_streams()
Dbap_unicast_client_test.c746 struct bt_bap_stream *sink_stream; in connect_streams() local
753 sink_stream = pair_params[0].tx_param == NULL ? NULL : pair_params[0].tx_param->stream; in connect_streams()
757 if (sink_stream != NULL) { in connect_streams()
758 const int err = connect_stream(sink_stream); in connect_streams()
821 struct bt_bap_stream *sink_stream; in transceive_streams() local
824 sink_stream = pair_params[0].tx_param == NULL ? NULL : pair_params[0].tx_param->stream; in transceive_streams()
826 if (sink_stream != NULL) { in transceive_streams()
828 audio_test_stream_from_bap_stream(sink_stream); in transceive_streams()