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)
Dec 9 2024, 8:52 PM
Unknown Object (File)
Nov 25 2024, 8:35 PM
Unknown Object (File)
Nov 25 2024, 11:22 AM
Unknown Object (File)
Nov 24 2024, 5:37 PM
Unknown Object (File)
Nov 24 2024, 4:36 PM
Unknown Object (File)
Nov 23 2024, 3:45 PM
Unknown Object (File)
Nov 22 2024, 5:56 PM
Unknown Object (File)
Nov 22 2024, 10:51 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 Not Applicable
Unit
Tests Not Applicable

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.