mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 14:19:45 +01:00
First attempt to make this tool functional with latest 0.6.x mixer API.
This commit is contained in:
parent
ad018be92c
commit
c569788bf2
3 changed files with 479 additions and 357 deletions
|
@ -1,6 +1,8 @@
|
||||||
INCLUDES = -I$(top_srcdir)/include
|
INCLUDES = -I$(top_srcdir)/include
|
||||||
LDADD = -lm
|
LDADD = -lm
|
||||||
|
# LDFLAGS = -static
|
||||||
EXTRA_DIST = README.first
|
EXTRA_DIST = README.first
|
||||||
|
# CFLAGS += -g -Wall
|
||||||
|
|
||||||
bin_PROGRAMS = amixer
|
bin_PROGRAMS = amixer
|
||||||
amixer_SOURCES = amixer.c
|
amixer_SOURCES = amixer.c
|
||||||
|
|
|
@ -1,83 +1,81 @@
|
||||||
.TH AMIXER 1 "27 Jul 1999"
|
.TH AMIXER 1 "11 Aug 2000"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
amixer \- commandline mixer for ALSA soundcard driver
|
amixer \- command-line mixer for ALSA soundcard driver
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fBamixer\fP [\fI-c\fP card] [\fI-d\fP dev] [\fIcmd\fP]
|
\fBamixer\fP [\fI-c\fP card] [\fIcmd\fP]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
\fBamixer\fP allows command-line control of the mixer for the ALSA
|
\fBamixer\fP allows command-line control of the mixer for the ALSA
|
||||||
soundcard driver.
|
soundcard driver.
|
||||||
\fBamixer\fP supports multiple soundcards with multiple devices.
|
\fBamixer\fP supports multiple soundcards.
|
||||||
.SH INVOKING
|
.SH INVOKING
|
||||||
|
|
||||||
\fBamixer\fR with no arguments will display the current mixer settings
|
\fBamixer\fR with no arguments will display the current mixer settings
|
||||||
for the default soundcard and device. This is a good way to see a list
|
for the default soundcard and device. This is a good way to see a list
|
||||||
of the groups you can control.
|
of the simple mixer controls you can use.
|
||||||
|
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fIhelp\fP
|
||||||
|
Shows syntax.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIinfo\fP
|
\fIinfo\fP
|
||||||
Shows the information about a mixer device.
|
Shows the information about a mixer device.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIgroups\fP
|
\fIscontrols\fP
|
||||||
Shows a complete list of mixer groups.
|
Shows a complete list of simple mixer controls.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIgcontents\fP
|
\fIscontents\fP
|
||||||
Shows a complete list of mixer groups with their contents.
|
Shows a complete list of simple mixer controls with their contents.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIset\fP
|
\fIsset\fP
|
||||||
Sets the group contents. The parameter can be the volume either as a
|
Sets the simple mixer control contents. The parameter can be the volume
|
||||||
percentage from 0% to 100% or a exact hardware value. The parameters
|
either as a percentage from 0% to 100% or a exact hardware value.
|
||||||
\fIcapture, nocapture, mute, unmute\fP are used to toggle capture
|
The parameters \fIcapture, nocapture, mute, unmute\fP are used to
|
||||||
(recording) and muting for the group specified.
|
toggle capture (recording) and muting for the group specified.
|
||||||
The parameters \fIfront, rear, center, woofer\fP are used to specify
|
The parameters \fIfront, rear, center, woofer\fP are used to specify
|
||||||
channels to be changed.
|
channels to be changed. When plus(+) or minus(-) letter is appended after
|
||||||
When plus(+) or minus(-) letter is appended after volume value,
|
volume value, the volume is incremented or decremented from the current
|
||||||
the volume is incremented or decremented from the current value,
|
value, respectively.
|
||||||
respectively.
|
|
||||||
|
|
||||||
A mixer group must be specified. Only one device can be controlled at
|
A simple mixer control must be specified. Only one device can be controlled
|
||||||
a time.
|
at a time.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIget\fP
|
\fIsget\fP
|
||||||
Shows the group contents.
|
Shows the simple mixer control contents.
|
||||||
|
|
||||||
A mixer group must be specified. Only one device can be controlled at
|
A simple mixer control must be specified. Only one device can be controlled
|
||||||
a time.
|
at a time.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIelements\fP
|
\fIcontrols\fP
|
||||||
Shows a complete list of mixer elements.
|
Shows a complete list of card controls.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIcontents\fP
|
\fIcontents\fP
|
||||||
Shows a complete list of mixer elements with their contents.
|
Shows a complete list of card controls with their contents.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIeset\fP
|
\fIcset\fP
|
||||||
Sets the mixer element contents. This feature is not documented and is intended
|
Sets the card control contents. This feature is not documented and is intended
|
||||||
for experienced users only.
|
for experienced users only.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fIeget\fP
|
\fIeget\fP
|
||||||
Shows the mixer element contents. This feature is not documented and is
|
Shows the card control contents. This feature is not documented and is
|
||||||
indended for experienced users only.
|
indended for experienced users only.
|
||||||
|
|
||||||
.SS Options
|
.SS Options
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
[\fI-c\fP card] [\fI-d\fP device]
|
[\fI-c\fP card]
|
||||||
|
|
||||||
Select the card and device number to control. Cards are numbered from 0
|
Select the card number to control. Cards are numbered from 0 (the default).
|
||||||
(the default). Devices are numbered from 0 (the default). Note that
|
|
||||||
here, "device" does \fBnot\fP mean "mixer channel", but refers to the
|
|
||||||
architecture of your soundcard. Many soundcards will only have device 0.
|
|
||||||
Some more complex cards may have more devices. Try using \fI-d 1\fP and
|
|
||||||
if anything useful happens, now you know more than I do. :)
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fI-h\fP
|
\fI-h\fP
|
||||||
|
@ -90,11 +88,12 @@ Quiet mode. Do not show results of changes.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
\fBamixer -c 1 set Line 80% unmute capture\fR
|
\fBamixer -c 1 set Line 80%,40% unmute capture\fR
|
||||||
|
|
||||||
.ID
|
.ID
|
||||||
will set the second soundcard's line input volume to 80%, unmute it,
|
will set the second soundcard's left line input volume to 80% and
|
||||||
and select it as a source for capture (recording).
|
right line input to 40%, unmute it, and select it as a source for
|
||||||
|
capture (recording).
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
None known.
|
None known.
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
|
|
755
amixer/amixer.c
755
amixer/amixer.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue