diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2010-07-15 04:46:34 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2010-07-15 04:46:34 +0000 |
commit | 959cd66e59fe388f6811a5f72f0d6335fe4310d1 (patch) | |
tree | bec0e48e1b43545cfa97e026d869a2e9e6486e89 /sys/dev/usb/uvideo.c | |
parent | 59cb4ff01f7202d2e69dd3011fd755605b7cc8da (diff) |
* Comment poll support in conf.h
* Comment why we call the video interrupt in the mmap interface now in
uvideo.c
Diffstat (limited to 'sys/dev/usb/uvideo.c')
-rw-r--r-- | sys/dev/usb/uvideo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index ba5bd60acbd..7a4f78aa637 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.132 2010/07/14 21:24:33 jakemsr Exp $ */ +/* $OpenBSD: uvideo.c,v 1.133 2010/07/15 04:46:33 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -2094,6 +2094,11 @@ uvideo_mmap_queue(struct uvideo_softc *sc, uint8_t *buf, int len) sc->sc_mmap_cur = 0; wakeup(sc); + + /* + * In case userland uses poll(2), signal that we have a frame + * ready to dequeue. + */ sc->sc_uplayer_intr(sc->sc_uplayer_arg); } |