v4l2: add interlaced field support in try_fmt [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Mon, 6 Jul 2020 15:51:26 +0000 (08:51 -0700)
committerSong Zhao <song.zhao@amlogic.com>
Thu, 9 Jul 2020 08:19:29 +0000 (01:19 -0700)
commit2f328ed1523e5fc3cc04c5a966548d84e085d22d
tree3d3b8a1f78e83b8b89660156c680bee4e9dae983
parent0b61e02f592f71fd5ee1c5747f8a4c45c1a4a62e
v4l2: add interlaced field support in try_fmt [1/1]

PD#SWPL-29144

Problem:
try_fmt only return V4L2_FIELD_ANY. But gstreamer v4l2 plugin want to
check whether V4L2_FIELD_INTERLACED is supported or not.

Solution:
For H264/Mpeg2, add V4L2_FIELD_INTERLACED support.

Verify:
U212 + gst-launch

Change-Id: I8516840b2d8e13e6795a9749c36153c7e77dc9b4
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c