Skip to content
Discussion options

You must be logged in to vote

I think the greatest possibility is clock deviation, didn't notice you are using HSI clock.

A clock of at least 0.1% precision should be used, 1% difference is pretty high, even noticable as a tone change.

Taking full speed 48khz as example, in theory flow control can tolerate 2% deviation by sending 47/49 samples short/long packet. But in real Windows doesn't like device sending consecutive short/long packet so the regulation only happens each 10 packets, in result the maximum allowed deviation become 0.2%.

You can log the fifo level like uac2_speaker_fb example with tud_audio_get_ep_in_ff() and tu_fifo_count().

Replies: 6 comments 1 reply

This comment was marked as off-topic.

@martijnvdwoude
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by martijnvdwoude
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants