Jiri Slaby a écrit :
# HG changeset patch # User Jiri Slaby jirislaby@gmail.com # Date 1192096885 -7200 # Node ID 2e25afbef75bbc71b14af66fe674f8bff66fa11f # Parent 4fbd75ec9acee9dc29de45491c6f3cee58b07076 v4l2_extension: fix poll
Don't return POLLIN when in fact no data is ready. add mask variable and OR it with POLL flags according to the state (we don't do it so far).
Signed-off-by: Jiri Slaby jirislaby@gmail.com
diff -r 4fbd75ec9ace -r 2e25afbef75b linux/drivers/media/video/v4l2_extension/v4l2_extension-hlp.c --- a/linux/drivers/media/video/v4l2_extension/v4l2_extension-hlp.c Thu Oct 11 11:58:23 2007 +0200 +++ b/linux/drivers/media/video/v4l2_extension/v4l2_extension-hlp.c Thu Oct 11 12:01:25 2007 +0200 @@ -52,10 +52,11 @@ static unsigned int v4l2ext_hlp_poll(str static unsigned int v4l2ext_hlp_poll(struct file *file, poll_table *wait) { struct helperd *dev = file->private_data;
unsigned int mask = 0;
poll_wait(file, &dev->waitqueue, wait);
- return POLLIN | POLLRDNORM;
- return mask;
}
static int v4l2ext_hlp_open(struct inode *inode, struct file *file)
Patch series comitted. Thanks Thierry