summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@chromium.org>2020-08-21 12:35:56 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-26 10:04:39 +0200
commitc2bc04560ce0b4297f3ea2fec4e4f19848b9d11e (patch)
tree9c9cf0ee9f89a2a2f752b057dc175e49fd33ef28 /drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
parent0dc4b3286125797a3ff03c4e3d7522e6bebadf63 (diff)
media: mtk-vcodec: venc: handle firmware version field
Firmwares for encoders 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 is reserved and thus undefined ; 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> Acked-by: Tiffany Lin <tiffany.lin@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c')
-rw-r--r--drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
index 6ee3bd5453cb..fd17724f29f6 100644
--- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
+++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
@@ -393,6 +393,7 @@ err_enc_pm:
}
static const struct mtk_vcodec_enc_pdata mt8173_pdata = {
+ .chip = MTK_MT8173,
.has_lt_irq = true,
};