1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

14920 Commits

Author SHA1 Message Date
sobrado
a9050c90c4 Usage -> usage. 2008-11-12 16:13:46 +00:00
ratchov
8d673bd4ec if the device disappear the mixer and demultiplexer chains are
destroyed. If this happen then warn and exit, rather than crashing.
2008-11-11 21:26:21 +00:00
ratchov
a302c703d8 remove the SIGNALS sections, describe signals in DESCRIPTION
from jmc@
2008-11-11 19:44:19 +00:00
ratchov
d4e1905928 expose the volume knob in server mode too 2008-11-11 19:21:20 +00:00
ratchov
c4e6537041 termninate non-server aucat when it's idle rather that using
the hackish {MIX,SUB}_AUTOQUIT features. This way we don't
have to care about possible references on destroyed objects.
2008-11-11 13:12:03 +00:00
ratchov
5e429d4b6c when not in server mode, aucat terminates automatically using
the {MIX,SUB}_AUTAQUIT features. In this case we're not
allowed to directly touch dev_mix and dev_sub because they
can disappar. So disable the ``suspend'' and ``quit'' bits
when {MIX,SUB}_AUTAQUIT are used.
2008-11-11 12:56:02 +00:00
espie
96ede575d7 allocate job only when it's needed.
okay otto@
2008-11-11 09:32:20 +00:00
jmc
0bc6b7c5fc escape minus signs; 2008-11-11 07:47:48 +00:00
stevesk
3af73591de for sshd -T print 'permitopen any' vs. 'permitopen' for case of no
permitopen's; ok and input dtucker@
2008-11-11 03:55:11 +00:00
stevesk
39d5ce731b USE_AFS not referenced so remove #ifdef. fixes sshd -T not printing
kerberosgetafstoken. ok dtucker@
2008-11-11 02:58:09 +00:00
ratchov
23be494310 add a per-stream ``soft volume'' knob and the corresponding -v option.
The code will be useful later for the volume knob in the sndio API.
2008-11-10 23:25:37 +00:00
espie
f16224d672 missing static 2008-11-10 10:48:43 +00:00
espie
4918fa9df6 adjust comment to reflect reality (CompatRunCommand is gone) 2008-11-10 09:22:18 +00:00
deraadt
3fde226a77 the extra kget() macro just befuddles the things we need to replace with a sysctl mechanism later 2008-11-09 23:00:56 +00:00
espie
57faf8220e protect against .orig files resulting from a patch. 2008-11-09 23:00:42 +00:00
ratchov
baead350f5 make aucat(1) stop automatically the audio(1) device if it's idle. This
way, when in server mode, it consumes no CPU if there are no clients.
Later, this will allow to start aucat(1) at session or system startup.
2008-11-09 16:26:07 +00:00
tobias
7c635cc475 typo fixed (overriden -> overridden)
ok espie, jmc
2008-11-09 12:34:46 +00:00
tobias
7a347c71a9 Removed unneeded conversion from RCSNUM to string in rcs_rev_setlog.
oki joris@
2008-11-09 08:51:43 +00:00
jmc
c69e92d259 sort; 2008-11-08 15:46:49 +00:00
tobias
b88e6b7b8a Support for retrieving revisions from branches in branches was missing.
Reported by chl@, ok joris@
2008-11-08 11:48:49 +00:00
ratchov
96b931e2c8 set the default device to /dev/audio for legacy mode.
From Thomas Pfaff <tpfaff _at_ agderlink.no> and tweaks from me
2008-11-08 10:40:52 +00:00
ratchov
3b0b3dc5cf when dev_attach()ing play-only or record-only streams, don't
use both play and record parameters (one of them might be
NULL, causing aucat to segfault).
2008-11-08 10:01:43 +00:00
jmc
abe48976b2 from reed@netbsd:
Be consistent: document the birthtime field of struct stat for
the "B" field specifier.
2008-11-08 08:24:10 +00:00
canacar
b284ba03b5 Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m
2008-11-08 06:38:27 +00:00
chl
8194b5ee61 fix format string
ok otto@
2008-11-08 01:29:10 +00:00
dtucker
8cdc75f4a5 Move JPAKE define to make life easier for portable. ok djm@ 2008-11-07 23:34:48 +00:00
ratchov
d0e01a5c0c expose the block size in the sndio API by making par->round writable
and thus remove the ugly rate <-> block-size table from
sio_setpar(3). Handle the block size negociation in aucat(1), since
it has few constrains the code is overally simpler.
ok jakemsr@, major crank suggested by deraadt@
2008-11-07 21:01:15 +00:00
stevesk
ba017f0388 add space to some log/debug messages for readability; ok djm@ markus@ 2008-11-07 18:50:18 +00:00
stevesk
7f00fb7c4d spelling/typo in comment 2008-11-07 00:42:12 +00:00
ratchov
9a0a50baa9 when attaching a new stream, don't overwrite it's parameters
with the emulated ones (otherwise the next time it's attached
conversions will not be setup).
2008-11-07 00:21:02 +00:00
ratchov
336c639fb1 drop/silence calculation is wrong when xrun occurs and client and
device number of channels are not the same. The bug was hidden until
now, because mixer and demux input and outputs used to have the same
frame size.
2008-11-06 17:47:52 +00:00
sobrado
dfc0241fee add a description for the recently added c-mode.
ok jmc@
2008-11-06 14:04:48 +00:00
djm
a661090b95 -Wall -Wshadow clean, no binary change 2008-11-06 05:35:56 +00:00
chl
c91ca4a4f4 add missing header needed by strcmp/strerror/memset functions.
ok canacar@
2008-11-05 16:03:02 +00:00
canacar
035d703dc4 Fix some function prototypes, remove unused variables and commented out code 2008-11-05 15:48:44 +00:00
jmc
79ead1f207 passord -> password;
fixes user/5975 from Rene Maroufi
2008-11-05 11:22:54 +00:00
stevesk
589c47a46e add dynamic forward escape command line; ok djm@ 2008-11-05 03:23:09 +00:00
ratchov
5b34de854a conversions are smarter now, remove corresponding ``BUGS'' item 2008-11-04 22:20:08 +00:00
ratchov
0a76e6a657 split code that converts any->any in two parts: one to encode
native->any and one to decode any->native. It is simpler and
faster this way.
2008-11-04 22:18:12 +00:00
stevesk
0d71b6d5d9 because parse_forward() is now used to parse all forward types (DLR),
and it malloc's space for host variables, we don't need to malloc
here.  fixes small memory leaks.

previously dynamic forwards were not parsed in parse_forward() and
space was not malloc'd in that case.

ok djm@
2008-11-04 19:18:00 +00:00
espie
40e26ef46b spelling: ambigious -> ambiguous 2008-11-04 19:00:08 +00:00
ratchov
905425fa78 cleanup: remove channel mapping bits from encoding conversion code.
As a side effect, reduce CPU usage by ~10% on envy(4) devices.
2008-11-04 18:24:06 +00:00
ratchov
7dcd0bea7a add "new" conversion code to map any channel range into any other
channel range (based on the encoding conversion code). Will allow to
unentangle channel mapping from encoding conversion. As a side effect,
greatly reduces CPU usage for channel mapping. No functionnal change.
2008-11-04 17:51:46 +00:00
ratchov
013043a665 cleanup: resample stream while in native format and remove resampling
bits from the encoding conversion code. As a side effect this reduces
CPU usage by 30% on envy(4).
2008-11-04 15:22:40 +00:00
ratchov
b9d1c4b541 optimization: add "new" resampling code (actually based on the existing
conversion bits) and use it when resampling only is required (ie for
clients using s16 encoding), this is the most common case. Reduces CPU
usage by ~50%. No functional change.
2008-11-04 14:16:09 +00:00
djm
5e1e7a5242 Add support for an experimental zero-knowledge password authentication
method using the J-PAKE protocol described in F. Hao, P. Ryan,
"Password Authenticated Key Exchange by Juggling", 16th Workshop on
Security Protocols, Cambridge, April 2008.

This method allows password-based authentication without exposing
the password to the server. Instead, the client and server exchange
cryptographic proofs to demonstrate of knowledge of the password while
revealing nothing useful to an attacker or compromised endpoint.

This is experimental, work-in-progress code and is presently
compiled-time disabled (turn on -DJPAKE in Makefile.inc).

"just commit it.  It isn't too intrusive." deraadt@
2008-11-04 08:22:12 +00:00
djm
0970178fad need unistd.h for close() prototype 2008-11-04 07:58:09 +00:00
espie
6c2dbbdaa4 changes to get target equivalence to work better.
- add new file to create lists of equivalent targets (siblings)
- use that for sequential mode to have much better VPATH support
- separate checking commands from reporting error, for later.
- zap DieHorribly accordingly
- renumber existing flags
- signal_running_jobs() is simpler than pass_signal_to_jobs()
- new debug option -dn for name matching.

Similar code to handle parallel make is still missing.

thanks to Mark, Miod, Theo, Otto, Todd for tests and/or comments.
2008-11-04 07:22:35 +00:00
ratchov
98e08d4061 rename mixxxx and subxxx fields of struct abuf to avoid confusion:
Add ``i'' to offsets in the input buffer and ``o'' to offsets
in the output buffer. This is necessary because input and output
use no more the same frame size.
2008-11-03 22:55:34 +00:00
ratchov
75c5fbd47e A small optimization: handle most N-channel <-> M-channel conversions
inside the mixer and the demultiplexer. This way, aucat will not
trigger the heavy conversion code when only channel conversions are
required. Cuts ~50% of the CPU usage on envy(4) devices, can improve
surround 4.0, 5.1 and 7.1 capable devices. No functionnal change.
2008-11-03 22:25:13 +00:00