Page MenuHomeFreeBSD

sndctl(8): Modify vchans only on supported directions
ClosedPublic

Authored by christos on Oct 21 2025, 9:55 AM.
Tags
None
Referenced Files
F169047631: D53233.diff
Mon, Aug 31, 6:00 AM
Unknown Object (File)
Sat, Aug 29, 6:06 AM
Unknown Object (File)
Thu, Aug 27, 6:37 PM
Unknown Object (File)
Thu, Aug 27, 6:36 PM
Unknown Object (File)
Thu, Aug 27, 6:24 PM
Unknown Object (File)
Mon, Aug 24, 6:45 PM
Unknown Object (File)
Sun, Aug 23, 5:49 AM
Unknown Object (File)
Thu, Aug 20, 12:15 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable