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

Extending sw_pll to monitor PFD error stability not possible due to host cycling through SRs in dig Rx config #366

Open
ed-xmos opened this issue Jan 26, 2024 · 0 comments

Comments

@ed-xmos
Copy link
Contributor

ed-xmos commented Jan 26, 2024

The MAC host cycles through SRs to check clock validity for each of the supported SRs.
When using a digital receive the sw_pll PI controller clearly cannot converge due to the received sample rate of dig rx not matching the selected sample rate.
@xross says that currently we use a delay to assume the CS2100 is locked but with sw_pll we can measure the raw error to see when it has locked (it will tend to zero). This method would allow a reliable way of knowing when to release Audio and ensure no buffer ends are hit. It works for sync mode but cannot currently work for dig rx due to this SR cycling by the host.
It would need extra logic to disable waiting for the error to converge unless dig rx SR == selected SR.

The WIP code for this feature can be found here #365

@ed-xmos ed-xmos changed the title Extending sw_pll use to monitor PFD error stability not possible due to host cycling through SRs in dig Rx config Extending sw_pll to monitor PFD error stability not possible due to host cycling through SRs in dig Rx config Jan 26, 2024
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

No branches or pull requests

1 participant