aboutsummaryrefslogtreecommitdiff
path: root/utils/tinymix.1
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-11-19 19:46:50 -0500
committerTaylor Holberton <taylorcholberton@gmail.com>2016-11-19 19:46:50 -0500
commit888bc69f97e2b1dac234c9986ded50620501e2b2 (patch)
tree89f615d2de4f6cecb337458feda5e84b282de8fd /utils/tinymix.1
parent474ab24467d824d04737d6f4e44d4a02e80841ca (diff)
make tinymix command oriented, based on amixer
Diffstat (limited to 'utils/tinymix.1')
-rw-r--r--utils/tinymix.149
1 files changed, 38 insertions, 11 deletions
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 <control-id|control-name>\fR
+Prints the value of a specified control
+
+.TP
+\fBset <control-id|control-name> <control-value>\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