This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

waitforvsync ioctl question on DM8168 interlaced mode output

Hello

Posting this question second time. Earlier question did not appear on the forum for some reason.

I have a question on FB driver's waitforvsync ioctl on PAL mode (576i) on DM8168
I want to refresh the frame buffer at 25 fps.

For this I am using double buffering using the pan display ioctl.

To time the refresh at the rate of 25 fps I am calling waitforvsync two times before calling pan display.

Following is rough pseudo code:

while (1)
{
prepare_buffer
waitforvsync()
waitforvsync()
pandisplay()
}

The problem is that some times on the video output we are seeing interlaced effect on fast moving graphics.

It seems I should update the display just before the vsync corresponding to odd field.


Is there any way in the FB driver to find out whether vsync is for odd field or even field?
Or is there any way to count vsyncs from the board boot?
Or is there any way to configure the fb driver to give only odd vsyncs?

Thanks
George