AnsweredAssumed Answered

iMX7 CSI MIPI : Deinterlace/FBUF Stride Configuration

Question asked by dh29 on Jul 4, 2018
Latest reply on Jul 13, 2018 by dh29

Linux Kernel: v4.9.11


In my on-going battle to get an AD7280M (csi-mipi) working on an i.MX7 I can now capture an image from a PAL camera feed. Stable picture, correct colors, picture is clear....BUT.... I have 2 copies of the image, one on top of the other.


I am guessing that this is due to the ADV7280M sending INTERLACED picture, and I am not set-up for this.


To de-interlace the two images, I have enabled CSI de-interlacing (CSI_CSICR18 bit2) but I don't understand what to set register CSI_CSIFBUF_PARA


The mx6s_capture.c driver configures FBUF_STRIDE to the image pixel width i.e. 720 for my PAL input of 720x576, but according to the iMX7's manual,  

it should be set to Width of Frame Buffer (in double words) - Width of Image (in double words).


This raises the question of how do I find the Width of Frame Buffer ??


I have seen post i.mx6ul CSI receive interlace ccir656 video issue  which asks the same question but without any conclusion:


[Please note the iMX7. For other CSI MIPI posts, on the (very) rare occasions I've had a reply from NXP-support-staff, they have quoted advice only relevant to the iMX6 with an IPU which uses a completely different driver framework].