]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c2020ef25f1d40211c1f1eba0a2bf8787bdda40
tree353a95510acb09f5286eacfc74648f6bee56c31a
parent28c2b75f58f4662063c2b9f38a5f78e32bcf7e8c
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: 27eef5e9b843 ("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