media: mediatek: vcodec: Add mt8188 encoder's chip name

Getting mt8188's chip name according to encoder compatible name.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Yunfei Dong 2022-07-27 04:37:21 +02:00 committed by Mauro Carvalho Chehab
parent b9b9db6a2d
commit b813e39a69

View File

@ -225,6 +225,8 @@ static int mtk_vcodec_enc_get_chip_name(void *priv)
return 8192;
else if (of_device_is_compatible(dev->of_node, "mediatek,mt8195-vcodec-enc"))
return 8195;
else if (of_device_is_compatible(dev->of_node, "mediatek,mt8188-vcodec-enc"))
return 8188;
else
return 8173;
}