HomeFreeBSD

sound: Fix oss_sysinfo->numcards

Description

sound: Fix oss_sysinfo->numcards

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
currently registered devices only.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: dev_submerge.ch, emaste
Differential Revision: https://reviews.freebsd.org/D45136

(cherry picked from commit 59d98edae3e1a6fffd292e4393c49862d624f25f)

Details

Provenance
christosAuthored on May 9 2024, 7:08 PM
Reviewer
dev_submerge.ch
Differential Revision
D45136: sound: Fix oss_sysinfo->numcards
Parents
rG8b4e2ba31d1b: sound: Remove nmix variable from mixer_oss_mixerinfo()
Branches
Unknown
Tags
Unknown