diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-04-22 13:41:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 12:42:22 -0400 |
commit | 82b3083d2673e5fe8ac508071038b2b4c10bbf9c (patch) | |
tree | bb32804b2be1ea16936f033c944597e2b2126c83 | |
parent | 7f8447d13d3abaeb46d0e6ae2890a843aa09561f (diff) |
V4L/DVB (7125): tuner: build tuner-types independently of tuner-core
tuner-types is needed for tuner-simple, and does not need to be bound
to tuner-core. Any caller of tuner-simple, including tuner-core, needs
to pass a structure from tuner-types into tuner-simple at attach-time.
Export the two needed symbols from tuner-types for now, so that card-level
drivers can attach tuner-simple for hybrid dvb_frontend devices. We will
remove this dependency altogether as tuner refactoring phase 3 progresses.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/Kconfig | 5 | ||||
-rw-r--r-- | drivers/media/video/Makefile | 3 | ||||
-rw-r--r-- | drivers/media/video/tuner-types.c | 14 |
3 files changed, 21 insertions, 1 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 11950698a2e7..408838418d04 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig | |||
@@ -71,9 +71,13 @@ source "drivers/media/dvb/Kconfig" | |||
71 | 71 | ||
72 | source "drivers/media/common/Kconfig" | 72 | source "drivers/media/common/Kconfig" |
73 | 73 | ||
74 | config VIDEO_TUNER_TYPES | ||
75 | tristate | ||
76 | |||
74 | config VIDEO_TUNER | 77 | config VIDEO_TUNER |
75 | tristate | 78 | tristate |
76 | depends on I2C | 79 | depends on I2C |
80 | select VIDEO_TUNER_TYPES | ||
77 | select TUNER_XC2028 if !VIDEO_TUNER_CUSTOMIZE | 81 | select TUNER_XC2028 if !VIDEO_TUNER_CUSTOMIZE |
78 | select TUNER_MT20XX if !VIDEO_TUNER_CUSTOMIZE | 82 | select TUNER_MT20XX if !VIDEO_TUNER_CUSTOMIZE |
79 | select TUNER_TDA8290 if !VIDEO_TUNER_CUSTOMIZE | 83 | select TUNER_TDA8290 if !VIDEO_TUNER_CUSTOMIZE |
@@ -136,6 +140,7 @@ config TUNER_TEA5767 | |||
136 | config TUNER_SIMPLE | 140 | config TUNER_SIMPLE |
137 | tristate "Simple tuner support" | 141 | tristate "Simple tuner support" |
138 | depends on I2C | 142 | depends on I2C |
143 | select VIDEO_TUNER_TYPES | ||
139 | select TUNER_TDA9887 | 144 | select TUNER_TDA9887 |
140 | default m if VIDEO_TUNER_CUSTOMIZE | 145 | default m if VIDEO_TUNER_CUSTOMIZE |
141 | help | 146 | help |
diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile index 3f209b32eeac..6f1ef09df1d6 100644 --- a/drivers/media/video/Makefile +++ b/drivers/media/video/Makefile | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | zr36067-objs := zoran_procfs.o zoran_device.o \ | 5 | zr36067-objs := zoran_procfs.o zoran_device.o \ |
6 | zoran_driver.o zoran_card.o | 6 | zoran_driver.o zoran_card.o |
7 | tuner-objs := tuner-core.o tuner-types.o | 7 | tuner-objs := tuner-core.o |
8 | 8 | ||
9 | msp3400-objs := msp3400-driver.o msp3400-kthreads.o | 9 | msp3400-objs := msp3400-driver.o msp3400-kthreads.o |
10 | 10 | ||
@@ -84,6 +84,7 @@ obj-$(CONFIG_VIDEO_DPC) += dpc7146.o | |||
84 | obj-$(CONFIG_TUNER_3036) += tuner-3036.o | 84 | obj-$(CONFIG_TUNER_3036) += tuner-3036.o |
85 | 85 | ||
86 | obj-$(CONFIG_VIDEO_TUNER) += tuner.o | 86 | obj-$(CONFIG_VIDEO_TUNER) += tuner.o |
87 | obj-$(CONFIG_VIDEO_TUNER_TYPES) += tuner-types.o | ||
87 | 88 | ||
88 | obj-$(CONFIG_TUNER_XC2028) += tuner-xc2028.o | 89 | obj-$(CONFIG_TUNER_XC2028) += tuner-xc2028.o |
89 | obj-$(CONFIG_TUNER_SIMPLE) += tuner-simple.o | 90 | obj-$(CONFIG_TUNER_SIMPLE) += tuner-simple.o |
diff --git a/drivers/media/video/tuner-types.c b/drivers/media/video/tuner-types.c index 883047f9c28c..87f28b5a2cfa 100644 --- a/drivers/media/video/tuner-types.c +++ b/drivers/media/video/tuner-types.c | |||
@@ -1480,5 +1480,19 @@ struct tunertype tuners[] = { | |||
1480 | /* see xc5000.c for details */ | 1480 | /* see xc5000.c for details */ |
1481 | }, | 1481 | }, |
1482 | }; | 1482 | }; |
1483 | EXPORT_SYMBOL(tuners); | ||
1483 | 1484 | ||
1484 | unsigned const int tuner_count = ARRAY_SIZE(tuners); | 1485 | unsigned const int tuner_count = ARRAY_SIZE(tuners); |
1486 | EXPORT_SYMBOL(tuner_count); | ||
1487 | |||
1488 | MODULE_DESCRIPTION("Simple tuner device type database"); | ||
1489 | MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer"); | ||
1490 | MODULE_LICENSE("GPL"); | ||
1491 | |||
1492 | /* | ||
1493 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
1494 | * --------------------------------------------------------------------------- | ||
1495 | * Local variables: | ||
1496 | * c-basic-offset: 8 | ||
1497 | * End: | ||
1498 | */ | ||