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
Unknown Object (File)
Mon, Jan 12, 2:43 PM
Unknown Object (File)
Mon, Jan 12, 9:06 AM
Unknown Object (File)
Sat, Dec 20, 7:23 AM
Unknown Object (File)
Dec 10 2025, 11:13 AM
Unknown Object (File)
Dec 2 2025, 10:31 AM
Unknown Object (File)
Nov 27 2025, 2:55 PM
Unknown Object (File)
Nov 25 2025, 3:37 PM
Unknown Object (File)
Nov 25 2025, 8:55 AM
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