Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: BAP: Shell: Add USB out support for the BAP shell #69557

Closed
wants to merge 6 commits into from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Feb 28, 2024

Add USB out support for the BAP shell, so that decoded LC3 data can be sent to the host (e.g. a PC).

fixes #65640

Modify the broadcast_sink_streams to be an array of shell_stream
instead of bt_bap_stream, so that it can be used in a similar way
as the rest of the streams.

To help the transition, a new helper function,
bap_stream_from_shell_stream, was added.

Signed-off-by: Emil Gydesen <[email protected]>
Similar to the can_send, the can_recv field indicates whether
or not this endpoint can receive data.

This commit also slightly refactors and optimized how the
can_send field is set.

Signed-off-by: Emil Gydesen <[email protected]>
The codec configuration data from the BIS in the BASE was not
properly copied to the stream->codec_cfg, and thus it only
contained the subgroup codec configuration values.

This commit fixes that by first copying the subgroup codec
configuration to the stream, and then setting or overwriting
any fields (if they exist).

This requires that each stream have their own codec configuration
struct allocated, so this will slightly increase memory usage.

This also adds verification of the SDU size from the BIGInfo
in the ISO receive callback.

Signed-off-by: Emil Gydesen <[email protected]>
Add support for decoding incoming LC3 data. At this point
we only instantiate a single LC3 decoder, so only one frequency
and duration is supported.

Signed-off-by: Emil Gydesen <[email protected]>
The current implementation always expected this value to be 1,
but it may in fact become non-1, in which case both the
encoding and decoding would not work correctly.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the bap_shell_usb_out branch 3 times, most recently from bcb0fbd to 421811b Compare March 4, 2024 12:17
Add USB out support for the BAP shell, so that decoded LC3
data can be sent to the host (e.g. a PC).

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley closed this Mar 11, 2024
@Thalley Thalley deleted the bap_shell_usb_out branch July 10, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BLE Audio not heard from nRF5340 Audio DK using Zephyr Shell application.
1 participant