does vpfe driver support select or poll sys call?
dear all: I want to use select method to query data in capture buffer(ioctl VIDIOC_DQBUF ),but when i look up the driver in davinci_vpfe.c,I cann't find it realized it: static struct file_operations vpfe_fops = { .owner = THIS_MODULE, .open = vpfe_open, .release = vpfe_release, .ioctl = vpfe_ioctl, .mmap = vpfe_mmap }; It has not realized poll() function in the file_operations set! so it is uselessly for sys_call select i thinked! but the v4l2 interface support the system call! 2009-08-17 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: does vpfe driver support select or poll sys call?
Hi, Poll() is not supported, but you could do select() call. Please try it. It had worked for us. Murali Karicheri Software Design Engineer Texas Instruments Inc. Germantown, MD 20874 email: m-kariche...@ti.com From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of zuowenping Sent: Monday, August 17, 2009 2:41 AM To: davinci-linux-open-source Subject: does vpfe driver support select or poll sys call? dear all: I want to use select method to query data in capture buffer(ioctl VIDIOC_DQBUF ),but when i look up the driver in davinci_vpfe.c,I cann't find it realized it: static struct file_operations vpfe_fops = { .owner = THIS_MODULE, .open = vpfe_open, .release = vpfe_release, .ioctl = vpfe_ioctl, .mmap = vpfe_mmap }; It has not realized poll() function in the file_operations set! so it is uselessly for sys_call select i thinked! but the v4l2 interface support the system call! 2009-08-17 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: does vpfe driver support select or poll sys call?
Hi, On Monday 17 August 2009 16:46:07 Karicheri, Muralidharan wrote: > Hi, > Poll() is not supported, but you could do select() call. Please try it. It > had worked for us. That's quite weird, as the select syscall uses the poll file operation internally. I suppose the original poster was referring to the LSP 2.6.18 kernel, while you might be referring to the public patches sent for inclusion in the mainline kernel. Implementing poll support in the LSP kernel shouldn't be difficult, it seems to just be a matter of calling videobuf_poll_stream(). -- Regards, Laurent Pinchart ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: does vpfe driver support select or poll sys call?
Laurent, Thanks. That was my bad. I have checked up both the code base LSP 2.10 and Git version of the driver and both has support for poll/select. They call videobuf_poll_stream(). May be what is referenced here is LSP version older than this. Murali Karicheri Software Design Engineer Texas Instruments Inc. Germantown, MD 20874 new phone: 301-407-9583 Old Phone : 301-515-3736 (will be deprecated) email: m-kariche...@ti.com >-Original Message- >From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com] >Sent: Monday, August 17, 2009 10:55 AM >To: davinci-linux-open-source@linux.davincidsp.com >Cc: Karicheri, Muralidharan; zuowenping >Subject: Re: does vpfe driver support select or poll sys call? > >Hi, > >On Monday 17 August 2009 16:46:07 Karicheri, Muralidharan wrote: >> Hi, >> Poll() is not supported, but you could do select() call. Please try it. >It >> had worked for us. > >That's quite weird, as the select syscall uses the poll file operation >internally. I suppose the original poster was referring to the LSP 2.6.18 >kernel, while you might be referring to the public patches sent for >inclusion >in the mainline kernel. > >Implementing poll support in the LSP kernel shouldn't be difficult, it >seems >to just be a matter of calling videobuf_poll_stream(). > >-- >Regards, > >Laurent Pinchart ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source