1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Generic video config states
4#
5
6config VIDEO_V4L2_I2C
7	bool
8	depends on I2C && VIDEO_DEV
9	default y
10
11config VIDEO_V4L2_SUBDEV_API
12	bool
13	depends on VIDEO_DEV && MEDIA_CONTROLLER
14	help
15	  Enables the V4L2 sub-device pad-level userspace API used to configure
16	  video format, size and frame rate between hardware blocks.
17
18	  This API is mostly used by camera interfaces in embedded platforms.
19
20config VIDEO_ADV_DEBUG
21	bool "Enable advanced debug functionality on V4L2 drivers"
22	help
23	  Say Y here to enable advanced debugging functionality on some
24	  V4L devices.
25	  In doubt, say N.
26
27config VIDEO_FIXED_MINOR_RANGES
28	bool "Enable old-style fixed minor ranges on drivers/video devices"
29	help
30	  Say Y here to enable the old-style fixed-range minor assignments.
31	  Only useful if you rely on the old behavior and use mknod instead of udev.
32
33	  When in doubt, say N.
34
35# Used by drivers that need tuner.ko
36config VIDEO_TUNER
37	tristate
38
39# Used by drivers that need v4l2-jpeg.ko
40config V4L2_JPEG_HELPER
41	tristate
42
43# Used by drivers that need v4l2-h264.ko
44config V4L2_H264
45	tristate
46
47# Used by drivers that need v4l2-vp9.ko
48config V4L2_VP9
49	tristate
50
51# Used by drivers that need v4l2-mem2mem.ko
52config V4L2_MEM2MEM_DEV
53	tristate
54	depends on VIDEOBUF2_CORE
55
56# Used by LED subsystem flash drivers
57config V4L2_FLASH_LED_CLASS
58	tristate "V4L2 flash API for LED flash class devices"
59	depends on VIDEO_DEV
60	depends on LEDS_CLASS_FLASH
61	select MEDIA_CONTROLLER
62	select V4L2_ASYNC
63	select VIDEO_V4L2_SUBDEV_API
64	help
65	  Say Y here to enable V4L2 flash API support for LED flash
66	  class drivers.
67
68	  When in doubt, say N.
69
70config V4L2_FWNODE
71	tristate
72	select V4L2_ASYNC
73
74config V4L2_ASYNC
75	tristate
76
77# Used by drivers that need Videobuf modules
78config VIDEOBUF_GEN
79	tristate
80
81config VIDEOBUF_DMA_SG
82	tristate
83	select VIDEOBUF_GEN
84
85config VIDEOBUF_VMALLOC
86	tristate
87	select VIDEOBUF_GEN
88
89config VIDEOBUF_DMA_CONTIG
90	tristate
91	select VIDEOBUF_GEN
92