Age | Commit message (Collapse) | Author |
|
if (cpu_class != CPUCLASS_386) {
Since we don't support 386 now, unconditionally execute the block.
ok tom toby
|
|
From Marc Winiger <mw@msys.ch>
ok dlg, claudio.
|
|
- rename a few functions in var.c to names that make more sense.
- introduce Var_Deletei because it makes more sense.
- rewrite .for loops to use a local LoopVar construct to avoid looking up more
stuff.
- reformat var.c to near K&R
- rewrite most comments in var.c
shown to a few people. millert@ gave me his okay since it passes through
ports correctly.
|
|
|
|
Also remove the _MEXTREMOVE macro which was only used by MFREE.
This time with the uipc_mbuf.c change that I missed last time.
|
|
- document the difference between "play" and "cdplay" more clearly
ok mjc
|
|
|
|
|
|
> xcalloc is unneeded here since i is always 0 and we always use the
> memory after initializing it.
>
> Initial diff from Igor Zinovik.
>
> OK niallo and xsa.
|
|
memory after initializing it.
Initial diff from Igor Zinovik.
OK niallo and xsa.
|
|
|
|
and the r5000 errata workaround made them non-relocatable, so always copy
trampolines. This will be revisited when the tlb refill code will be selected
at runtime (soon).
|
|
space, either cache coherent for regular mappings and uncached for
BUS_DMA_COHERENT mappings, as done on all other platforms with direct mappings.
|
|
explicitly use ovbcopy() even if our kernel memcpy() supports
overlapping buffers.
|
|
the mixer layer to the audio layer, differentiate between the
'monitor' class and the 'outputs' class instead of lumping them
together. not all mixers have a monitor class entry which was
causing the outputs class to be ignored.
- look for monitor port in the monitor class, but if the monitor
port is not found in the monitor class look in the outputs class
as well. the code was effectively looking in both the monitor and
outputs classes before, so this is no real change.
sets up audio_info.play.[gain|balance] correctly on at least emu(4),
auich(4), auvia(4) and snapper(4) ... probably most other AC'97 devices
as well. as a result, audioctl(1) works much better and the overall
volume can be set with /dev/audio instead of needing to go through
/dev/mixer.
from deanna@
thanks again to those who tested this change
|
|
pointed out by mglocker@
|
|
to allow buffer sizes and pointer to the buffer to be set to reasonable
values for the sample size of the data to be read/written.
fixes kernel corruption seen with azalia and probably other drivers
that are using something other than 8kHz monaural mulaw as the default
encoding when doing 'dd if=/dev/audio of=foo' as the first audio
operation after boot.
problem reported by deanna@
|
|
|
|
|
|
this will be used to encrypt/decrypt EAPOL-Key frames payload.
|
|
one that can be used with other ciphers than WEP.
|
|
|
|
|
|
OK markus@, mcbride@, "sounds reasonable" henning@
|
|
startup; ok krw@ henning@
|
|
ok ckuethe, sturm
|
|
|
|
fc-cache for @fontdir
ok kili@ espie@
|
|
|
|
and the userland sample size matters.
there may be different sample size factors for play and record,
so use the appropriate factor when userland sets the blocksize.
the reported blocksize, hiwat and lowat are only for the play buffer.
IMO, it would be good to report the record blocksize, hiwat and lowat
as well, but that is another issue.
tested with emu(4) and an auvia(4) modified to only do stereo in
hardware.
|
|
requested by jsg@
the digital out port is obscured by the small PCI card access slot
on the moosehead case, but we don't support the digital ports anyway
|
|
|
|
|
|
Input and OK ray@.
|
|
|
|
that gcc likes better
|
|
and modulo. generates smaller code and circumvents bugs seen on macppc
and mac68k. ok deraadt@ art@ miod@
|
|
|
|
date, and even if i update it, it will obsolete itself if we add or remove
options. it works when it makes sense, like it should.
after a request from Igor Zinovik
|
|
|
|
ok otto
|
|
|
|
OK joris@.
|
|
|
|
may not be the same sample size as what userland is to receive.
account for the discrepency between the sample sizes when comparing
how much to copy out with what userland expects.
- only copy out the part of the buffer that is in the format userland
expects.
emu(4) can now record with all encodings it claims to be able to.
that is, dd if=/dev/audio of=foo does as audio(4) says (monaural
mu-law) and does it correctly.
AFAIKS, the only other driver that sets a read factor is uaudio(4),
and that depends on what the hardware supports.
tested on i386, amd64 and sgi with 3 different emu(4) cards
|
|
2x on each loop, only loop .5x times
fixes hard hangs on i386 and "hiccups" on sgi when these functions are
used through e.g. dd if=/dev/audio of=foo, since mulaw is the default
encoding.
the commit history wrt this code is interesting. I am responsible for
introducing this braindamage to OpenBSD ... and note that
linear16_to_linear8_[lb]e had it right ...
|
|
|
|
|
|
|
|
|