# SPDX-License-Identifier: GPL-2.0-only
#
# DVB device configuration (Mediatek extentsion)
#

config MEDIATEK_DVB
	bool "Enable Mediatek DVB"
	default n
	help
	  To enable Mediatek DVB config.
	  Mediatek DVB include the following modules:
	  common frontend manager, demux, ci, smart card etc.

	  Support for it is experimental. Use with care. If unsure,
	  say N.

config MTK_DVB_CORE
	tristate "Mediatek DVB core"
	help
	  The extentsion DVB API Mediatek proposed.
	  Enables this option to have more flexibility on TS standard
	  such as ATSC3, ISDB3 etc.

	  Support for it is experimental. Use with care. If unsure,
	  say N.

config MTK_MEDIA_CONTROLLER_DVB
	bool "Enable Media controller for DVB (EXPERIMENTAL)"
	depends on MEDIA_CONTROLLER && MTK_DVB_CORE
	help
	  If you want to use media devices for MTK DVB,
	  enable this option.

	  Support for it is experimental. Use with care. If unsure,
	  say N.

config MTK_DVB_MMAP
	bool "Enable DVB memory-mapped API (EXPERIMENTAL)"
	depends on MTK_DVB_CORE
	select VIDEOBUF2_VMALLOC
	help
	  This option enables DVB experimental memory-mapped API, which
	  reduces the number of context switches to read DVB buffers, as
	  the buffers can use mmap() syscalls.

	  Support for it is experimental. Use with care. If unsure,
	  say N.

config MTK_DVB_DYNAMIC_MINORS
	bool "Dynamic DVB minor allocation"
	depends on MTK_DVB_CORE
	default y
	help
	  If you say Y here, the DVB subsystem will use dynamic minor
	  allocation for any device that uses the DVB major number.
	  This means that you can have more than 4 of a single type
	  of device (like demuxes and frontends) per adapter, but udev
	  will be required to manage the device nodes.

	  If you are unsure about this, say N here.

config MTK_DVB_CA_EN50221_REDUCE_RESET_TIME
	bool "DVB CA EN50221 Reduce Reset Time"
	default n
	help
	  When CA_RESET ioctl command is received, because
	  slot_shutdown() will be executed in slot_reset(),
	  slot_state is set to DVB_CA_SLOTSTATE_NONE. In this
	  way, dvb_ca_en50221_thread() will re-initiate the
	  slot.

config MTK_DVB_CA_EN50221_SLOT_INFO_CHECK_STATUS
	bool "DVB CA EN50221 Slot Info Check Status"
	default n
	help
	  In the state that CICAM is inserted on TV, if
	  CA_RESET-ioctl is called, the CA_GET_SLOT_INFO's
	  returning flag's bit[0] must keep to the
	  previous value.
