Kconfig 1.2 KB

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