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