media: mtk-vcodec: vdec: add media device if using stateless api
The stateless API requires a media device for issuing requests. Add one if we are being instantiated as a stateless decoder. [acourbot: refactor, cleanup and split] [tzungbi: fix wrong device minor number reference] Signed-off-by:Yunfei Dong <yunfei.dong@mediatek.com> Co-developed-by:
Alexandre Courbot <acourbot@chromium.org> Signed-off-by:
Alexandre Courbot <acourbot@chromium.org> Signed-off-by:
Tzung-Bi Shih <tzungbi@google.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Showing
- drivers/media/platform/Kconfig 2 additions, 0 deletionsdrivers/media/platform/Kconfig
- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 39 additions, 2 deletionsdrivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
- drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h 2 additions, 0 deletionsdrivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h
Please register or sign in to comment