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

111293 Commits

Author SHA1 Message Date
deraadt
aa4f595c73 wrap do/while construct around the function macro SESSRELE(); ok dlg 2008-11-07 02:22:33 +00:00
brad
df27fb9b9a Replace the number of bits to shift with EVL_PRIO_BITS in the
EVL_PRIOFTAG macro.

ok naddy@
2008-11-07 00:52:40 +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
marco
7df90d51a3 Collapse all sanity checks of hids into one function.
Originaly from jordan
2008-11-06 23:41:28 +00:00
art
93452c4a3a Some paranoia and deconfusion.
- setrunnable should never be run on SIDL processes. That's a bug and will
   cause all kinds of trouble. Change the switch statement to panic
   if that happens.
 - p->p_stat == SRUN implies that p != curproc since curproc will always be
   SONPROC. This is a leftover from before SONPROC.

deraadt@ "commit"
2008-11-06 22:11:36 +00:00
deraadt
7dbf2fe683 remove a really stupid comment. Duh, of course it can block 2008-11-06 21:47:50 +00:00
claudio
55e4966575 Mixed up characters found by Gleydson Soares. 2008-11-06 21:16:27 +00:00
mglocker
68804a9be3 Fix a small bug which made it impossible to use more than one
video control.
2008-11-06 21:07:13 +00:00
michele
66c01e6ab5 Introduced IPv6 support of uniform model for TTL handling.
OK claudio@ laurent@
2008-11-06 20:53:10 +00:00
deraadt
935ea7a724 oops 2008-11-06 19:49:13 +00:00
michele
3c9bed427f Fix cvs id tag. 2008-11-06 19:32:51 +00:00
deraadt
62736b278b panic if cpu_switchto() returns from a dead process 2008-11-06 19:19:04 +00:00
deraadt
2d72004169 correct comment 2008-11-06 19:14:26 +00:00
deraadt
4693c0704f delete checks for impossible conditions 2008-11-06 19:13:31 +00:00
deraadt
89069bc79d queue the mountroot hooks to be run in the same order 2008-11-06 19:12:37 +00:00
deraadt
5dcbd16c20 use PAGE_SIZE in FS_KERNMAXFILESIZE() use, note this is not the same as getpagesize() elsewhere. otto, please fix correctly after 2008-11-06 18:13:31 +00:00
deraadt
e4b46811df Have called pass pagesize into FS_KERNMAXFILESIZE(), because there is no
automatic symbol that has this information.  PAGE_SIZE is simply not
portable, or even fixed on some systems.
ok otto
2008-11-06 18:01:44 +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
damien
4c79309881 The EEPROM is lying about antennas. Hardcode things based on the chip
ID which is also what the vendor driver happens to do.
Fixes a firmware SYSASSERT on the 5100 when adding the broadcast node.

Reported by Jean-Michel Bessot and Robert <robert at openbsd.pap.st>
2008-11-06 17:04:55 +00:00
oga
874e413461 Oops. Forgot to commit this chunk with the last commit.
Remove softc members and prototypes related to the tasklet system.
2008-11-06 16:37:53 +00:00
dhill
46f191dc85 Make sure we do not unlock twice.
nice catch, oga@
2008-11-06 16:06:25 +00:00
oga
b39eefee1c Remove the drm_locked_tasklet interface. The only consumer that used it
was the i915 vblank swap ioctl, which just went kaput.
2008-11-06 14:25:21 +00:00
oga
0bdc3a5948 The i915 vblank swap ioctl is fundamentally racy.
using it allowed rendering to continue while waiting for a vblank swap,
and often this lead to flickering and rendering a new scene before the
swap. this broke a lot of things.

With the removal of this swap, userland falls back to the old way of
waiting for the vblank then doing the swap itself, this is smooth
enough.

I decided independantly to kill this, but the intel guys recently
concurred.  Comment change comes from Eric Anholt at intel.
2008-11-06 14:08:03 +00:00
sobrado
dfc0241fee add a description for the recently added c-mode.
ok jmc@
2008-11-06 14:04:48 +00:00
otto
b05e0fcd38 if the freeprot flag (F) is set, do not do delayed frees for chunks
(might catch errors closer to the trouble spot) and junk fill pages just
before reuse instead of immediate (we can't access the page anyway)
since we set PROT_NONE in the F case. ok djm@
2008-11-06 12:32:45 +00:00
brad
1c367a8940 regen 2008-11-06 12:04:17 +00:00
brad
4a95d650f7 Add the PCI id for the Broadcom BCM5903F Ethernet chipset. 2008-11-06 12:03:43 +00:00
sobrado
01cb5e7c07 use spacing consistently to make example shorter and more readable;
improve indentation.
2008-11-06 11:19:24 +00:00
todd
6fa5fca922 input and volume twiddles
o set init data to match snapper_set_foo*
o set volume to 190 (audible compared to the default)
o set input to mic (most common usage)
ok jakemsr@
2008-11-06 10:01:50 +00:00
ian
9892f1fc6c More complete example, for e.g., usb devices that need wep/wpa keys.
OK (with typo corrected) sthen@
2008-11-06 09:16:25 +00:00
djm
a661090b95 -Wall -Wshadow clean, no binary change 2008-11-06 05:35:56 +00:00
brad
25f04c70ad Set the IFCAP_VLAN_MTU capabilities flag so these interfaces are allowed
to transmit full sized VLAN tagged frames.
2008-11-06 02:32:28 +00:00
martynas
55bf9f26ef add support for iso8859-13 2008-11-06 01:53:42 +00:00
jakemsr
ce98e25143 return an error when trying to get stereo values from a mono
control.  makes mixerctl(1) output more sensible.

ok drahn, todd
2008-11-05 21:38:03 +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
sobrado
09f93a467a add gilles@ as copyright holder for this file. 2008-11-05 12:49:58 +00:00
sobrado
1f3c2bcfdd add a few missing id tags; there are a bunch of files, and developers
will probably miss this change when working on more important matters,
so it is probably better to sort them now.  there is a risk of losing
the tags if a change needs to be reverted too.

written with excellent advice from jmc@

ok gilles@
2008-11-05 12:14:45 +00:00
jmc
79ead1f207 passord -> password;
fixes user/5975 from Rene Maroufi
2008-11-05 11:22:54 +00:00
dlg
ad3d84860a wrap use of KNOTE macro arguments in () to prevent potential strange
expansion.

requested by otto@
2008-11-05 09:20:17 +00:00
dlg
8b068fc7eb wrap an if statement in a macro up with do { } while (0) so it is safe to
use in other if/else blocks.

"yeah" deraadt@
2008-11-05 09:07:56 +00:00
matthieu
689e66ba15 since mmclose() is only called once for the final close,
set ap_open_count = 0 in mmclose() instread of decrementing it.
ok miod@, oga@.
2008-11-05 06:32:47 +00:00
deraadt
9e7059df99 sync 2008-11-05 04:14:47 +00:00
brad
68fbf177a6 Remove some PCI macros no longer being used. 2008-11-05 04:08:24 +00:00
stevesk
589c47a46e add dynamic forward escape command line; ok djm@ 2008-11-05 03:23:09 +00:00
jakemsr
886995fdba remove unused macros, partly from Alexey Suslikov 2008-11-05 03:20:34 +00:00
jakemsr
262988ec63 * use uint8_t instead of int to hold the value of an 8-bit register.
* for outputs.{bass,treble}, 0 dB corresponds to mixer value 128,
  not 0.
* line-in is configured as the default recording source; set
  sc->sc_record_source accordingly.
* add missing register to initialization code.

from Marco (marco2z at arsystel com), thanks

testing/ok drahn@
2008-11-05 01:43:09 +00:00
jakemsr
668f6621af * remove two custom unsolicited event handlers in favor of generic
jack sense handling.  makes azalia_generic_mixer_pinctrl useless, so zap it.
* azalia_generic_mixer_pin_sense works well enough to not need guessing
of pin direction in azalia_generic_mixer_default.

from Alexey Suslikov, thanks
2008-11-05 01:14:01 +00:00
martynas
9f776d9a43 man page states that alpha is fully ieee compliant, but it does not
maintain inexact flag.  some platforms implement -mieee-with-inexact;
however it's not practical since it slows down the code, with very
small benefit.  note the fact in the man page that inexact flag is
not maintained.  w/ a tweak from jmc@.  ok jmc@, millert@, merdely@
2008-11-04 23:59:37 +00:00