media: mediatek: vcodec: Change encoder v4l2 capability value
authorYunfei Dong <yunfei.dong@mediatek.com>
Fri, 10 Jun 2022 01:53:15 +0000 (02:53 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:51:44 +0000 (08:51 +0100)
Change the value of v4l2 capability parameters: driver and card.

Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c

index dc6aada882d9b34b8cfba98152e201f734f6d39e..4140b4dd85bf603ac6440288297396da8ab7ae64 100644 (file)
@@ -22,7 +22,6 @@
 #define MTK_VCODEC_DRV_NAME    "mtk_vcodec_drv"
 #define MTK_VCODEC_DEC_NAME    "mtk-vcodec-dec"
 #define MTK_VCODEC_ENC_NAME    "mtk-vcodec-enc"
-#define MTK_PLATFORM_STR       "platform:mt8173"
 
 #define MTK_VCODEC_MAX_PLANES  3
 #define MTK_V4L2_BENCHMARK     0
index f22efad761d831f5cc3dededf72c4fb3a7bf4645..d1211a675c33a57fc7af5369e4bc769d84dd6977 100644 (file)
@@ -226,9 +226,9 @@ static int vidioc_venc_querycap(struct file *file, void *priv,
 {
        int platform_name = mtk_vcodec_enc_get_chip_name(priv);
 
-       strscpy(cap->driver, MTK_VCODEC_ENC_NAME, sizeof(cap->driver));
+       strscpy(cap->driver, MTK_VCODEC_DRV_NAME, sizeof(cap->driver));
+       strscpy(cap->card, MTK_VCODEC_ENC_NAME, sizeof(cap->card));
        snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:mt%d-enc", platform_name);
-       strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card));
 
        return 0;
 }