Page MenuHomeFreeBSD

sound: Fix oss_sysinfo->numcards
ClosedPublic

Authored by christos on Wed, May 8, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 5:09 PM
Unknown Object (File)
Sat, May 11, 4:19 PM
Unknown Object (File)
Fri, May 10, 10:19 PM
Unknown Object (File)
Fri, May 10, 3:55 PM
Unknown Object (File)
Fri, May 10, 1:31 PM
Unknown Object (File)
Fri, May 10, 1:27 AM
Unknown Object (File)
Thu, May 9, 8:25 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.Thu, May 9, 2:22 PM
This revision was automatically updated to reflect the committed changes.