aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/Kconfig
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-11-01 00:16:05 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:53 -0500
commit8ae1fe2a0935afa878b8a506633fea45a8b00293 (patch)
tree6a06ba27940ea53c9cdf3a2fde74a862d9f15e20 /drivers/media/dvb/ttpci/Kconfig
parent00405f8f11d3064c4af6fe826d8287863a453e7f (diff)
V4L/DVB (6508): ttpci: Rework Kconfig menus and Makefile
The ttpci Kconfig file has bugs that cause it to fail in certain Kconfig situations. The basic problem is that it selects certain drivers, but does not depend on the dependencies of those drivers. See http://article.gmane.org/gmane.comp.video.video4linux/35072 Using the Kconfig file also has some annoyances. For instance one can't turn off AV7110 support unless you go down several options and first turn off budget-patch support. Normally user selectable drivers are not forced on like this. The "AV7110 cards with Budget Patch" option is disabled if "Budget cards" isn't on. Normally a driver appears nested under a driver it depends on, but since drivers that don't depend on "Budget cards" are between the two options, the config programs can't display the tree correctly. The Makefile has an issue too. Some modules, ttpci-eeprom and budget-core, appear in the Makefile under several different config symbols. If more than one of these symbols is on, they will get added the to list of objects multiple times. The normal convention is to have a config symbol just the common object(s) and have the users of the that object either depend on or select that config symbol. This patch fixes all these issues. ttpci-eepom is under a new config symbol, and so is the budget-core module. The four different budget card types appear as sub-drivers under a main "SAA7146 DVB cards" option. Turning on budget-patch doesn't force AV7110. Drivers using SAA7146_VV have the necessary VIDEO_DEV dependency, so that it isn't possible to select SAA7146_VV without V4L being on. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/Kconfig')
-rw-r--r--drivers/media/dvb/ttpci/Kconfig35
1 files changed, 25 insertions, 10 deletions
diff --git a/drivers/media/dvb/ttpci/Kconfig b/drivers/media/dvb/ttpci/Kconfig
index f95961495ca1..ae882432dd3d 100644
--- a/drivers/media/dvb/ttpci/Kconfig
+++ b/drivers/media/dvb/ttpci/Kconfig
@@ -1,8 +1,14 @@
1config TTPCI_EEPROM
2 tristate
3 default n
4
1config DVB_AV7110 5config DVB_AV7110
2 tristate "AV7110 cards" 6 tristate "AV7110 cards"
3 depends on DVB_CORE && PCI && I2C 7 depends on DVB_CORE && PCI && I2C
4 select FW_LOADER if !DVB_AV7110_FIRMWARE 8 select FW_LOADER if !DVB_AV7110_FIRMWARE
9 select TTPCI_EEPROM
5 select VIDEO_SAA7146_VV 10 select VIDEO_SAA7146_VV
11 depends on VIDEO_DEV # dependencies of VIDEO_SAA7146_VV
6 select DVB_VES1820 if !DVB_FE_CUSTOMISE 12 select DVB_VES1820 if !DVB_FE_CUSTOMISE
7 select DVB_VES1X93 if !DVB_FE_CUSTOMISE 13 select DVB_VES1X93 if !DVB_FE_CUSTOMISE
8 select DVB_STV0299 if !DVB_FE_CUSTOMISE 14 select DVB_STV0299 if !DVB_FE_CUSTOMISE
@@ -57,10 +63,19 @@ config DVB_AV7110_OSD
57 63
58 All other people say N. 64 All other people say N.
59 65
60config DVB_BUDGET 66config DVB_BUDGET_CORE
61 tristate "Budget cards" 67 tristate "SAA7146 DVB cards (aka Budget, Nova-PCI)"
62 depends on DVB_CORE && PCI && I2C 68 depends on DVB_CORE && PCI && I2C
63 select VIDEO_SAA7146 69 select VIDEO_SAA7146
70 select TTPCI_EEPROM
71 help
72 Support for simple SAA7146 based DVB cards
73 (so called Budget- or Nova-PCI cards) without onboard
74 MPEG2 decoder.
75
76config DVB_BUDGET
77 tristate "Budget cards"
78 depends on DVB_BUDGET_CORE && I2C
64 select DVB_STV0299 if !DVB_FE_CUSTOMISE 79 select DVB_STV0299 if !DVB_FE_CUSTOMISE
65 select DVB_VES1X93 if !DVB_FE_CUSTOMISE 80 select DVB_VES1X93 if !DVB_FE_CUSTOMISE
66 select DVB_VES1820 if !DVB_FE_CUSTOMISE 81 select DVB_VES1820 if !DVB_FE_CUSTOMISE
@@ -73,9 +88,9 @@ config DVB_BUDGET
73 select DVB_TDA826X if !DVB_FE_CUSTOMISE 88 select DVB_TDA826X if !DVB_FE_CUSTOMISE
74 select DVB_LNBP21 if !DVB_FE_CUSTOMISE 89 select DVB_LNBP21 if !DVB_FE_CUSTOMISE
75 help 90 help
76 Support for simple SAA7146 based DVB cards 91 Support for simple SAA7146 based DVB cards (so called Budget-
77 (so called Budget- or Nova-PCI cards) without onboard 92 or Nova-PCI cards) without onboard MPEG2 decoder, and without
78 MPEG2 decoder. 93 analog inputs or an onboard Common Interface connector.
79 94
80 Say Y if you own such a card and want to use it. 95 Say Y if you own such a card and want to use it.
81 96
@@ -84,8 +99,7 @@ config DVB_BUDGET
84 99
85config DVB_BUDGET_CI 100config DVB_BUDGET_CI
86 tristate "Budget cards with onboard CI connector" 101 tristate "Budget cards with onboard CI connector"
87 depends on DVB_CORE && PCI && I2C && INPUT 102 depends on DVB_BUDGET_CORE && I2C
88 select VIDEO_SAA7146
89 select DVB_STV0297 if !DVB_FE_CUSTOMISE 103 select DVB_STV0297 if !DVB_FE_CUSTOMISE
90 select DVB_STV0299 if !DVB_FE_CUSTOMISE 104 select DVB_STV0299 if !DVB_FE_CUSTOMISE
91 select DVB_TDA1004X if !DVB_FE_CUSTOMISE 105 select DVB_TDA1004X if !DVB_FE_CUSTOMISE
@@ -106,8 +120,9 @@ config DVB_BUDGET_CI
106 120
107config DVB_BUDGET_AV 121config DVB_BUDGET_AV
108 tristate "Budget cards with analog video inputs" 122 tristate "Budget cards with analog video inputs"
109 depends on DVB_CORE && PCI && I2C 123 depends on DVB_BUDGET_CORE && I2C
110 select VIDEO_SAA7146_VV 124 select VIDEO_SAA7146_VV
125 depends on VIDEO_DEV # dependencies of VIDEO_SAA7146_VV
111 select DVB_PLL if !DVB_FE_CUSTOMISE 126 select DVB_PLL if !DVB_FE_CUSTOMISE
112 select DVB_STV0299 if !DVB_FE_CUSTOMISE 127 select DVB_STV0299 if !DVB_FE_CUSTOMISE
113 select DVB_TDA1004X if !DVB_FE_CUSTOMISE 128 select DVB_TDA1004X if !DVB_FE_CUSTOMISE
@@ -127,8 +142,8 @@ config DVB_BUDGET_AV
127 142
128config DVB_BUDGET_PATCH 143config DVB_BUDGET_PATCH
129 tristate "AV7110 cards with Budget Patch" 144 tristate "AV7110 cards with Budget Patch"
130 depends on DVB_CORE && DVB_BUDGET 145 depends on DVB_BUDGET_CORE && I2C
131 select DVB_AV7110 146 depends on DVB_AV7110
132 select DVB_STV0299 if !DVB_FE_CUSTOMISE 147 select DVB_STV0299 if !DVB_FE_CUSTOMISE
133 select DVB_VES1X93 if !DVB_FE_CUSTOMISE 148 select DVB_VES1X93 if !DVB_FE_CUSTOMISE
134 select DVB_TDA8083 if !DVB_FE_CUSTOMISE 149 select DVB_TDA8083 if !DVB_FE_CUSTOMISE