Blame amixer/amixer.1

Packit 229ac0
.TH AMIXER 1 "11 Aug 2000"
Packit 229ac0
.SH NAME
Packit 229ac0
amixer \- command-line mixer for ALSA soundcard driver
Packit 229ac0
.SH SYNOPSIS
Packit 229ac0
\fBamixer\fP [\fI\-option\fP] [\fIcmd\fP]
Packit 229ac0
.SH DESCRIPTION
Packit 229ac0
\fBamixer\fP allows command\-line control of the mixer for the ALSA
Packit 229ac0
soundcard driver.
Packit 229ac0
\fBamixer\fP supports multiple soundcards.
Packit 229ac0
Packit 229ac0
\fBamixer\fR with no arguments will display the current mixer settings
Packit 229ac0
for the default soundcard and device. This is a good way to see a list
Packit 229ac0
of the simple mixer controls you can use.
Packit 229ac0
Packit 229ac0
.SH COMMANDS
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIhelp\fP
Packit 229ac0
Shows syntax.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIinfo\fP
Packit 229ac0
Shows the information about a mixer device.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIscontrols\fP
Packit 229ac0
Shows a complete list of simple mixer controls.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIscontents\fP
Packit 229ac0
Shows a complete list of simple mixer controls with their contents.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIset\fP or \fIsset\fP <\fISCONTROL\fP> <\fIPARAMETER\fP> ...
Packit 229ac0
Sets the simple mixer control contents. The parameter can be the volume
Packit 229ac0
either as a percentage from 0% to 100% with \fI%\fP suffix,
Packit 229ac0
a dB gain with \fIdB\fP suffix (like \-12.5dB), or an exact hardware value.
Packit 229ac0
The dB gain can be used only for the mixer elements with available
Packit 229ac0
dB information.
Packit 229ac0
When plus(+) or minus(\-) letter is appended after
Packit 229ac0
volume value, the volume is incremented or decremented from the current
Packit 229ac0
value, respectively.
Packit 229ac0
Packit 229ac0
The parameters \fIcap, nocap, mute, unmute, toggle\fP are used to
Packit 229ac0
change capture (recording) and muting for the group specified.
Packit 229ac0
Packit 229ac0
The optional modifiers can be put as extra parameters to specify
Packit 229ac0
the stream direction or channels to apply.
Packit 229ac0
The modifiers \fIplayback\fP and \fIcapture\fP specify the stream,
Packit 229ac0
and the modifiers \fIfront, rear, center, woofer\fP are used to specify
Packit 229ac0
channels to be changed. 
Packit 229ac0
Packit 229ac0
A simple mixer control must be specified. Only one device can be controlled
Packit 229ac0
at a time.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIget\fP or \fIsget\fP <\fISCONTROL\fP>
Packit 229ac0
Shows the simple mixer control contents.
Packit 229ac0
Packit 229ac0
A simple mixer control must be specified. Only one device can be controlled
Packit 229ac0
at a time.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIcontrols\fP
Packit 229ac0
Shows a complete list of card controls.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIcontents\fP
Packit 229ac0
Shows a complete list of card controls with their contents.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIcset\fP <\fICONTROL\fP> <\fIPARAMETER\fP> ...
Packit 229ac0
Sets the card control contents. The identifier has these components: iface,
Packit 229ac0
name, index, device, subdevice, numid. The next argument specifies the value
Packit 229ac0
of control.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fIcget\fP <\fICONTROL\fP>
Packit 229ac0
Shows the card control contents. The identifier has same syntax as for
Packit 229ac0
the \fIcset\fP command.
Packit 229ac0
Packit 229ac0
.SH OPTIONS
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-c\fP card
Packit 229ac0
Packit 229ac0
Select the card number to control. The device name created from this
Packit 229ac0
parameter has syntax 'hw:N' where N is specified card number.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-D\fP device
Packit 229ac0
Packit 229ac0
Select the device name to control. The default control name is 'default'.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-s\fP | \fI\-\-stdin\fP
Packit 229ac0
Packit 229ac0
Read from stdin and execute the command on each line sequentially.
Packit 229ac0
When this option is given, the command in command\-line arguments is ignored.
Packit 229ac0
Packit 229ac0
Only sset and cset are accepted.  Other commands are ignored.
Packit 229ac0
The commands to unmatched ids are ignored without errors too.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-h\fP 
Packit 229ac0
Help: show syntax.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-q\fP
Packit 229ac0
Quiet mode. Do not show results of changes.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-R\fP 
Packit 229ac0
Use the raw value for evaluating the percentage representation.
Packit 229ac0
This is the default mode.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fI\-M\fP 
Packit 229ac0
Use the mapped volume for evaluating the percentage representation
Packit 229ac0
like \fBalsamixer\fR, to be more natural for human ear.
Packit 229ac0
Packit 229ac0
.SH EXAMPLES
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fBamixer \-c 1 sset Line,0 80%,40% unmute cap\fR
Packit 229ac0
will set the second soundcard's left line input volume to 80% and
Packit 229ac0
right line input to 40%, unmute it, and select it as a source for
Packit 229ac0
capture (recording).\fR
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fBamixer \-c 1 \-\- sset Master playback \-20dB\fR
Packit 229ac0
will set the master volume of the second card to \-20dB.  If the master
Packit 229ac0
has multiple channels, all channels are set to the same value.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fBamixer \-c 1 set PCM 2dB+\fR
Packit 229ac0
will increase the PCM volume of the second card with 2dB.  When both
Packit 229ac0
playback and capture volumes exist, this is applied to both volumes.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fBamixer \-c 2 cset iface=MIXER,name='Line Playback Volume",index=1 40%\fR
Packit 229ac0
will set the third soundcard's second line playback volume(s) to 40%
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fBamixer \-c 2 cset numid=34 40%\fR
Packit 229ac0
will set the 34th soundcard element to 40%
Packit 229ac0
Packit 229ac0
.SH SEE ALSO
Packit 229ac0
\fB
Packit 229ac0
alsamixer(1)
Packit 229ac0
\fP
Packit 229ac0
Packit 229ac0
.SH BUGS 
Packit 229ac0
None known.
Packit 229ac0
Packit 229ac0
.SH AUTHOR
Packit 229ac0
\fBamixer\fP is by Jaroslav Kysela <perex@perex.cz>.
Packit 229ac0
This document is by Paul Winkler <zarmzarm@erols.com> and Jaroslav Kysela <perex@perex.cz>.