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.Op Fl s 40.Oo Ar dev 41.Op Oo +|- Ns Oc Ns Ar lvol Ns Op : Ns Oo +|- Oc Ns Ar rvol Oc 42.Ar ... 43.Nm 44.Op Fl f Ar device 45.Op Fl s 46.Cm recsrc 47.Ar ... 48.Nm 49.Op Fl f Ar device 50.Op Fl s 51.Sm off 52.Eo \&{ 53.Cm ^ | + | - | = 54.Sm on 55.Ec \&} Ns Cm rec 56.Ar rdev 57.Ar ... 58.Sh DESCRIPTION 59The 60.Nm 61utility is used to set and display soundcard mixer device levels. 62It may 63also be used to start and stop recording from the soundcard. The list 64of mixer devices that may be modified are: 65.Pp 66.Bd -ragged -offset indent 67vol, bass, treble, synth, pcm, speaker, mic, cd, mix, 68pcm2, rec, igain, ogain, line1, line2, and line3. 69.Ed 70.Pp 71Not all mixer devices are available. 72.Pp 73When 74.Nm 75is run without any arguments, all supported devices are displayed 76along with current values. 77If the 78.Ar dev 79argument is specified, the value for the 80.Ar dev 81device will be displayed. 82.Pp 83To modify the mixer value 84.Ar dev , 85the optional left and right channel settings of 86.Ar lvol Ns Op : Ns Ar rvol 87may be specified. The 88.Ar lvol 89and 90.Ar rvol 91arguments may be from 0 - 100. Omitting 92.Ar dev 93and including only the channel settings will change the main volume level. 94.Pp 95If the left or right channel settings are prefixed with 96.Sq + 97or 98.Sq - 99the value following will be used as a relative adjustment, modifying the 100current settings by the amount specified. 101.Pp 102If the 103.Fl s 104flag is used, the current mixer values will be displayed in a format suitable 105for use as the command-line arguments to a future invocation of 106.Nm 107(as above). 108.Pp 109To change the recording device you use one of: 110.Bl -tag -width =rec -offset indent 111.It Cm ^rec 112toggles 113.Ar rdev 114of possible recording devices 115.It Cm +rec 116adds 117.Ar rdev 118to possible recording devices 119.It Cm -rec 120removes 121.Ar rdev 122from possible recording devices 123.It Cm =rec 124sets the recording device to 125.Ar rdev 126.El 127.Pp 128The above commands work on an internal mask. After all the options 129have been parsed, it will set then read the mask from the sound card. 130This will let you see EXACTLY what the soundcard is using for the 131recording device(s). 132.Pp 133The option recsrc will display the current recording devices. 134.Pp 135The option 136.Fl f 137.Ar device 138will open 139.Ar device 140as the mixer device. 141.Sh FILES 142.Bl -tag -width /dev/mixer -compact 143.It Pa /dev/mixer 144the default mixer device 145.El 146.Sh SEE ALSO 147.Xr cdcontrol 1 148.Sh HISTORY 149The 150.Nm 151utility first appeared in 152.Fx 2.0.5 . 153.Sh AUTHORS 154.An -nosplit 155Original source by 156.An Craig Metz Aq cmetz@thor.tjhsst.edu 157and 158.An Hannu Savolainen . 159Mostly rewritten by 160.An John-Mark Gurney Aq jmg@FreeBSD.org . 161This 162manual page was written by 163.An Mike Pritchard Aq mpp@FreeBSD.org . 164