media: mtk-vcodec: Support MT8192
Adds MT8192's compatible "mediatek,mt8192-vcodec-dec". Adds MT8192's device private data mtk_lat_sig_core_pdata. 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:
parent
4215692f50
commit
04fac6a1fc
|
@ -68,6 +68,7 @@ extern const struct v4l2_m2m_ops mtk_vdec_m2m_ops;
|
|||
extern const struct media_device_ops mtk_vcodec_media_ops;
|
||||
extern const struct mtk_vcodec_dec_pdata mtk_vdec_8173_pdata;
|
||||
extern const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata;
|
||||
extern const struct mtk_vcodec_dec_pdata mtk_lat_sig_core_pdata;
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -392,6 +392,10 @@ static const struct of_device_id mtk_vcodec_match[] = {
|
|||
.compatible = "mediatek,mt8183-vcodec-dec",
|
||||
.data = &mtk_vdec_8183_pdata,
|
||||
},
|
||||
{
|
||||
.compatible = "mediatek,mt8192-vcodec-dec",
|
||||
.data = &mtk_lat_sig_core_pdata,
|
||||
},
|
||||
{},
|
||||
};
|
||||
|
||||
|
|
|
@ -357,3 +357,19 @@ const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata = {
|
|||
.worker = mtk_vdec_worker,
|
||||
.flush_decoder = mtk_vdec_flush_decoder,
|
||||
};
|
||||
|
||||
const struct mtk_vcodec_dec_pdata mtk_lat_sig_core_pdata = {
|
||||
.chip = MTK_MT8192,
|
||||
.init_vdec_params = mtk_init_vdec_params,
|
||||
.ctrls_setup = mtk_vcodec_dec_ctrls_setup,
|
||||
.vdec_vb2_ops = &mtk_vdec_request_vb2_ops,
|
||||
.vdec_formats = mtk_video_formats,
|
||||
.num_formats = NUM_FORMATS,
|
||||
.default_out_fmt = &mtk_video_formats[DEFAULT_OUT_FMT_IDX],
|
||||
.default_cap_fmt = &mtk_video_formats[DEFAULT_CAP_FMT_IDX],
|
||||
.vdec_framesizes = mtk_vdec_framesizes,
|
||||
.num_framesizes = NUM_SUPPORTED_FRAMESIZE,
|
||||
.uses_stateless_api = true,
|
||||
.worker = mtk_vdec_worker,
|
||||
.flush_decoder = mtk_vdec_flush_decoder,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue