Page MenuHomeFreeBSD

sound: Fix oss_sysinfo->numcards
ClosedPublic

Authored by christos on May 8 2024, 10:46 PM.
Tags
None
Referenced Files
F101878660: D45136.id138273.diff
Tue, Nov 5, 2:26 AM
F101878655: D45136.id138316.diff
Tue, Nov 5, 2:26 AM
F101878652: D45136.id.diff
Tue, Nov 5, 2:26 AM
F101877881: D45136.diff
Tue, Nov 5, 2:11 AM
Unknown Object (File)
Thu, Oct 17, 5:12 PM
Unknown Object (File)
Wed, Oct 16, 2:39 AM
Unknown Object (File)
Wed, Oct 16, 12:02 AM
Unknown Object (File)
Tue, Oct 15, 1:35 PM
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.