applications: nrf5340_audio: Implement USB feedback#26997
Draft
gWacey wants to merge 1 commit intonrfconnect:mainfrom
Draft
applications: nrf5340_audio: Implement USB feedback#26997gWacey wants to merge 1 commit intonrfconnect:mainfrom
gWacey wants to merge 1 commit intonrfconnect:mainfrom
Conversation
This is to control the rate of data received over the USB link, so as to prevent over- or under-runs within the audio system. Signed-off-by: Graham Wacey <graham.wacey@nordicsemi.no>
Contributor
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:more detailsGithub labels
List of changed files detected by CI (0)Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OCT-3572
This is to control the rate of data received over the USB link, so as to prevent over- or under-runs within the audio system.
The feedback module calculates the error between the USB clock and the nRF5340 audio DK clock. This is then used to generate a Q10.24 or Q16.16 samples per 1ms value, depending on the speed (fast or full) of the USB connection.
There is also now an overflow net-buff, this gives an overflow value in terms of bytes. This overflow is compared to user defined high and low tide values so as to trigger the calculation.
The code in this DRAFT PR builds but fails when it attempts to initialize the USB endpoints.