Home
last modified time | relevance | path

Searched refs:sh_stream (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.7.0/subsys/bluetooth/audio/shell/
Dbap.c178 struct shell_stream *sh_stream = CONTAINER_OF(cap_stream, struct shell_stream, stream); in shell_stream_from_bap_stream() local
180 return sh_stream; in shell_stream_from_bap_stream()
183 struct bt_bap_stream *bap_stream_from_shell_stream(struct shell_stream *sh_stream) in bap_stream_from_shell_stream() argument
185 return &sh_stream->stream.bap_stream; in bap_stream_from_shell_stream()
193 void bap_foreach_stream(void (*func)(struct shell_stream *sh_stream, void *data), void *data) in bap_foreach_stream() argument
217 static int get_lc3_chan_alloc_from_index(const struct shell_stream *sh_stream, uint8_t index, in get_lc3_chan_alloc_from_index() argument
220 const bool has_left = (sh_stream->lc3_chan_allocation & BT_AUDIO_LOCATION_FRONT_LEFT) != 0; in get_lc3_chan_alloc_from_index()
222 (sh_stream->lc3_chan_allocation & BT_AUDIO_LOCATION_FRONT_RIGHT) != 0; in get_lc3_chan_alloc_from_index()
223 const bool is_mono = sh_stream->lc3_chan_allocation == BT_AUDIO_LOCATION_MONO_AUDIO; in get_lc3_chan_alloc_from_index()
255 struct shell_stream *sh_stream = shell_stream_from_bap_stream(bap_stream); in get_next_seq_num() local
[all …]
Dbap_usb.c327 size_t bap_usb_get_read_cnt(const struct shell_stream *sh_stream) in bap_usb_get_read_cnt() argument
329 return (USB_SAMPLE_CNT * sh_stream->lc3_frame_duration_us) / USEC_PER_MSEC; in bap_usb_get_read_cnt()
332 size_t bap_usb_get_frame_size(const struct shell_stream *sh_stream) in bap_usb_get_frame_size() argument
334 return USB_BYTES_PER_SAMPLE * bap_usb_get_read_cnt(sh_stream); in bap_usb_get_frame_size()
337 static void stream_cb(struct shell_stream *sh_stream, void *user_data) in stream_cb() argument
339 if (sh_stream->is_tx) { in stream_cb()
341 (sh_stream->lc3_chan_allocation & BT_AUDIO_LOCATION_FRONT_LEFT) != 0; in stream_cb()
343 (sh_stream->lc3_chan_allocation & BT_AUDIO_LOCATION_FRONT_RIGHT) != 0; in stream_cb()
345 const bool is_mono = sh_stream->lc3_chan_allocation == BT_AUDIO_LOCATION_MONO_AUDIO; in stream_cb()
352 read_idx = MIN(sh_stream->tx.left_read_idx, sh_stream->tx.right_read_idx); in stream_cb()
[all …]
Daudio.h158 void bap_foreach_stream(void (*func)(struct shell_stream *sh_stream, void *data), void *data);
167 struct bt_bap_stream *bap_stream_from_shell_stream(struct shell_stream *sh_stream);
168 bool bap_usb_can_get_full_sdu(struct shell_stream *sh_stream);
169 void bap_usb_get_frame(struct shell_stream *sh_stream, enum bt_audio_location chan_alloc,
171 size_t bap_usb_get_frame_size(const struct shell_stream *sh_stream);
Dcap_initiator.c668 static int set_codec_config(const struct shell *sh, struct shell_stream *sh_stream, in set_codec_config() argument
676 copy_unicast_stream_preset(sh_stream, preset); in set_codec_config()
714 sh_stream->qos.sdu *= chan_cnt; in set_codec_config()
723 err = bt_audio_codec_cfg_get_chan_allocation(&sh_stream->codec_cfg, &chan_alloc, false); in set_codec_config()
735 err = bt_audio_codec_cfg_set_chan_allocation(&sh_stream->codec_cfg, new_chan_alloc); in set_codec_config()