Page MenuHomeFreeBSD

sound: Fix oss_sysinfo->numcards
ClosedPublic

Authored by christos on May 8 2024, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 24, 7:37 AM
Unknown Object (File)
Wed, Sep 23, 7:28 AM
Unknown Object (File)
Fri, Sep 18, 2:39 AM
Unknown Object (File)
Thu, Sep 17, 2:01 PM
Unknown Object (File)
Fri, Sep 11, 8:42 AM
Unknown Object (File)
Fri, Sep 11, 7:16 AM
Unknown Object (File)
Thu, Sep 10, 4:43 PM
Unknown Object (File)
Thu, Sep 10, 3:55 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.