2008-06-10 03:45:44     poll_wait

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-06-10 03:45:44     poll_wait

Pranay Upadhyay (INDIA)

Message: 56894   

 

Hello  sir,

 

    For reading and writing the frame continuously from the ppi driver.May I used the poll_wait function.If we can use then in which function I use this function. As I study the driver development ,for interaction with read and write function I can use the poll_wair function.Please reply.There is some problem that I am not getting any response from many days from you all developers(sorry).I have change the function from wait_event_interruptible to wait_event_interruptible_timeout , then I am getting interrupt regularly from ppi driver, but not getting any video on the screen.May be I have not given the currect jiffies problem.Please reply this forum.

 

-Thanks &Regards

 

Pranay

QuoteReplyEditDelete

 

 

2008-06-10 12:01:31     Re: poll_wait

Robin Getz (UNITED STATES)

Message: 56939   

 

Pranay:

 

I do not understand the question you are asking.

 

The only way to help is to break things out to smaller things that I can understand.

 

If you need an output PPI driver - why not use the existing frame buffer driver?

 

If you need an input PPI driver - why not use the existing v4l driver?

QuoteReplyEditDelete

 

 

2008-06-11 10:32:24     Re: poll_wait

Pranay Upadhyay (INDIA)

Message: 57000   

 

Hello sir,

 

  Thanks for reply.Sir,I have written the ppi0 driver for input and ppi1 driver for output.For BF 561 EZ-kit.Both are working properly.Now I want to integrate the both the driver so that I can video in-out for real time video from bf 561.

 

            I have write the application code in which both the driver opened and read -write doing respectively. For one video frame captured through VCR through ppi0 driver and display on the monitor through ppi1 driver.And after one frame there is not showing any thing on screen.

 

 

 

         What is happening here that , the kernel sleep on wait_event_interrruptible after sending one video frame, because condition is not getting true.For this I have change the function from wait_event_interrruptible to wait_event_interrruptible_timeout then kernel wake up and giving interrupt  from both the  driver but there is  nothing is displaying on the screen.In read function pdev-done is showing 0, should be there 1.

 

               If you requirred the  Application code for view then I will attatch with my forum.I am giving my full strength for solving this problem.Please help.

 

-Thanks&Regards

 

Pranay

QuoteReplyEditDelete

 

 

2008-06-11 11:03:54     Re: poll_wait

Robin Getz (UNITED STATES)

Message: 57003   

 

Pranay:

 

You didn't answer my question - there is no such thing as PPI driver - there is /dev/fb or v4l drivers. Which dones did you do?

 

-Robin

QuoteReplyEditDelete

 

 

2008-06-12 01:11:44     Re: poll_wait

Pranay Upadhyay (INDIA)

Message: 57056   

 

Hello sir,

 

   Thanks. Actually  my mind was stick on that we can develop such driver for video in-out, so I was going for this.My finally aim is that for real time video in-out through the BF 561 EZ-kit.

 

   So please tell me the path for selecting the these two driver and how we can implement. Because I was already taking enough time for this.My local engg. is going to terminate this project.

 

-Thanks & Regards

 

Pranay 

QuoteReplyEditDelete

 

 

2008-06-14 09:08:13     Re: poll_wait

Robin Getz (UNITED STATES)

Message: 57300   

 

Pranay:

 

One function - one driver.

 

There are many ways to do what you wnt - only you can decide which is the best/most appropirate way for your specific design.

 

-Robin

Attachments

    Outcomes