]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: amphion: reset instance if it's aborted before codec header parsed
authorMing Qian <ming.qian@nxp.com>
Fri, 30 Sep 2022 06:40:47 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:03 +0000 (13:32 +0100)
commitfc6579f00506eced99cbd58b6cb24cc580251bd4
treea41e9333e4a3204d8b77638eaeb3723164f7c81b
parente7d1e0b752641963be2586b0d8a563294e8dc2e4
media: amphion: reset instance if it's aborted before codec header parsed

[ Upstream commit 3984ea32e83bcad06b4b034ddd4b0a934c1b2f91 ]

there is hardware limitation that if it's aborted before
the first codec header parsed, the codec may be stalled
unless we do reset codec.

and drop the source change event if it's triggered after reset.

Fixes: 6de8d628df6e ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
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