]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:26 +0000 (09:48 +0200)
commit683ac024116f062fc176220dd23ec57f4b17981a
tree96e2c9ee38f0db5e9054693b63e28faa4e9ac432
parent8977d9924843823f46696d7d9432ea4b2499ed14
media: amphion: decoder support display delay for all formats

[ Upstream commit b69713f502027150ecc08e663fa1804d78b3ef42 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/amphion/vdec.c