1AMIXER(1)                   General Commands Manual                  AMIXER(1)
2
3
4

NAME

6       amixer - command-line mixer for ALSA soundcard driver
7

SYNOPSIS

9       amixer [-option] [cmd]
10

DESCRIPTION

12       amixer  allows command-line control of the mixer for the ALSA soundcard
13       driver.  amixer supports multiple soundcards.
14
15       amixer with no arguments will display the current  mixer  settings  for
16       the  default  soundcard and device. This is a good way to see a list of
17       the simple mixer controls you can use.
18
19

COMMANDS

21       help   Shows syntax.
22
23
24       info   Shows the information about a mixer device.
25
26
27       scontrols
28              Shows a complete list of simple mixer controls.
29
30
31       scontents
32              Shows a complete list of simple mixer controls with  their  con‐
33              tents.
34
35
36       set or sset <SCONTROL> <PARAMETER> ...
37              Sets the simple mixer control contents. The parameter can be the
38              volume either as a percentage from 0% to 100% with %  suffix,  a
39              dB  gain  with  dB  suffix  (like -12.5dB), or an exact hardware
40              value.  The dB gain can be used only for the mixer elements with
41              available  dB  information.   When plus(+) or minus(-) letter is
42              appended after volume value, the volume is incremented or decre‐
43              mented from the current value, respectively.
44
45              The  parameters  cap,  nocap,  mute,  unmute, toggle are used to
46              change capture (recording) and muting for the group specified.
47
48              The optional modifiers can be put as extra parameters to specify
49              the  stream direction or channels to apply.  The modifiers play‐
50              back and capture specify the stream, and  the  modifiers  front,
51              rear, center, woofer are used to specify channels to be changed.
52
53              A simple mixer control must be specified. Only one device can be
54              controlled at a time.
55
56
57       get or sget <SCONTROL>
58              Shows the simple mixer control contents.
59
60              A simple mixer control must be specified. Only one device can be
61              controlled at a time.
62
63
64       controls
65              Shows a complete list of card controls.
66
67
68       contents
69              Shows a complete list of card controls with their contents.
70
71
72       cset <CONTROL> <PARAMETER> ...
73              Sets  the card control contents. The identifier has these compo‐
74              nents: iface, name, index, device, subdevice,  numid.  The  next
75              argument specifies the value of control.
76
77
78       cget <CONTROL>
79              Shows  the card control contents. The identifier has same syntax
80              as for the cset command.
81
82

OPTIONS

84       -c card
85
86              Select the card number to control. The device name created  from
87              this  parameter has syntax 'hw:N' where N is specified card num‐
88              ber.
89
90
91       -D device
92
93              Select the device name to control. The default control  name  is
94              'default'.
95
96
97       -s | --stdin
98
99              Read  from  stdin  and  execute the command on each line sequen‐
100              tially.  When this option is given, the command in  command-line
101              arguments is ignored.
102
103              Only  sset  and  cset are accepted.  Other commands are ignored.
104              The commands to unmatched ids are ignored without errors too.
105
106
107       -h     Help: show syntax.
108
109
110       -q     Quiet mode. Do not show results of changes.
111
112
113       -R     Use the raw value for evaluating the percentage  representation.
114              This is the default mode.
115
116
117       -M     Use  the mapped volume for evaluating the percentage representa‐
118              tion like alsamixer, to be more natural for human ear.
119
120

EXAMPLES

122       amixer -c 1 sset Line,0 80%,40% unmute cap
123              will set the second soundcard's left line input  volume  to  80%
124              and  right  line  input  to  40%,  unmute it, and select it as a
125              source for capture (recording).
126
127
128       amixer -c 1 -- sset Master playback -20dB
129              will set the master volume of the second card to -20dB.  If  the
130              master  has  multiple channels, all channels are set to the same
131              value.
132
133
134       amixer -c 1 set PCM 2dB+
135              will increase the PCM volume of the second card with 2dB.   When
136              both playback and capture volumes exist, this is applied to both
137              volumes.
138
139
140       amixer -c 2 cset iface=MIXER,name='Line Playback Volume",index=1 40%
141              will set the third soundcard's second line playback volume(s) to
142              40%
143
144
145       amixer -c 2 cset numid=34 40%
146              will set the 34th soundcard element to 40%
147
148

SEE ALSO

150        alsamixer(1)
151
152

BUGS

154       None known.
155
156

AUTHOR

158       amixer  is  by  Jaroslav  Kysela <perex@perex.cz>.  This document is by
159       Paul Winkler <zarmzarm@erols.com> and Jaroslav Kysela <perex@perex.cz>.
160
161
162
163                                  11 Aug 2000                        AMIXER(1)
Impressum