mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 00:04:01 -04:00
Videobuf2 is now separate from V4L2 and can be now built without it, at
least in principle --- enabling videobuf2 in kernel configuration attempts
to compile videobuf2-v4l2.c but that will fail if CONFIG_VIDEO_V4L2 isn't
enabled.
Solve this by adding a separate Kconfig option for videobuf2-v4l2 and make
it a separate module as well. This means that drivers now need to choose
both the appropriate videobuf2 memory type
(VIDEOBUF2_{VMALLOC,DMA_CONTIG,DMA_SG}) and VIDEOBUF2_V4L2 if they need
both.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
35 lines
594 B
Plaintext
35 lines
594 B
Plaintext
# Used by drivers that need Videobuf2 modules
|
|
config VIDEOBUF2_CORE
|
|
select DMA_SHARED_BUFFER
|
|
tristate
|
|
|
|
config VIDEOBUF2_V4L2
|
|
tristate
|
|
|
|
config VIDEOBUF2_MEMOPS
|
|
tristate
|
|
select FRAME_VECTOR
|
|
|
|
config VIDEOBUF2_DMA_CONTIG
|
|
tristate
|
|
depends on HAS_DMA
|
|
select VIDEOBUF2_CORE
|
|
select VIDEOBUF2_MEMOPS
|
|
select DMA_SHARED_BUFFER
|
|
|
|
config VIDEOBUF2_VMALLOC
|
|
tristate
|
|
select VIDEOBUF2_CORE
|
|
select VIDEOBUF2_MEMOPS
|
|
select DMA_SHARED_BUFFER
|
|
|
|
config VIDEOBUF2_DMA_SG
|
|
tristate
|
|
depends on HAS_DMA
|
|
select VIDEOBUF2_CORE
|
|
select VIDEOBUF2_MEMOPS
|
|
|
|
config VIDEOBUF2_DVB
|
|
tristate
|
|
select VIDEOBUF2_CORE
|