I am trying to get 720p video working on a DM355 device. I have it working, but it appears the V4L2 system returns a duplicate frame from time to time. I've proven it isn't an MPEG encoder problem by feeding two fixed frames into the MPEG encoder and verify I never get duplicate frames. I tried to do the same with the simulated RAW frame into the IPIPE, but I was unable to get the IPIPE to process the image correctly.
What I've tracked it down to (I think) is a problem with the low level buffer management on the davinci_vpfe.c code. I appears the same buffer is received and encoded in the image pipeline. I am running MontaVista's 2.6.18 kernel. I've tried adjusting the VDINT0/1 timing to see if that makes a difference, but it doesn't appear to. Has anyone else seen problems like this?
I posted an example file below: