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

AUDIO - Flow control not working with only 1 supported sample-rate #2931

Open
1 task done
gmikitiuk opened this issue Jan 6, 2025 · 2 comments
Open
1 task done
Labels

Comments

@gmikitiuk
Copy link

Operating System

Windows 10

Board

Custom design

Firmware

Modified uac2_headset example

What happened ?

I've noticed that whenever only one sampling frequency is available in sample_rates, Windows stops asking for current frequency and this is the only way(to my knowledge) to get sample_rate_tx initialized which leads to no flow control working(due to uninitialized sample_rate_tx.

How to reproduce ?

Configure a single frequency in sample_rates.

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

No logs possible with my host

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
@HiFiPhile
Copy link
Collaborator

Never tried this case, Windows neither get nor set sample rate ?

@gmikitiuk
Copy link
Author

I didn't check it, as in my use-case sample rate is fixed, so it's marked as read only in descriptor. I don't even expect a set call.
What is sure is that get is never called if only one sample rate is available(I guess it assumes that it must be the one presented in the list).

I've worked around it by providing two sample rates but no ability to change it.

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

2 participants