Skip to content

Conversation

@roderickvd
Copy link
Member

Fixes device enumeration on systems where ALSA hints don't include physical devices.

  • Now combines ALSA hints with physical card probing, so all hardware is discovered even when hints don't list it
  • Devices now report DeviceDirection::Input/Output/Duplex/Unknown based on hint metadata and hardware capabilities (previously all devices reported None)
  • Added Default implementation that returns the ALSA "default" device

Fixes #1079

This comment was marked as resolved.

@roderickvd roderickvd force-pushed the fix/alsa-card-enumeration branch from 10aa237 to c4d9996 Compare December 27, 2025 17:26
Combines ALSA hints with physical card probing to ensure all hardware
devices are enumerated, even when hints don't list them.
- Add hybrid enumeration: hints (virtual/configured) + physical probing
- Add direction detection from hint metadata and physical hardware
- Add Default implementation for Device
- Remove unused StreamType enum

Fixes #1079

This comment was marked as resolved.

@roderickvd roderickvd force-pushed the fix/alsa-card-enumeration branch from e2f8abf to 2ad6603 Compare December 27, 2025 17:45
Copy link

@calwe calwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I obviously don't feel qualified to give a technical review in this code base, these changes do in fact work for me - and correctly show both the virtual devices from hints, and now the same hardware devices that would appear in 0.16. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enumerating ALSA devices by hints does not guarantee getting physical devices

3 participants