media: amphion: fix decoder's interlaced field
authorMing Qian <ming.qian@nxp.com>
Thu, 14 Apr 2022 08:57:22 +0000 (09:57 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:51:25 +0000 (08:51 +0100)
commitd9a6a70d65cd7d25bad00580157ad660330023d8
tree353a95510acb09f5286eacfc74648f6bee56c31a
parent802239d55d0a76ac2718ed322ee3f2e41c20f6a6
media: amphion: fix decoder's interlaced field

For interlaced frame, the amphion vpu will store the
two fields sequential into one buffer, top-bottom order
so the field should be set to V4L2_FIELD_SEQ_TB.
fix the previous bug that set it to V4L2_FIELD_SEQ_BT wrongly.

Fixes: 6de8d628df6e ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c