HomeFreeBSD

sndctl(8): Modify vchans only on supported directions

Description

sndctl(8): Modify vchans only on supported directions

Currently mod_play_vchans() and mod_rec_vchans() run unconditionally,
even if the direction (playback, recording) is not supported by the
device. This results in the "autoconv" (see mod_autoconv()) control
failing when run on simplex devices, because we'll be trying to modify
vchans on an unsupported direction.

Test whether the direction is supported and silently move on if it
isn't.

Sponsored by: The FreeBSD Foundation
MFC after: 4 days
Differential Revision: https://reviews.freebsd.org/D53233

Details

Provenance
christosAuthored on Oct 22 2025, 11:50 AM
Differential Revision
D53233: sndctl(8): Modify vchans only on supported directions
Parents
rGdaac364e6115: tcp: fix typo in comment
Branches
Unknown
Tags
Unknown