]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sound: Fix oss_sysinfo->numcards
authorChristos Margiolis <christos@FreeBSD.org>
Thu, 9 May 2024 19:08:01 +0000 (21:08 +0200)
committerChristos Margiolis <christos@FreeBSD.org>
Thu, 9 May 2024 19:08:01 +0000 (21:08 +0200)
commit59d98edae3e1a6fffd292e4393c49862d624f25f
treef0d78419556159a6b5b5e103b56f028479801611
parent2f31a5eb75f1e47b5c49f574e8ce48d2c863e9d3
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
sys/dev/sound/pcm/sound.c