-/* $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>
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);
}
-/* $OpenBSD: conf.h,v 1.100 2010/07/14 21:24:33 jakemsr Exp $ */
+/* $OpenBSD: conf.h,v 1.101 2010/07/15 04:46:33 mglocker Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
(dev_type_stop((*))) enodev, 0, selfalse, \
(dev_type_mmap((*))) enodev }
-/* open, close, ioctl, read, mmap */
+/* open, close, ioctl, read, mmap, poll */
#define cdev_video_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \