Does i.MX 8X support V4L2_FIELD_ALTERNATE with MIPI CSI-2?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does i.MX 8X support V4L2_FIELD_ALTERNATE with MIPI CSI-2?

68 Views
petero5
Contributor III

Hi, we are using i.MX 8QuadXPlus with ADV7280A-M over MIPI CSI-2. And the i2c adv7180 driver.

Using VIDIOC_S_FMT with fmt.fmt.pix_mp.field = V4L2_FIELD_ALTERNATE

Following VIDIOC_DQBUF:

buf.field is 1 V4L2_FIELD_NONE...

and buf.sequence increments each time (contrary to "In V4L2_FIELD_ALTERNATE mode the top and bottom field have the same sequence number.") - https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/buffer.html#struct-v4l2-buffer

We are getting 50fps, 720 x 288, so we are receiving interlaced frames.

But the meta data in the v4l2_buffer isn't as expected for V4L2_FIELD_ALTERNATE.

Is there something more we need to do to enable V4L2_FIELD_ALTERNATE support in the drivers?

Thank you
-- Peter

Tags (2)
0 Kudos
Reply
2 Replies

45 Views
joanxie
NXP TechSupport
NXP TechSupport

I sent a patch to you for reference, this is just an example, not official released version, so I couldn't share it on the public community, pls check your mail

0 Kudos
Reply

55 Views
petero5
Contributor III
0 Kudos
Reply