Page MenuHomeFreeBSD

sound: Fix oss_sysinfo->numcards
ClosedPublic

Authored by christos on May 8 2024, 10:46 PM.
Tags
None
Referenced Files
F142181843: D45136.diff
Fri, Jan 16, 10:12 PM
Unknown Object (File)
Dec 13 2025, 10:13 PM
Unknown Object (File)
Nov 10 2025, 3:11 PM
Unknown Object (File)
Nov 10 2025, 2:59 PM
Unknown Object (File)
Nov 10 2025, 3:50 AM
Unknown Object (File)
Nov 9 2025, 6:53 PM
Unknown Object (File)
Nov 7 2025, 5:23 PM
Unknown Object (File)
Nov 5 2025, 11:35 AM
Subscribers

Details

Summary

According to the OSS manual, oss_sysinfo->numcards holds the number of
detected audio devices in the system, while the current ncards variable,
whose value is assigned to oss_sysinfo->numcards, holds the number of
registered devices only.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57628
Build 54516: arc lint + arc unit

Event Timeline

This is supposed to be for diagnostic tools only, so it shouldn't really matter much. Assuming we refer to a card by index anywhere (in dmesg, say) it makes sense for numcards to report the highest card number -- OK.

This revision is now accepted and ready to land.May 9 2024, 2:22 PM
This revision was automatically updated to reflect the committed changes.