[PATCH 6/6] media: mediatek: vcodec: Use default bus_info for encoder capability
Chen-Yu Tsai
wenst at chromium.org
Fri Jul 1 03:52:37 PDT 2022
Since commit f2d8b6917f3b ("media: v4l: ioctl: Set bus_info in
v4l_querycap()"), the V4L2 core provides a default value for the
bus_info field for platform and PCI devices. This value will match
the default value for media devices added by commit cef699749f37
("media: mc: Set bus_info in media_device_init()"). These defaults
are stable and device-specific.
Drop the custom capability bus_info from the mtk-vcodec encoder
driver, and use the defaults.
Signed-off-by: Chen-Yu Tsai <wenst at chromium.org>
---
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
index cc286e59021e..25e816863597 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
@@ -237,7 +237,6 @@ static int vidioc_venc_querycap(struct file *file, void *priv,
int platform_name = mtk_vcodec_enc_get_chip_name(priv);
strscpy(cap->driver, dev->driver->name, sizeof(cap->driver));
- snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:mt%d-enc", platform_name);
snprintf(cap->card, sizeof(cap->card), "MT%d video encoder", platform_name);
return 0;
--
2.37.0.rc0.161.g10f37bed90-goog
More information about the Linux-mediatek
mailing list