kre
887a30551e
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.
2017-02-23 14:09:11 +00:00
isaki
97e2545aef
Fix indent and style. no functional changes.
2012-10-28 02:01:15 +00:00
isaki
afae845d58
Avoid SEGV even if audio device has no mixer features.
...
Fix PR/47003
2012-10-28 01:51:20 +00:00
joerg
a4a2a21512
Resort sections to canonical order
2010-05-14 17:20:06 +00:00
joerg
d1a45441e8
Fix-up syntax after wizd.
2009-08-19 15:26:59 +00:00
apb
d47a5ef0ce
Compare strings with strcmp(), not ==.
...
Part of PR 41255 from Kurt Lidl.
2009-07-14 21:02:24 +00:00
lukem
15f4bd42af
fix -Wcast-qual issues
2009-04-12 14:17:25 +00:00
wiz
5c6f9cb082
Fix typo in Dd argument.
2008-08-15 21:10:57 +00:00
apb
b1dd3534e7
For binary controls, ++ and -- toggle between on and off.
2008-08-15 17:41:29 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
wiz
91c57604ae
Two improvements, from a diff from jmc@openbsd.
2006-02-25 01:19:22 +00:00
snj
33a43be982
Mention mixerctl.conf in FILES and SEE ALSO. While here, tidy up some
...
sentences. Bump date. Closes my own PR misc/23516.
2004-01-23 21:12:07 +00:00
augustss
063a980b4e
Fix typo about which mixer device is used.
2004-01-03 18:43:02 +00:00
cube
926567478a
Allow using '+=number' (resp. -=number) to produce the same effect as
...
several '++' (resp. '--'). Suggested by David Brownlee in tech-kern.
2003-10-23 22:17:58 +00:00
salo
0f5a0c156d
netbsd.org->NetBSD.org
2003-07-26 20:34:11 +00:00
itojun
5d7783072e
asprintf is safer. add error trap for malloc failure
2003-07-14 09:38:14 +00:00
agc
a8d6388e6f
Add NetBSD RCS Ids.
2003-06-23 13:05:47 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
5bfcb907e0
Ispell. Begin new sentences on a new line.
2002-09-26 01:23:00 +00:00
augustss
d1c426fe38
Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails.
2002-01-31 00:03:23 +00:00
jdolecek
b88029fb96
Use '-d' rather than '-f' for specification of alternative
...
mixer or audioctl device. The support for '-f' is kept for compatibility
for now.
2002-01-27 10:09:55 +00:00
wiz
56533d2558
Sort sections.
2001-12-01 20:40:20 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
augustss
e0a4556c29
Add ++ and -- for changing mixer controls. They bump the value to
...
the next possible setting.
2000-12-29 13:30:26 +00:00
erh
fa45851f9b
Add missing .El line.
1999-03-10 05:14:51 +00:00
augustss
9726cfd1fb
Make the copyright header conform to the NetBSD template.
1998-11-25 22:17:06 +00:00
augustss
479659f618
Fix thinko in last commit.
1998-08-21 19:52:39 +00:00
augustss
022a8ef794
Use audio and mixer devices with unit numbers. Also allow the devices
...
without unit numbers of a compatibility option is set. Fixes PR 5991.
1998-08-21 19:45:37 +00:00
augustss
7ccd275655
Fix typo.
1998-05-09 12:41:16 +00:00
augustss
9f5ffe60bb
Add some more explanatory text.
1998-05-09 12:37:42 +00:00
augustss
b817f6c32a
Chnage the name of the environment variables just introduced.
1998-04-27 16:55:23 +00:00
augustss
19c8dd08ce
dd environment variable for default mixer device.
1998-04-27 16:52:03 +00:00
augustss
8f7e2006bb
Print unit if verbose.
1997-10-19 07:46:04 +00:00
lukem
79adb0bcbe
fix up .Nm usage
1997-10-19 05:09:03 +00:00
augustss
8bbf1c89e8
Test for valid mixer class the right way. From PR 4279.
1997-10-16 23:28:17 +00:00
jtc
3bc5599f8b
Fix tipo inherited from old version of TNF copyright template.
1997-10-08 22:19:18 +00:00
augustss
b217726cdc
Get rid of warnings.
1997-10-07 13:55:03 +00:00
augustss
ad6d4eb815
Print class correctly for linked fields.
1997-08-24 23:20:04 +00:00
augustss
f02b371b53
Improve printing of values when changing a variable.
1997-05-23 17:55:29 +00:00
augustss
677762bbed
Fix bugs when recording source is a set.
1997-05-19 17:32:07 +00:00
augustss
3f516911f6
Fix some buglets and clean up a little.
1997-05-19 16:32:54 +00:00
augustss
240af559df
Add HISTORY section.
1997-05-15 16:38:34 +00:00
augustss
9d5e7c9a4c
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.
1997-05-13 17:35:50 +00:00