1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/mtk-vcodec
Alexandre Courbot 2da185d6fe media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled
The addition of MT8183 support added a dependency on the SCP remoteproc
module. However the initial patch used the "select" Kconfig directive,
which may result in the SCP module to not be compiled if remoteproc was
disabled. In such a case, mtk-vcodec would try to link against
non-existent SCP symbols. "select" was clearly misused here as explained
in kconfig-language.txt.

Replace this by a "depends" directive on at least one of the VPU and
SCP modules, to allow the driver to be compiled as long as one of these
is enabled, and adapt the code to support this new scenario.

Also adapt the Kconfig text to explain the extra requirements for MT8173
and MT8183.

Reported-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: bf1d556ad4 ("media: mtk-vcodec: abstract firmware interface")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-11-05 14:32:11 +01:00
..
vdec media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
venc media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00
Makefile media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
mtk_vcodec_dec.c media: mtk-vcodec: mtk_vcodec_dec.c: fix comparison to bool 2020-08-29 07:47:54 +02:00
mtk_vcodec_dec.h media: mtk-vcodec: use v4l2_m2m_buffer where appropriate 2020-01-09 14:46:41 +01:00
mtk_vcodec_dec_drv.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_dec_pm.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
mtk_vcodec_dec_pm.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_drv.h media: mtk-vcodec: add support for MT8183 encoder 2020-09-26 10:07:05 +02:00
mtk_vcodec_enc.c media: mtk-vcodec: venc: fix invalid time per frame in S_PARM 2020-09-26 10:11:26 +02:00
mtk_vcodec_enc.h media: mtk-vcodec: use v4l2_m2m_buffer where appropriate 2020-01-09 14:46:41 +01:00
mtk_vcodec_enc_drv.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_enc_pm.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
mtk_vcodec_enc_pm.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_fw.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw.h media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw_priv.h media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
mtk_vcodec_fw_scp.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_fw_vpu.c media: mtk-vcodec: move firmware implementations into their own files 2020-11-05 14:31:32 +01:00
mtk_vcodec_intr.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_intr.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mtk_vcodec_util.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
mtk_vcodec_util.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
vdec_drv_base.h media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_drv_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_drv_if.h media: mtk-vcodec: remove unneeded proxy functions 2019-06-21 17:10:20 -04:00
vdec_ipi_msg.h Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
vdec_vpu_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
vdec_vpu_if.h media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
venc_drv_base.h media: mtk-vcodec: avoid unneeded pointer-to-long conversions 2019-06-21 17:09:30 -04:00
venc_drv_if.c media: mtk-vcodec: abstract firmware interface 2020-09-26 09:53:52 +02:00
venc_drv_if.h media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00
venc_ipi_msg.h media: mtk-vcodec: venc: handle firmware version field 2020-09-26 10:04:39 +02:00
venc_vpu_if.c media: mtk-vcodec: venc: handle firmware version field 2020-09-26 10:04:39 +02:00
venc_vpu_if.h media: mtk-vcodec: venc: support SCP firmware 2020-09-26 10:03:39 +02:00