media: amphion: decoder support display delay for all formats
authorMing Qian <ming.qian@nxp.com>
Mon, 10 Jul 2023 07:44:11 +0000 (15:44 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:31:49 +0000 (09:31 +0200)
commitb69713f502027150ecc08e663fa1804d78b3ef42
tree9e6a94cc28e2e108edf3a537c9e47b4b6b6d4731
parentc677d7ae83141d390d1253abebafa49c962afb52
media: amphion: decoder support display delay for all formats

the firmware only support low latency mode for h264,
but firmware will notify an event to driver
when one frame is decoded,
if V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE is enabled,
and V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY is set to 0,
driver can display the decoded frame immediately.

Fixes: ffa331d9bf94 ("media: amphion: decoder implement display delay enable")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/amphion/vdec.c