mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 19:01:45 -04:00
media: mediatek: vcodec: Add encode to support dbgfs
Add encode to support dbgfs. Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
5910584b56
commit
cc77021822
@@ -358,6 +358,7 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
|
||||
goto err_enc_reg;
|
||||
}
|
||||
|
||||
mtk_vcodec_dbgfs_init(dev, true);
|
||||
mtk_v4l2_debug(0, "encoder %d registered as /dev/video%d",
|
||||
dev->venc_pdata->core_id, vfd_enc->num);
|
||||
|
||||
@@ -468,6 +469,7 @@ static void mtk_vcodec_enc_remove(struct platform_device *pdev)
|
||||
if (dev->vfd_enc)
|
||||
video_unregister_device(dev->vfd_enc);
|
||||
|
||||
mtk_vcodec_dbgfs_deinit(dev);
|
||||
v4l2_device_unregister(&dev->v4l2_dev);
|
||||
pm_runtime_disable(dev->pm.dev);
|
||||
mtk_vcodec_fw_release(dev->fw_handler);
|
||||
|
||||
Reference in New Issue
Block a user