Tool/software: Linux
My client has designed a custom board that uses an AM4379 processor to capture video from a Techwell TW9906 video decoder.
The TW9906 has eight data lines which are connected to CAM_0 through CAM_7 and the decoder's PCLK, VSYNC and HSYNC are also connected to their respective pins on the AM4379. On this design the decoder's I2C signals are routed to the AM4379's I2C2_SDA and I2C2_SCL pins.
I've configured the kernel according to the information contained within the "Linux Core VPFE User's Guide" and the “Kernel Configuration Options” section of the “Linux Core DSS User’s Guide”.
In the DTB I have the ti,am437x-vpfe-interface set equal to <1> and in the driver I have the follow format setting defaulted to:
format->width = 640;
format->height = 480;
format->code = MEDIA_BUS_FMT_UYVY8_2X8;
format->field = V4L2_FIELD_NONE;
format->colorspace = V4L2_COLORSPACE_SMPTE170M;
With these settings, I’m able to display a 640x480 image in black and white, but every other line is missing.
I would like to display every line and have the image in full color.
If I change format->field = V4L2_FIELD_INTERLACED; I get a blank screen.
If I change format->code = MEDIA_BUS_FMT_YUYV8_2X8; the image is displayed in shade of purple and green.
How do I configure the DTB and the driver to capture ITU-R 656 compatible YCbCr (4:2:2) interlaced video data and display it as a complete 640x480 full color image?
Gary