Home
last modified time | relevance | path

Searched refs:octets_per_frame (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dstream_lc3.c123 lc3_tx->octets_per_frame = (uint16_t)ret; in extract_lc3_config()
135 const uint16_t octets_per_frame = stream->lc3_tx.octets_per_frame; in encode_frame() local
142 octets_per_frame, net_buf_tail(out_buf)); in encode_frame()
149 out_buf->len += octets_per_frame; in encode_frame()
Dstream_lc3.h26 uint16_t octets_per_frame; member
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_broadcast_sink_test.c101 uint16_t octets_per_frame; in valid_base_subgroup() local
160 octets_per_frame = (uint16_t)ret; in valid_base_subgroup()
167 if (!IN_RANGE(octets_per_frame, SUPPORTED_MIN_OCTETS_PER_FRAME, in valid_base_subgroup()
169 printk("Unsupported octets per frame: %u\n", octets_per_frame); in valid_base_subgroup()
186 min_sdu_size_required = chan_cnt * octets_per_frame * frames_blocks_per_sdu; in valid_base_subgroup()
190 chan_cnt, octets_per_frame, frames_blocks_per_sdu, min_sdu_size_required, in valid_base_subgroup()
453 uint16_t octets_per_frame; in validate_stream_codec_cfg() local
513 octets_per_frame = (uint16_t)ret; in validate_stream_codec_cfg()
520 if (!IN_RANGE(octets_per_frame, SUPPORTED_MIN_OCTETS_PER_FRAME, in validate_stream_codec_cfg()
522 FAIL("Unsupported octets per frame: %u\n", octets_per_frame); in validate_stream_codec_cfg()
[all …]
Dbap_broadcast_source_test.c66 uint16_t octets_per_frame; in validate_stream_codec_cfg() local
131 octets_per_frame = (uint16_t)ret; in validate_stream_codec_cfg()
138 if (!IN_RANGE(octets_per_frame, SUPPORTED_MIN_OCTETS_PER_FRAME, in validate_stream_codec_cfg()
140 FAIL("Unsupported octets per frame: %u\n", octets_per_frame); in validate_stream_codec_cfg()
157 min_sdu_size_required = chan_cnt * octets_per_frame * frames_blocks_per_sdu; in validate_stream_codec_cfg()
161 chan_cnt, octets_per_frame, frames_blocks_per_sdu, min_sdu_size_required, in validate_stream_codec_cfg()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c167 static void do_lc3_decode(lc3_decoder_t decoder, const void *in_data, uint8_t octets_per_frame,
196 const uint16_t octets_per_frame = stream->lc3_octets_per_frame; in lc3_decoder_thread() local
215 (frames_per_block * octets_per_frame * frames_blocks_per_sdu)) { in lc3_decoder_thread()
218 frames_blocks_per_sdu, frames_per_block, octets_per_frame, in lc3_decoder_thread()
240 const void *data = net_buf_pull_mem(buf, octets_per_frame); in lc3_decoder_thread()
255 do_lc3_decode(stream->lc3_decoder, data, octets_per_frame, in lc3_decoder_thread()
263 const void *data = net_buf_pull_mem(buf, octets_per_frame); in lc3_decoder_thread()
265 do_lc3_decode(stream->lc3_decoder, data, octets_per_frame, in lc3_decoder_thread()
327 static void do_lc3_decode(lc3_decoder_t decoder, const void *in_data, uint8_t octets_per_frame, in do_lc3_decode() argument
332 err = lc3_decode(decoder, in_data, octets_per_frame, LC3_PCM_FORMAT_S16, out_data, 1); in do_lc3_decode()
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/
Dmain.c165 static int octets_per_frame; variable
209 octets_per_frame, lc3_encoded_buffer); in send_data()
256 octets_per_frame = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in init_lc3_thread()
269 if (octets_per_frame < 0) { in init_lc3_thread()
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/
Dmain.c513 const int octets_per_frame = buf->len / frames_per_sdu; in stream_recv_lc3_codec() local
527 lc3_decoder, valid_data ? net_buf_pull_mem(buf, octets_per_frame) : NULL, in stream_recv_lc3_codec()
528 octets_per_frame, LC3_PCM_FORMAT_S16, audio_buf, 1); in stream_recv_lc3_codec()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_bap.h193 uint32_t octets_per_frame; member
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap.c372 const uint16_t octets_per_frame = sh_stream->lc3_octets_per_frame; in encode_frame() local
395 sh_stream->tx.encoded_cnt, octets_per_frame, frame_cnt + 1, in encode_frame()
400 octets_per_frame, net_buf_tail(out_buf)); in encode_frame()
407 out_buf->len += octets_per_frame; in encode_frame()
2653 const uint16_t octets_per_frame = sh_stream->lc3_octets_per_frame; in decode_frame() local
2667 iso_data = net_buf_pull_mem(data->buf, octets_per_frame); in decode_frame()
2671 sh_stream->rx.decoded_cnt, octets_per_frame, frame_cnt + 1, in decode_frame()
2676 err = lc3_decode(sh_stream->rx.lc3_decoder, iso_data, octets_per_frame, LC3_PCM_FORMAT_S16, in decode_frame()
2680 total_frames, octets_per_frame * frame_cnt, buf->len); in decode_frame()
2836 const uint16_t octets_per_frame = sh_stream->lc3_octets_per_frame; in audio_recv() local
[all …]
Daudio.h662 uint16_t octets_per_frame) in print_codec_cfg_octets_per_frame() argument
664 shell_print(sh, "%*sOctets per codec frame: %u", indent, "", octets_per_frame); in print_codec_cfg_octets_per_frame()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_unicast.c248 memcpy(&ev.octets_per_frame, data, sizeof(ev.octets_per_frame)); in btp_send_pac_codec_found_ev()
281 int octets_per_frame; in validate_codec_parameters() local
288 octets_per_frame = bt_audio_codec_cfg_get_octets_per_frame(codec_cfg); in validate_codec_parameters()
303 if (octets_per_frame < 0) { in validate_codec_parameters()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Daudio.h981 uint16_t octets_per_frame);
/Zephyr-latest/subsys/bluetooth/audio/
Dcodec.c507 uint16_t octets_per_frame) in bt_audio_codec_cfg_set_octets_per_frame() argument
511 octets_per_frame_le16 = sys_cpu_to_le16(octets_per_frame); in bt_audio_codec_cfg_set_octets_per_frame()