aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/Kconfig
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-02-02 09:25:31 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-02-18 09:14:53 -0500
commit057596eea8402aa8f7a670bf3195665aa8267204 (patch)
tree1c42fca7337e9b4000cb5d2fc2f9f7b53c7de31e /drivers/media/Kconfig
parent1a4e30c3eaffb83218977477bb83d54316844acb (diff)
V4L/DVB (7133): Fix Kconfig dependencies
As pointed by Adrian Bunk, with I2C=m and VIDEO_DEV=y, videodev brokes. This patch moves the functions that videodev needs from v4l2-common. It also fixes some Kconfig changes. After this patch, I2C=m / VIDEO_DEV=y will make v4l2 core statically linked into kernel. v4l2-common will be m, and all V4L drivers will also be m. This approach is very conservative, since it is possible to have V4L drivers that don't need I2C or v4l2-common. The better is to map what drivers really need v4l2-common, making them to select v4l2-common, and allowing the others to be 'y', 'm' and 'n'. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/Kconfig')
-rw-r--r--drivers/media/Kconfig11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 707b20d7efb7..888dcadff710 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -32,9 +32,9 @@ config VIDEO_V4L2_COMMON
32 32
33config VIDEO_V4L1 33config VIDEO_V4L1
34 bool "Enable Video For Linux API 1 (DEPRECATED)" 34 bool "Enable Video For Linux API 1 (DEPRECATED)"
35 depends on VIDEO_DEV 35 depends on VIDEO_DEV && VIDEO_V4L2_COMMON
36 default VIDEO_DEV && VIDEO_V4L2_COMMON
36 select VIDEO_V4L1_COMPAT 37 select VIDEO_V4L1_COMPAT
37 default y
38 ---help--- 38 ---help---
39 Enables a compatibility API used by most V4L2 devices to allow 39 Enables a compatibility API used by most V4L2 devices to allow
40 its usage with legacy applications that supports only V4L1 api. 40 its usage with legacy applications that supports only V4L1 api.
@@ -44,7 +44,7 @@ config VIDEO_V4L1
44config VIDEO_V4L1_COMPAT 44config VIDEO_V4L1_COMPAT
45 bool "Enable Video For Linux API 1 compatible Layer" 45 bool "Enable Video For Linux API 1 compatible Layer"
46 depends on VIDEO_DEV 46 depends on VIDEO_DEV
47 default y 47 default VIDEO_DEV
48 ---help--- 48 ---help---
49 This api were developed to be used at Kernel 2.2 and 2.4, but 49 This api were developed to be used at Kernel 2.2 and 2.4, but
50 lacks support for several video standards. There are several 50 lacks support for several video standards. There are several
@@ -60,8 +60,8 @@ config VIDEO_V4L1_COMPAT
60 60
61config VIDEO_V4L2 61config VIDEO_V4L2
62 bool 62 bool
63 depends on VIDEO_DEV 63 depends on VIDEO_DEV && VIDEO_V4L2_COMMON
64 default y 64 default VIDEO_DEV && VIDEO_V4L2_COMMON
65 65
66source "drivers/media/video/Kconfig" 66source "drivers/media/video/Kconfig"
67 67
@@ -185,7 +185,6 @@ config VIDEO_TVEEPROM
185 185
186config DAB 186config DAB
187 boolean "DAB adapters" 187 boolean "DAB adapters"
188 default y
189 ---help--- 188 ---help---
190 Allow selecting support for for Digital Audio Broadcasting (DAB) 189 Allow selecting support for for Digital Audio Broadcasting (DAB)
191 Receiver adapters. 190 Receiver adapters.