]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: mtk-vcodec: vdec: handle firmware version field
authorAlexandre Courbot <acourbot@chromium.org>
Fri, 6 Aug 2021 04:15:23 +0000 (06:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Aug 2021 13:49:48 +0000 (15:49 +0200)
commitdb4f21ae77a9eb1ed823b2ffd6fd96be61c1b15f
tree08c37f1dd40c0df8f6ad99487e087af8e62626aa
parentaa9b9fe017684d026ded6f79100d7833b3666490
media: mtk-vcodec: vdec: handle firmware version field

Firmwares for decoders newer than MT8173 will include an ABI version
number in their initialization ack message. Add the capacity to manage
it and make initialization fail if the firmware ABI is of a version that
we don't support.

For MT8173, this ABI version field does not exist ; thus ignore it on
this chip. There should only be one firmware version available for it
anyway.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateful.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h
drivers/media/platform/mtk-vcodec/vdec_ipi_msg.h
drivers/media/platform/mtk-vcodec/vdec_vpu_if.c