diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-10-19 19:59:08 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-10-19 19:59:08 +0000 |
commit | f9a29f1fc3a8125a167eb634466c44e89e594f93 (patch) | |
tree | db6b9c6aee160ac827b09b0bd663a1d627a3f9c9 /share | |
parent | c74a7672b2392ed710d2732cd6f7026f00576c63 (diff) |
Remove unused setfd member from struct audio_hw_if
All consumers now use C99 struct init and none of them sets `.setfd'.
OK ratchov miod
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/audio.9 | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/share/man/man9/audio.9 b/share/man/man9/audio.9 index d441561fb96..c5e419aaf80 100644 --- a/share/man/man9/audio.9 +++ b/share/man/man9/audio.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: audio.9,v 1.31 2022/03/31 17:27:23 naddy Exp $ +.\" $OpenBSD: audio.9,v 1.32 2022/10/19 19:59:06 kn Exp $ .\" $NetBSD: audio.9,v 1.14 2000/02/11 22:56:15 kleink Exp $ .\" .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: October 19 2022 $ .Dt AUDIO 9 .Os .Sh NAME @@ -64,8 +64,6 @@ struct audio_hw_if { #define SPKR_ON 1 #define SPKR_OFF 0 - int (*setfd)(void *, int); - int (*set_port)(void *, struct mixer_ctrl *); int (*get_port)(void *, struct mixer_ctrl *); @@ -284,13 +282,6 @@ If supplied, it is called when a half duplex device changes between playing and recording. It can, e.g., be used to turn the speaker on and off. This function returns 0 on success, otherwise an error code. -.It Ft int Fn (*setfd) "void *hdl" "int fd" -This function is optional. -If supplied, it is called when the device is opened in full-duplex mode, -but only if the device has -.Dv AUDIO_PROP_FULLDUPLEX -set. -This function returns 0 on success, otherwise an error code. .It Ft int Fn (*set_port) "void *hdl" "struct mixer_ctrl *mc" This function is called when the .Dv AUDIO_MIXER_WRITE |