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

OboeTester should use setPreferredMixerAttributes() for USB audio tests #2168

Open
philburk opened this issue Feb 22, 2025 · 0 comments
Open

Comments

@philburk
Copy link
Collaborator

CTS Verifier should use setPreferredMixerAttributes() to improve the reliability of USB tests for peripherals that support sample rates higher than 48000 Hz.

As an example, the Presonus device supports 96000 Hz but the Google adapter only supports 48000 Hz. When the test opens a stream on the Presonus devices when using the Legacy AOSP USB HAL then it may open the hardware at 96000 Hz. This will then require the use of a sample rate converter to match the test apps sample rate. That can significantly increase the latency of the streams.

setPreferredMixerAttributes() was added in API 34 (UDC)

The Latency test should always use the optimal MixerAttributes for lowest latency.

The Data Path USB Test could try different MixerAttributes, and try it on/off, to make sure it works properly.

See b/398310497 | P2 | CTSV should use setPreferredMixerAttributes() for USB audio tests
for more context.

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