From 888bc69f97e2b1dac234c9986ded50620501e2b2 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Sat, 19 Nov 2016 19:46:50 -0500 Subject: make tinymix command oriented, based on amixer --- utils/tinymix.1 | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) (limited to 'utils/tinymix.1') diff --git a/utils/tinymix.1 b/utils/tinymix.1 index 35f86ba..e56d67c 100644 --- a/utils/tinymix.1 +++ b/utils/tinymix.1 @@ -4,42 +4,69 @@ tinymix \- view and edit mixer controls for a specified mixer. .SH SYNOPSIS -.B tinymix\fR [ \fIoptions\fR ] [ \fIcontrol-id\fR ] [ \fIcontrol-value\fR ] +.B tinymix\fR [ \fIoptions\fR ] \fIcommand\fR .SH Description \fBtinymix\fR can be used to view and/or edit a list of mixer controls for a specified mixer. -Running \fBtinymix\fR with no arguments will print a list of mixer controls for the default mixer. -With one argument, the argument is interpreted as a control ID and detailed information for that control is printed. -With two arguments, the arguments are interpreted as a control ID and value pair, setting the control to the value specified. .SH OPTIONS .TP -\fB\-D\fR \fIcard\fR +\fB\-D, --card\fR \fIcard\fR Card number of the mixer. The default is 0. +.TP +\fB\-h, --help\fR +Print help contents and exit. + +.TP +\fB\-v, --version\fR +Print the current version of tinymix and exit. + +.SH COMMANDS + +.TP +\fBget \fR +Prints the value of a specified control + +.TP +\fBset \fR +Sets the value of a specified control + +.TP +\fBcontents\fR +Prints the contents of all mixer controls. + +.TP +\fBcontrols\fR +Prints the names and IDs of all mixer controls. + .SH EXAMPLES .TP -\fBtinymix\fR +\fBtinymix controls\fR Prints a list of control IDs for the mixer of card 0. .TP -\fBtinymix -D 1\fR +\fBtinymix -D 1 controls\fR Prints a list of control IDs for the mixer of card 1. .TP -\fBtinymix 0\fR -Prints default information about control 0. +\fBtinymix get 0\fR +Prints information about control 0. + +.TP +\fBtinymix get "Headphone Playback Volume"\fR +Prints information about a control called "Headphone Playback Volume"\fR .TP -\fBtinymix 0 4\fR +\fBtinymix set 0 4\fR Sets control 0 to the value of 4. .TP -\fBtinymix -D 1 2 32 +\fBtinymix --card 1 set 2 32 Sets control 2 of card 1 to the value of 32. .SH BUGS -- cgit v1.2.3