Skip to contentSkip to conversation

media: amphion: fix decoder's interlaced filed

PATCH In review Ming Qian 2 participants 3 messages Apr 12, 2022

Subsystems (2)
lore
Share & tools
lore

Ming Qian

author maintainer
#0 lore raw

PATCH 1/1 media: amphion: fix decoder's interlaced filed

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

---
 drivers/media/platform/amphion/vdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/amphion/vdec.c +1 -1
index 09628dd0c855..0a1976852b0d 100644
@@ -804,7 +804,7 @@ static void vdec_init_fmt(struct vpu_inst *inst)
 	if (vdec->codec_info.progressive)
 		inst->cap_format.field = V4L2_FIELD_NONE;
 	else
-		inst->cap_format.field = V4L2_FIELD_SEQ_BT;
+		inst->cap_format.field = V4L2_FIELD_SEQ_TB;
 	if (vdec->codec_info.color_primaries == V4L2_COLORSPACE_DEFAULT)
 		vdec->codec_info.color_primaries = V4L2_COLORSPACE_REC709;
 	if (vdec->codec_info.transfer_chars == V4L2_XFER_FUNC_DEFAULT)
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

Hi Ming,

In Subject: s/filed/field

Quoted 3 lines · Ming Qian

For interlaced frame, the amphion vpu will store the two fileds sequential into one buffer, top-bottom order

s/fileds/fields

Quoted 1 line

so the filed should be set to V4L2_FIELD_SEQ_TB.

s/filed/field

Quoted 1 line

fix the previous bug that setting it to V4L2_FIELD_SEQ_BT wrongly.

s/setting/set

Do you need to pass a Fixes tag too?

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

author maintainer
#2 lore raw

Hi Fabio,

Thank you for your reminder

Quoted 28 lines

-----Original Message-----
From: Fabio Estevam [mailto:[email protected]]
Sent: Tuesday, April 12, 2022 6:55 PM
To: Ming Qian <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>; Shawn Guo <[email protected]>; Hans Verkuil <[email protected]>; Rob Herring <[email protected]>; Sascha Hauer <[email protected]>; Sascha Hauer <[email protected]>; dl-linux-imx <[email protected]>; Aisheng Dong <[email protected]>; linux-media <[email protected]>; linux-kernel <[email protected]>; moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE <[email protected]>
Subject: [EXT] Re: [PATCH] media: amphion: fix decoder's interlaced filed

Caution: EXT Email

Hi Ming,

In Subject: s/filed/field

Quoted 3 lines · Ming Qian

For interlaced frame, the amphion vpu will store the two fileds sequential into one buffer, top-bottom order

s/fileds/fields

Quoted 1 line

so the filed should be set to V4L2_FIELD_SEQ_TB.

Quoted 7 lines

s/filed/field

Quoted 1 line

fix the previous bug that setting it to V4L2_FIELD_SEQ_BT wrongly.

s/setting/set

Do you need to pass a Fixes tag too?

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel