Thread (9 messages) 9 messages, 3 authors, 2022-07-26

Re: [PATCH 3/4] media: mediatek: vcodec: Add mt8188 decoder's chip name

From: Chen-Yu Tsai <wenst@chromium.org>
Date: 2022-07-26 08:28:54
Also in: linux-devicetree, linux-media, linux-mediatek, lkml

On Tue, Jul 26, 2022 at 12:02 PM Yunfei Dong [off-list ref] wrote:
Getting mt8188's chip name according to decoder compatible name.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
This should be squashed with the previous patch adding the compatible
to the driver.
quoted hunk ↗ jump to hunk
---
 drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
index 7d194a476713..641f533c417f 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
@@ -227,6 +227,8 @@ static int mtk_vcodec_dec_get_chip_name(void *priv)
                return 8195;
        else if (of_device_is_compatible(dev->of_node, "mediatek,mt8186-vcodec-dec"))
                return 8186;
+       else if (of_device_is_compatible(dev->of_node, "mediatek,mt8188-vcodec-dec"))
+               return 8188;
        else
                return 8173;
 }
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help