aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-08-20 09:32:19 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-21 06:55:47 -0400
commitb6334460f2929c02d0d1f0fbad9f909229d00d50 (patch)
tree8a33cc158685126328a573c9b4e81d26390d6faa /drivers
parent7a46e188bf80cb75c08d2d95802a5d124929fb20 (diff)
[media] Cleanup media Kconfig files
- get rid of ridden V4L2_COMMON symbol This symbol is not needed anymore; it can be folded with V4L2 one, simplifying the Kconfig a little bit; - Comment why some Kconfig items are needed; - Remove if test for MEDIA_CAMERA_SUPPORT, replacing it by depends on. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/Kconfig5
-rw-r--r--drivers/media/i2c/Kconfig2
-rw-r--r--drivers/media/platform/Kconfig6
-rw-r--r--drivers/media/v4l2-core/Kconfig27
-rw-r--r--drivers/media/v4l2-core/Makefile2
5 files changed, 20 insertions, 22 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index d5b4e728b4d1..9c3698ab6132 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -99,11 +99,6 @@ config VIDEO_DEV
99 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT 99 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT
100 default y 100 default y
101 101
102config VIDEO_V4L2_COMMON
103 tristate
104 depends on (I2C || I2C=n) && VIDEO_DEV
105 default (I2C || I2C=n) && VIDEO_DEV
106
107config VIDEO_V4L2_SUBDEV_API 102config VIDEO_V4L2_SUBDEV_API
108 bool "V4L2 sub-device userspace API (EXPERIMENTAL)" 103 bool "V4L2 sub-device userspace API (EXPERIMENTAL)"
109 depends on VIDEO_DEV && MEDIA_CONTROLLER && EXPERIMENTAL 104 depends on VIDEO_DEV && MEDIA_CONTROLLER && EXPERIMENTAL
diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 7fe4acf2f80b..527430ac06f3 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -322,7 +322,7 @@ comment "MPEG video encoders"
322 322
323config VIDEO_CX2341X 323config VIDEO_CX2341X
324 tristate "Conexant CX2341x MPEG encoders" 324 tristate "Conexant CX2341x MPEG encoders"
325 depends on VIDEO_V4L2 && VIDEO_V4L2_COMMON 325 depends on VIDEO_V4L2
326 ---help--- 326 ---help---
327 Support for the Conexant CX23416 MPEG encoders 327 Support for the Conexant CX23416 MPEG encoders
328 and CX23415 MPEG encoder/decoders. 328 and CX23415 MPEG encoder/decoders.
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index d33e8e59a06b..5955a276f468 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -1,5 +1,3 @@
1if MEDIA_CAMERA_SUPPORT
2
3# 1#
4# Platform drivers 2# Platform drivers
5# All drivers here are currently for webcam support 3# All drivers here are currently for webcam support
@@ -37,6 +35,7 @@ source "drivers/media/platform/blackfin/Kconfig"
37 35
38config VIDEO_SH_VOU 36config VIDEO_SH_VOU
39 tristate "SuperH VOU video output driver" 37 tristate "SuperH VOU video output driver"
38 depends on MEDIA_CAMERA_SUPPORT
40 depends on VIDEO_DEV && ARCH_SHMOBILE 39 depends on VIDEO_DEV && ARCH_SHMOBILE
41 select VIDEOBUF_DMA_CONTIG 40 select VIDEOBUF_DMA_CONTIG
42 help 41 help
@@ -119,6 +118,7 @@ endif # V4L_PLATFORM_DRIVERS
119menuconfig V4L_MEM2MEM_DRIVERS 118menuconfig V4L_MEM2MEM_DRIVERS
120 bool "Memory-to-memory multimedia devices" 119 bool "Memory-to-memory multimedia devices"
121 depends on VIDEO_V4L2 120 depends on VIDEO_V4L2
121 depends on MEDIA_CAMERA_SUPPORT
122 default n 122 default n
123 ---help--- 123 ---help---
124 Say Y here to enable selecting drivers for V4L devices that 124 Say Y here to enable selecting drivers for V4L devices that
@@ -212,5 +212,3 @@ config VIDEO_MEM2MEM_TESTDEV
212 This is a virtual test device for the memory-to-memory driver 212 This is a virtual test device for the memory-to-memory driver
213 framework. 213 framework.
214endif #V4L_TEST_DRIVERS 214endif #V4L_TEST_DRIVERS
215
216endif # MEDIA_CAMERA_SUPPORT
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig
index 05e530c0b012..0c54e19d9944 100644
--- a/drivers/media/v4l2-core/Kconfig
+++ b/drivers/media/v4l2-core/Kconfig
@@ -2,6 +2,12 @@
2# Generic video config states 2# Generic video config states
3# 3#
4 4
5# Enable the V4L2 core and API
6config VIDEO_V4L2
7 tristate
8 depends on (I2C || I2C=n) && VIDEO_DEV
9 default (I2C || I2C=n) && VIDEO_DEV
10
5config VIDEO_ADV_DEBUG 11config VIDEO_ADV_DEBUG
6 bool "Enable advanced debug functionality on V4L2 drivers" 12 bool "Enable advanced debug functionality on V4L2 drivers"
7 default n 13 default n
@@ -19,11 +25,17 @@ config VIDEO_FIXED_MINOR_RANGES
19 25
20 When in doubt, say N. 26 When in doubt, say N.
21 27
22config VIDEO_V4L2 28# Used by drivers that need tuner.ko
29config VIDEO_TUNER
23 tristate 30 tristate
24 depends on VIDEO_V4L2_COMMON 31 depends on MEDIA_TUNER
25 default y 32
33# Used by drivers that need v4l2-mem2mem.ko
34config V4L2_MEM2MEM_DEV
35 tristate
36 depends on VIDEOBUF2_CORE
26 37
38# Used by drivers that need Videobuf modules
27config VIDEOBUF_GEN 39config VIDEOBUF_GEN
28 tristate 40 tristate
29 41
@@ -45,14 +57,7 @@ config VIDEOBUF_DVB
45 tristate 57 tristate
46 select VIDEOBUF_GEN 58 select VIDEOBUF_GEN
47 59
48config VIDEO_TUNER 60# Used by drivers that need Videobuf2 modules
49 tristate
50 depends on MEDIA_TUNER
51
52config V4L2_MEM2MEM_DEV
53 tristate
54 depends on VIDEOBUF2_CORE
55
56config VIDEOBUF2_CORE 61config VIDEOBUF2_CORE
57 tristate 62 tristate
58 63
diff --git a/drivers/media/v4l2-core/Makefile b/drivers/media/v4l2-core/Makefile
index c0e90bc23692..c2d61d4f03d1 100644
--- a/drivers/media/v4l2-core/Makefile
+++ b/drivers/media/v4l2-core/Makefile
@@ -11,7 +11,7 @@ ifeq ($(CONFIG_COMPAT),y)
11endif 11endif
12 12
13obj-$(CONFIG_VIDEO_DEV) += videodev.o v4l2-int-device.o 13obj-$(CONFIG_VIDEO_DEV) += videodev.o v4l2-int-device.o
14obj-$(CONFIG_VIDEO_V4L2_COMMON) += v4l2-common.o 14obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
15 15
16obj-$(CONFIG_VIDEO_TUNER) += tuner.o 16obj-$(CONFIG_VIDEO_TUNER) += tuner.o
17 17