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

Improvements for Audio Subsystem tests #593

Open
SebastianCzapla opened this issue Nov 15, 2024 · 1 comment
Open

Improvements for Audio Subsystem tests #593

SebastianCzapla opened this issue Nov 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@SebastianCzapla
Copy link
Contributor

The problem you're addressing (if any)

AUD001.001 and AUD001.002 present inconsistent behavior. These two test are Ubuntu and Windows variants of audio detection.

AUD001.001 (Ubuntu) uses sysfs to peek a chip_name property from predefined path. This ignores if the device is actually used as output device, and presents the state more from kernel's perspective.
AUD001.002 (Windows) uses powershell to get audio devices, but this might fail, if no output device is available (HDMI display or other). This is closer to "user-space perspective".

Describe the solution you'd like

Match behavior of both these tests. In case of fail, we could notify user to make sure that proper device is connected.

Where is the value to a user, and who might that user be?

No response

Describe alternatives you've considered

Replace Get-WmiObject with Get-CimInstance, which is more modern according to MS Documentation. This however does not fix the issue.

There is also Get-PnpDevice which will detect all audio devices, no matter the device state.

Additional context

No response

@SebastianCzapla SebastianCzapla added the enhancement New feature or request label Nov 15, 2024
@SebastianCzapla
Copy link
Contributor Author

SebastianCzapla commented Nov 22, 2024

Commit e37d382 in a draft branch addresses this issue.
Partially addressed in: 15560f1

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

No branches or pull requests

1 participant