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

samples: Bluetooth: BAP: Broadcast sink use new USB stack #84359

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Jan 22, 2025

Refactor the USB of the BAP broadcast sink to use the new
USB stack.

Fixes #83054

@Thalley Thalley force-pushed the broadcast_sink_new_usb branch 5 times, most recently from 344781a to 0c74509 Compare January 22, 2025 13:13
@Thalley Thalley changed the title Broadcast sink new usb samples: Bluetooth: BAP: Broadcast sink use new USB stack Jan 22, 2025
@Thalley Thalley force-pushed the broadcast_sink_new_usb branch 6 times, most recently from 2849e0e to 7f4ab01 Compare January 25, 2025 19:02
@Thalley Thalley self-assigned this Jan 25, 2025
@Thalley Thalley force-pushed the broadcast_sink_new_usb branch from 7f4ab01 to 94b3ac6 Compare January 27, 2025 11:33
@Thalley Thalley force-pushed the broadcast_sink_new_usb branch 3 times, most recently from 47bf2c0 to 98a937c Compare January 30, 2025 09:20
Comment on lines 20 to 29
uac_aclk: aclk {
compatible = "zephyr,uac2-clock-source";
clock-type = "internal-programmable";
frequency-control = "read-only";
sampling-frequencies = <48000>;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like in case of broadcast source, it would be good to have sof-synchronized; with appropriate comment here (the code does not actively decide when to send +-1 nominal samples to keep audio frames synchronized to SOF; in other words the code currently always sends fixed number of samples).

We certainly should not claim to be asynchronous audio when we are doing things "the old way". Just falsely claiming Synchronous audio is probably better because the Asynchronous audio has higher end-user expectations in general.

Refactor everything related to RX in the sample.
The existing code will moved to new files with more specific
functionality, so that each file will become cleaner and use
fewer #ifdefs.

The USB part will be refactored a bit to follow the design used
by the LE audio shell, to make it easier to maintain both in
a similar way.

Signed-off-by: Emil Gydesen <[email protected]>
Refactor the USB of the BAP broadcast sink to use the new
USB stack.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the broadcast_sink_new_usb branch from 98a937c to 7886c62 Compare February 3, 2025 13:53
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.

Bluetooth: BAP: Update BAP broadcast sink sample to new USB API
2 participants