diff mbox series

[4/4] media: mediatek: vcodec: Add mt8188 encoder's chip name

Message ID 20220726040155.17206-4-yunfei.dong@mediatek.com
State Accepted
Commit b813e39a6906908e2169574063cace9a03bd8ed6
Headers show
Series [1/4] dt-bindings: media: mediatek: vcodec: add decoder dt-bindings for mt8188 | expand

Commit Message

Yunfei Dong July 26, 2022, 4:01 a.m. UTC
Getting mt8188's chip name according to encoder compatible name.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
---
 drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

AngeloGioacchino Del Regno July 26, 2022, 8:06 a.m. UTC | #1
Il 26/07/22 06:01, Yunfei Dong ha scritto:
> 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>
diff mbox series

Patch

diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
index 25e816863597..75454b955638 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
@@ -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;
 }