xref: /freebsd/usr.sbin/mixer/mixer.8 (revision daf1cffce2e07931f27c6c6998652e90df6ba87e)
1.\" Copyright (c) 1997
2.\"	Mike Pritchard <mpp@FreeBSD.ORG>.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. Neither the name of the author nor the names of its contributors
13.\"    may be used to endorse or promote products derived from this software
14.\"    without specific prior written permission.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY MIKE PRITCHARD AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD$
29.\"
30.Dd January 9, 1997
31.Dt MIXER 8
32.Os
33.Sh NAME
34.Nm mixer
35.Nd set/display soundcard mixer values
36.Sh SYNOPSIS
37.Nm
38.Op Fl f Ar device
39.Oo
40.Oo Ns
41.Ar dev Op Ar lvol Ns Op Ar :rvol
42.Li | recsrc |
43.Ar {^|+|-|=}rec rdev
44.Oc
45.Ar ... \&
46.Oc
47.Sh DESCRIPTION
48The
49.Nm
50command is used to set and display soundcard mixer device levels. It may
51also be used to start and stop recording from the soundcard.  The list
52of mixer devices that may be modified are:
53.Pp
54.Bd -ragged -offset indent
55vol, bass, treble, synth, pcm, speaker, mic, cd, mix,
56pcm2, rec, igain, ogain, line1, line2, and line3.
57.Ed
58.Pp
59Not all mixer devices are available.
60.Pp
61When
62.Nm
63is run without any arguments, all supported devices are displayed
64along with current values.
65If the
66.Ar dev
67argument is specified, the value for the
68.Ar dev
69device will be displayed.
70.Pp
71To modify the mixer value
72.Ar dev ,
73the optional left and right channel settings of
74.Ar lvol Ns Op Ar :rvol
75may be specified.  The
76.Ar lvol
77and
78.Ar rvol
79arguments may be from 0 - 100.
80.Pp
81To change the recording device you use one of:
82.Bl -tag -width =rec -offset indent
83.It ^rec
84toggles
85.Ar rdev
86of possible recording devices
87.It +rec
88adds
89.Ar rdev
90to possible recording devices
91.It -rec
92removes
93.Ar rdev
94from possible recording devices
95.It =rec
96sets the recording device to
97.Ar rdev
98.El
99.Pp
100The above commands work on an internal mask.  After all the options
101have been parsed, it will set then read the mask from the sound card.
102This will let you see EXACTLY what the soundcard is using for the
103recording device(s).
104.Pp
105The option recsrc will display the current recording devices.
106.Pp
107The option
108.Fl f
109.Ar device
110will open
111.Ar device
112as the mixer device.
113This will ONLY work if the
114.Fl f
115option is immediately after the
116.Nm
117command.
118.Sh FILES
119.Bl -tag -width /dev/mixer -compact
120.It Pa /dev/mixer
121the default mixer device
122.El
123.Sh SEE ALSO
124.Xr cdcontrol 1 ,
125.Xr cdplay 1
126.Sh HISTORY
127The
128.Nm
129command first appeared in
130.Fx 2.0.5 .
131.Sh AUTHORS
132Original source by
133.An Craig Metz Aq cmetz@thor.tjhsst.edu
134and
135.An Hannu Savolainen .
136Mostly rewritten by
137.An John-Mark Gurney Aq jmg@FreeBSD.org .
138This
139manual page was written by
140.An Mike Pritchard Aq mpp@FreeBSD.org .
141