We have successfully set up an ADV7282A-M to feed video from a PAL source into a TX2 over CSI2.
After applying this patch from upstream I can get the individual fields to show up as 720x288 frames from the v4l2 device. And by guessing which of them is the top and bottom fields respectively, I can merge them and get pretty much perfect result.
The problem is that guessing which field is which is not a very stable solution. Normally, the v4l2 driver is supposed to set the
field field to
V4L2_FIELD_BOTTOM, however the tegra camera library only sets it to
- Is it possible to get it to recognize the field correctly? AFAIK, this information is included in the CSI2 bit stream so it should be perfectly doable. For instance, the raspberry pi unicam driver seems able to do it. In that case, it seems to be done by looking at the
- If it is not supported currently, is it a software or hardware limitation? I.e., can I somehow extend the tegra camera library code to do this?