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

In sync mode there is no nice transition from internal to SOF clock #275

Open
xross opened this issue Aug 3, 2022 · 2 comments
Open

In sync mode there is no nice transition from internal to SOF clock #275

xross opened this issue Aug 3, 2022 · 2 comments
Labels

Comments

@xross
Copy link
Collaborator

xross commented Aug 3, 2022

When running in sync mode the internal clock takes over when the host is unplugged.

E.g. when unplugged the device is driving a 500Hz signal at the CS2100, when SOF's are detected (due to plug event) the reference clock is immediately toggled with no account for when the last edge from the internal timer was driven.

Un-plug events are fine - the internal timer is updated every SOF.

To solve this issue, rather than toggling directly on SOF reception we could use a timer to measure the time between two SOF's, then use this offset from the last timer driven edge.

Clearly this effects self-powered devices only. Additionally this is not an issue for most devices, it could be an issue if an sync mode device has a 'stand-alone' mode (say a mixer) - there could be audible artefacts on USB plug.

@xross xross changed the title In sync mode there is no nice transition from internal <-> SOF clock on plug-in In sync mode there is no nice transition from internal to SOF clock Aug 3, 2022
@xross xross mentioned this issue Aug 4, 2022
1 task
@xross
Copy link
Collaborator Author

xross commented Aug 4, 2022

Test authored in test_sync_clk_plugin.py

@xross xross added the bug label Aug 10, 2022
@xross
Copy link
Collaborator Author

xross commented Jul 2, 2024

This is now lower priority due to the use of lib_sw_pll and the Application PLL in XS3 devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant