History log of /src/usr.bin/mixerctl/mixerctl.c |
Revision | | Date | Author | Comments |
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
|