Originally Posted by danoscar
I have not found any for this. You can get some through X APIs but what I get back is 24hz on a 23.976hz rate. Not good enough. To be able to do really good A/V sync handling you need a resolution of at least micro seconds. nano seconds would be better.
It looks like XF86VidModeGetModeLine should work; it can give you, amongst other things, the pixel clock rate and the total pixels (including blanking) for both H and V, so the VSYNC rate can be calculated almost trivially.
I hope our driver fully implements that API now that I've mentioned it:-)