]> git.baikalelectronics.ru Git - kernel.git/commit
media: videobuf2: Add VIDEOBUF2_V4L2 Kconfig option for VB2 V4L2 part
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 23 Feb 2018 08:29:46 +0000 (10:29 +0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 10:12:55 +0000 (05:12 -0500)
commit5e58f35ebd23897a9be5d6cb5f550d77486cc712
tree7a4b0b18a576ee740a9841d8ab2dcae44f16a699
parent22824f5281ac26627bdbd95a71590b265bd292da
media: videobuf2: Add VIDEOBUF2_V4L2 Kconfig option for VB2 V4L2 part

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>
drivers/media/common/videobuf2/Kconfig
drivers/media/common/videobuf2/Makefile
drivers/media/v4l2-core/Kconfig