Jump to content

Improving AD7180 device driver - mmap() query


Recommended Posts

Guest SanchayanMaity
Posted

Hello,

 

I am using ADV7180 as a video decoder and using it to view the four analog channels.

 

I have to display four channels at the same time in four different windows. It's ok if the frame speed is low and not 25fps for the four windows. Can be 5 - 10 fps. Right now, even with two windows, it is not acceptable. I am using OpenCV for capturing and rendering.

 

I am using ioctl call to the adv driver to switch the channel. Though ultimately this is one byte, i think may be i can improve the timing and frame rate by circumventing the icotl call.

 

I read about mmap implementation in chapter 15 of LDD and was thinking of using it, but, i am not sure if this will really give me a performance improvement. Any thoughts on this?

 

Also, if i implement mmap, how should i synchronise the user and kernel space? Kernel space can inform user space by sending a signal and user space can write to the shared memory, but, how do i inform the kernel space to now read the memory and do this cycle vice versa?

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...