xref: /openbmc/linux/drivers/media/v4l2-core/Kconfig (revision f7d84fa7)
1#
2# Generic video config states
3#
4
5# Enable the V4L2 core and API
6config VIDEO_V4L2
7	tristate
8	depends on (I2C || I2C=n) && VIDEO_DEV
9	select RATIONAL
10	default (I2C || I2C=n) && VIDEO_DEV
11
12config VIDEO_ADV_DEBUG
13	bool "Enable advanced debug functionality on V4L2 drivers"
14	default n
15	---help---
16	  Say Y here to enable advanced debugging functionality on some
17	  V4L devices.
18	  In doubt, say N.
19
20config VIDEO_FIXED_MINOR_RANGES
21	bool "Enable old-style fixed minor ranges on drivers/video devices"
22	default n
23	---help---
24	  Say Y here to enable the old-style fixed-range minor assignments.
25	  Only useful if you rely on the old behavior and use mknod instead of udev.
26
27	  When in doubt, say N.
28
29config VIDEO_PCI_SKELETON
30	tristate "Skeleton PCI V4L2 driver"
31	depends on PCI
32	depends on VIDEO_V4L2 && VIDEOBUF2_CORE
33	depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG
34	---help---
35	  Enable build of the skeleton PCI driver, used as a reference
36	  when developing new drivers.
37
38# Used by drivers that need tuner.ko
39config VIDEO_TUNER
40	tristate
41
42# Used by drivers that need v4l2-mem2mem.ko
43config V4L2_MEM2MEM_DEV
44        tristate
45        depends on VIDEOBUF2_CORE
46
47# Used by LED subsystem flash drivers
48config V4L2_FLASH_LED_CLASS
49	tristate "V4L2 flash API for LED flash class devices"
50	depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
51	depends on LEDS_CLASS_FLASH
52	---help---
53	  Say Y here to enable V4L2 flash API support for LED flash
54	  class drivers.
55
56	  When in doubt, say N.
57
58config V4L2_FWNODE
59	tristate
60
61# Used by drivers that need Videobuf modules
62config VIDEOBUF_GEN
63	tristate
64
65config VIDEOBUF_DMA_SG
66	tristate
67	depends on HAS_DMA
68	select VIDEOBUF_GEN
69
70config VIDEOBUF_VMALLOC
71	tristate
72	select VIDEOBUF_GEN
73
74config VIDEOBUF_DMA_CONTIG
75	tristate
76	depends on HAS_DMA
77	select VIDEOBUF_GEN
78
79config VIDEOBUF_DVB
80	tristate
81	select VIDEOBUF_GEN
82
83# Used by drivers that need Videobuf2 modules
84config VIDEOBUF2_CORE
85	select DMA_SHARED_BUFFER
86	tristate
87
88config VIDEOBUF2_MEMOPS
89	tristate
90	select FRAME_VECTOR
91
92config VIDEOBUF2_DMA_CONTIG
93	tristate
94	depends on HAS_DMA
95	select VIDEOBUF2_CORE
96	select VIDEOBUF2_MEMOPS
97	select DMA_SHARED_BUFFER
98
99config VIDEOBUF2_VMALLOC
100	tristate
101	select VIDEOBUF2_CORE
102	select VIDEOBUF2_MEMOPS
103	select DMA_SHARED_BUFFER
104
105config VIDEOBUF2_DMA_SG
106	tristate
107	depends on HAS_DMA
108	select VIDEOBUF2_CORE
109	select VIDEOBUF2_MEMOPS
110
111config VIDEOBUF2_DVB
112	tristate
113	select VIDEOBUF2_CORE
114