media: amphion: handle picture skipped event
authorMing Qian <ming.qian@nxp.com>
Wed, 20 Apr 2022 11:35:59 +0000 (13:35 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:19 +0000 (11:02 +0200)
commitbe9fd51072a1c0e886281a060e79c669ebdf2049
treed31c5991a11ce9e9613937eb101d9b664384b474
parent455e583638bd3a4066a1b22a11068871b0b48e47
media: amphion: handle picture skipped event

For some invalid frames,
especially multiple consecutive invalid frames,
they all can't be decoded,
then the firmware can send picture skipped event
to notify driver that some frames are invalid,
driver can return them with error flag.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vpu_defs.h
drivers/media/platform/amphion/vpu_malone.c
drivers/media/platform/amphion/vpu_msgs.c