GNU Linux-libre 6.7.9-gnu
[releases.git] / drivers / media / platform / mediatek / vcodec / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 config VIDEO_MEDIATEK_VCODEC_SCP
3         bool
4
5 config VIDEO_MEDIATEK_VCODEC_VPU
6         bool
7
8 config VIDEO_MEDIATEK_VCODEC
9         tristate "Mediatek Video Codec driver"
10         depends on V4L_MEM2MEM_DRIVERS
11         depends on MTK_IOMMU || COMPILE_TEST
12         depends on VIDEO_DEV
13         depends on ARCH_MEDIATEK || COMPILE_TEST
14         depends on VIDEO_MEDIATEK_VPU || MTK_SCP
15         # The two following lines ensure we have the same state ("m" or "y") as
16         # our dependencies, to avoid missing symbols during link.
17         depends on VIDEO_MEDIATEK_VPU || !VIDEO_MEDIATEK_VPU
18         depends on MTK_SCP || !MTK_SCP
19         depends on MTK_SMI || (COMPILE_TEST && MTK_SMI=n)
20         select VIDEOBUF2_DMA_CONTIG
21         select V4L2_MEM2MEM_DEV
22         select VIDEO_MEDIATEK_VCODEC_VPU if VIDEO_MEDIATEK_VPU
23         select VIDEO_MEDIATEK_VCODEC_SCP if MTK_SCP
24         select V4L2_H264
25         select V4L2_VP9
26         select MEDIA_CONTROLLER
27         select MEDIA_CONTROLLER_REQUEST_API
28         help
29           Mediatek video codec driver provides HW capability to
30           encode and decode in a range of video formats on MT8173
31           and MT8183.
32
33           Note that support for MT8173 requires VIDEO_MEDIATEK_VPU to
34           also be selected. Support for MT8183 depends on MTK_SCP.
35
36           To compile this driver as modules, choose M here: the
37           modules will be called mtk-vcodec-dec and mtk-vcodec-enc.