mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
shorten SYNOPSIS from three versions to two (me) then one (ratchov),
plus all the cleanup that goes with; ok ratchov
This commit is contained in:
parent
d02b77ca12
commit
165474a8f2
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: audioctl.8,v 1.6 2023/01/08 08:27:17 jmc Exp $
|
||||
.\" $OpenBSD: audioctl.8,v 1.7 2023/01/09 17:13:46 jmc Exp $
|
||||
.\" $NetBSD: audioctl.1,v 1.7 1998/04/27 16:55:23 augustss Exp $
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd $Mdocdate: January 8 2023 $
|
||||
.Dd $Mdocdate: January 9 2023 $
|
||||
.Dt AUDIOCTL 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -34,17 +34,10 @@
|
||||
.Nd get or set audio driver variables
|
||||
.Sh SYNOPSIS
|
||||
.Nm audioctl
|
||||
.Op Fl f Ar file
|
||||
.Op Fl w Ar wait
|
||||
.Nm audioctl
|
||||
.Op Fl n
|
||||
.Op Fl f Ar file
|
||||
.Op Fl w Ar wait
|
||||
.Ar name ...
|
||||
.Nm audioctl
|
||||
.Op Fl nq
|
||||
.Op Fl f Ar file
|
||||
.Ar name Ns = Ns Ar value ...
|
||||
.Op Fl w Ar wait
|
||||
.Op Ar name Ns Oo = Ns Ar value Oc Ar ...
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
@ -67,11 +60,13 @@ Display variables every
|
||||
seconds.
|
||||
.Nm
|
||||
will continue to display variables until interrupted.
|
||||
.It Ar name Ns = Ns Ar value
|
||||
Attempt to set the specified variable
|
||||
.Ar name
|
||||
to
|
||||
.Ar value .
|
||||
.It Ar name Ns Op = Ns Ar value
|
||||
Retrieve the specified variable
|
||||
.Ar name ,
|
||||
or attempt to set it to value.
|
||||
Multiple
|
||||
.Ar name Ns Op = Ns Ar value
|
||||
arguments may be given.
|
||||
.El
|
||||
.Pp
|
||||
If the audio control device is used, then values are only stored in the
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: audioctl.c,v 1.46 2023/01/08 08:27:17 jmc Exp $ */
|
||||
/* $OpenBSD: audioctl.c,v 1.47 2023/01/09 17:13:46 jmc Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2016 Alexandre Ratchov <alex@caoua.org>
|
||||
*
|
||||
@ -64,9 +64,7 @@ struct field {
|
||||
};
|
||||
|
||||
const char usagestr[] =
|
||||
"usage: audioctl [-f file] [-w wait]\n"
|
||||
" audioctl [-n] [-f file] [-w wait] name ...\n"
|
||||
" audioctl [-nq] [-f file] name=value ...\n";
|
||||
"usage: audioctl [-nq] [-f file] [-w wait] [name[=value] ...]\n";
|
||||
|
||||
int fd, show_names = 1, quiet = 0, wait_sec = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user