If mode is not allowed in struct opt, then just play/record silence
authorratchov <ratchov@openbsd.org>
Mon, 3 May 2021 04:29:50 +0000 (04:29 +0000)
committerratchov <ratchov@openbsd.org>
Mon, 3 May 2021 04:29:50 +0000 (04:29 +0000)
commit94f976feb1e74b636b297bd93ebf3b8c696f7fc5
tree4a3abdcca007db5413a1d017400733cd7d075a68
parentf11c68bdb593ec86d04f3e18938b8d23631e3488
If mode is not allowed in struct opt, then just play/record silence

This is similar to what we already do when device is opened and its
mode doesn't match requested mode. Besides adding consistency, this
change would allow client's opt structure to be changed dynamically.
usr.bin/sndiod/dev.c