aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunfei Dong <yunfei.dong@mediatek.com>2022-06-10 02:53:13 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 08:49:54 +0100
commita8a7a278c56ad3b4ddd4db9a960e0537d032b0b3 (patch)
tree21889a2c32df25cbe4f1fb2067fc17deeaf473d3
parentcce4de66ccca78b45b78f9935c1bb14765ca8490 (diff)
media: mediatek: vcodec: Change decoder v4l2 capability value
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>
-rw-r--r--drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
index 957e0f09468f..a17ae044ba73 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
@@ -247,9 +247,9 @@ static int vidioc_vdec_querycap(struct file *file, void *priv,
{
int platform_name = mtk_vcodec_dec_get_chip_name(priv);
- strscpy(cap->driver, MTK_VCODEC_DEC_NAME, sizeof(cap->driver));
+ strscpy(cap->driver, MTK_VCODEC_DRV_NAME, sizeof(cap->driver));
+ strscpy(cap->card, MTK_VCODEC_DEC_NAME, sizeof(cap->card));
snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:mt%d-dec", platform_name);
- strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card));
return 0;
}

Privacy Policy