Home | History | Annotate | only in /src/usr.bin/mixerctl
History log of /src/usr.bin/mixerctl
RevisionDateAuthorComments
 1.1 13-May-1997  augustss Add audio utility programs.
The audio device can be inspected and changed by audioctl,
and the mixer device by mixerctl. The command syntax was
inspired by sysctl.
 1.25 14-May-2010  joerg Resort sections to canonical order
 1.24 19-Aug-2009  joerg Fix-up syntax after wizd.
 1.23 15-Aug-2008  wiz branches: 1.23.4; 1.23.8; 1.23.10;
Fix typo in Dd argument.
 1.22 15-Aug-2008  apb For binary controls, ++ and -- toggle between on and off.
 1.21 30-Apr-2008  martin branches: 1.21.2;
Convert TNF licenses to new 2 clause variant
 1.20 25-Feb-2006  wiz branches: 1.20.20;
Two improvements, from a diff from jmc@openbsd.
 1.19 23-Jan-2004  snj Mention mixerctl.conf in FILES and SEE ALSO. While here, tidy up some
sentences. Bump date. Closes my own PR misc/23516.
 1.18 03-Jan-2004  augustss Fix typo about which mixer device is used.
 1.17 23-Oct-2003  cube Allow using '+=number' (resp. -=number) to produce the same effect as
several '++' (resp. '--'). Suggested by David Brownlee in tech-kern.
 1.16 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.15 26-Sep-2002  wiz Ispell. Begin new sentences on a new line.
 1.14 27-Jan-2002  jdolecek Use '-d' rather than '-f' for specification of alternative
mixer or audioctl device. The support for '-f' is kept for compatibility
for now.
 1.13 01-Dec-2001  wiz Sort sections.
 1.12 01-Dec-2001  wiz Whitespace cleanup.
 1.11 29-Dec-2000  augustss Add ++ and -- for changing mixer controls. They bump the value to
the next possible setting.
 1.10 10-Mar-1999  erh Add missing .El line.
 1.9 21-Aug-1998  augustss Use audio and mixer devices with unit numbers. Also allow the devices
without unit numbers of a compatibility option is set. Fixes PR 5991.
 1.8 09-May-1998  augustss Fix typo.
 1.7 09-May-1998  augustss Add some more explanatory text.
 1.6 27-Apr-1998  augustss Chnage the name of the environment variables just introduced.
 1.5 27-Apr-1998  augustss dd environment variable for default mixer device.
 1.4 19-Oct-1997  lukem fix up .Nm usage
 1.3 08-Oct-1997  jtc Fix tipo inherited from old version of TNF copyright template.
 1.2 15-May-1997  augustss Add HISTORY section.
 1.1 13-May-1997  augustss Add audio utility programs.
The audio device can be inspected and changed by audioctl,
and the mixer device by mixerctl. The command syntax was
inspired by sysctl.
 1.20.20.1 18-May-2008  yamt sync with head.
 1.21.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.23.10.1 21-Apr-2010  matt sync to netbsd-5
 1.23.8.1 25-Aug-2009  snj Pull up following revision(s) (requested by joerg in ticket #919):
usr.bin/mixerctl/mixerctl.1: revision 1.24
Fix-up syntax after wizd.
 1.23.4.1 25-Aug-2009  snj Pull up following revision(s) (requested by joerg in ticket #919):
usr.bin/mixerctl/mixerctl.1: revision 1.24
Fix-up syntax after wizd.
 1.30 26-Dec-2021  rillig mixerctl: add colon after 'Usage', add space after comma
 1.29 17-Dec-2021  christos fix error messages, usage, add static, more checks for ioctl, KNF
 1.28 17-Dec-2021  christos Provide a clipping function and use it to prevent setting values out of bounds.
(from RVP)
 1.27 23-Feb-2017  kre Generate usage error for bad usage, before attempting any other operations.
This means that "mixerctl" (no args) will generate a usage msg, even when
/dev/mixer cannot be opened (or any other device given via -d or $MIXERDEVICE)

While here, get rid of "goto usage" replacing the usage: with a
static inline void __dead function... The compiler ought to optimise
the calls into essentially the same code as existed with the goto version,
but this is much cleaner.

Also, mixerctl falls back on /dev/mixer0 if /dev/mixer cannot be opened.
(that is old code - probably from when /dev/mixer was first added)

It used to do that when called as mixerctl -d /dev/mixer or with
"MIXERDEVICE=/dev/mixer mixerctl...". No longer. Now the fallback (which
is probably obsolete now anyway) only happens when the user doesn't specify
any mixer device (by either method) and the default of /dev/mixer is used.
In other cases, only the device specified is tried.
 1.26 28-Oct-2012  isaki branches: 1.26.12; 1.26.16;
Fix indent and style. no functional changes.
 1.25 28-Oct-2012  isaki Avoid SEGV even if audio device has no mixer features.
Fix PR/47003
 1.24 14-Jul-2009  apb branches: 1.24.6; 1.24.12;
Compare strings with strcmp(), not ==.
Part of PR 41255 from Kurt Lidl.
 1.23 12-Apr-2009  lukem fix -Wcast-qual issues
 1.22 28-Apr-2008  martin branches: 1.22.8;
Remove clause 3 and 4 from TNF licenses
 1.21 23-Oct-2003  cube branches: 1.21.32;
Allow using '+=number' (resp. -=number) to produce the same effect as
several '++' (resp. '--'). Suggested by David Brownlee in tech-kern.
 1.20 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.19 14-Jul-2003  itojun asprintf is safer. add error trap for malloc failure
 1.18 23-Jun-2003  agc Add NetBSD RCS Ids.
 1.17 31-Jan-2002  augustss Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails.
 1.16 27-Jan-2002  jdolecek Use '-d' rather than '-f' for specification of alternative
mixer or audioctl device. The support for '-f' is kept for compatibility
for now.
 1.15 29-Dec-2000  augustss Add ++ and -- for changing mixer controls. They bump the value to
the next possible setting.
 1.14 25-Nov-1998  augustss Make the copyright header conform to the NetBSD template.
 1.13 21-Aug-1998  augustss Fix thinko in last commit.
 1.12 21-Aug-1998  augustss Use audio and mixer devices with unit numbers. Also allow the devices
without unit numbers of a compatibility option is set. Fixes PR 5991.
 1.11 27-Apr-1998  augustss Chnage the name of the environment variables just introduced.
 1.10 27-Apr-1998  augustss dd environment variable for default mixer device.
 1.9 19-Oct-1997  augustss Print unit if verbose.
 1.8 16-Oct-1997  augustss Test for valid mixer class the right way. From PR 4279.
 1.7 08-Oct-1997  jtc Fix tipo inherited from old version of TNF copyright template.
 1.6 07-Oct-1997  augustss Get rid of warnings.
 1.5 24-Aug-1997  augustss Print class correctly for linked fields.
 1.4 23-May-1997  augustss Improve printing of values when changing a variable.
 1.3 19-May-1997  augustss Fix bugs when recording source is a set.
 1.2 19-May-1997  augustss Fix some buglets and clean up a little.
 1.1 13-May-1997  augustss Add audio utility programs.
The audio device can be inspected and changed by audioctl,
and the mixer device by mixerctl. The command syntax was
inspired by sysctl.
 1.21.32.1 18-May-2008  yamt sync with head.
 1.22.8.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.24.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.6.1 30-Oct-2012  yamt sync with head
 1.26.16.1 21-Apr-2017  bouyer Sync with HEAD
 1.26.12.1 20-Mar-2017  pgoyette Sync with HEAD

RSS XML Feed