summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunfei Dong <yunfei.dong@mediatek.com>2022-06-17 09:25:21 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 10:28:35 +0200
commit083f54a7c9c66496b9d9f3c50dfdca24e6aa7012 (patch)
treed6c70d38413645907309899884db45698fb6b51b
parentmedia: usb: gspca: aligned '*' each line (diff)
downloadlinux-083f54a7c9c66496b9d9f3c50dfdca24e6aa7012.tar.xz
linux-083f54a7c9c66496b9d9f3c50dfdca24e6aa7012.zip
media: mediatek: vcodec: Fix non subdev architecture open power fail
According to subdev_bitmap bit value to open hardware power, need to set subdev_bitmap value for non subdev architecture. Fixes: c05bada35f01 ("media: mtk-vcodec: Add to support multi hardware decode") Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Tested-by: Chen-Yu Tsai <wenst@chromium.org> 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_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c
index bf858b5ee6f3..55dffb61e58c 100644
--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c
+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c
@@ -388,6 +388,8 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
mtk_v4l2_err("Main device of_platform_populate failed.");
goto err_reg_cont;
}
+ } else {
+ set_bit(MTK_VDEC_CORE, dev->subdev_bitmap);
}
atomic_set(&dev->dec_active_cnt, 0);