diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-26 13:13:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-26 13:13:56 -0300 |
commit | aac29554759ba1097551414afc35ed9fa13056c2 (patch) | |
tree | de3052547dcad0585d2b7fc6b7da07ff6f2be999 /linux/drivers | |
parent | 92541c586e6655f2175fe5ec00836f5ef1ce1cb3 (diff) | |
download | mediapointer-dvb-s2-aac29554759ba1097551414afc35ed9fa13056c2.tar.gz mediapointer-dvb-s2-aac29554759ba1097551414afc35ed9fa13056c2.tar.bz2 |
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Move tuners to common/tuners
There were several issues in the past, caused by the hybrid tuner design, since
now, the same tuner can be used by drivers/media/dvb and drivers/media/video.
This patch moves those common tuners into a common dir. It also moves saa7146
driver into drivers/media/video, where other hybrid drivers are placed.
Kconfig items were rearranged, to split V4L/DVB core from their drivers.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/Kconfig | 153 | ||||
-rw-r--r-- | linux/drivers/media/Makefile | 6 | ||||
-rw-r--r-- | linux/drivers/media/common/Makefile | 6 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/mt20xx.c (renamed from linux/drivers/media/video/mt20xx.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/mt20xx.h (renamed from linux/drivers/media/video/mt20xx.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-common.c (renamed from linux/drivers/media/dvb/frontends/tda18271-common.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-fe.c (renamed from linux/drivers/media/dvb/frontends/tda18271-fe.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-maps.c (renamed from linux/drivers/media/dvb/frontends/tda18271-tables.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-priv.h (renamed from linux/drivers/media/dvb/frontends/tda18271-priv.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271.h (renamed from linux/drivers/media/dvb/frontends/tda18271.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda827x.c (renamed from linux/drivers/media/dvb/frontends/tda827x.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda827x.h (renamed from linux/drivers/media/dvb/frontends/tda827x.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda8290.c (renamed from linux/drivers/media/video/tda8290.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda8290.h (renamed from linux/drivers/media/video/tda8290.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda9887.c (renamed from linux/drivers/media/video/tda9887.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tda9887.h (renamed from linux/drivers/media/video/tda9887.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tea5761.c (renamed from linux/drivers/media/video/tea5761.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tea5761.h (renamed from linux/drivers/media/video/tea5761.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tea5767.c (renamed from linux/drivers/media/video/tea5767.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tea5767.h (renamed from linux/drivers/media/video/tea5767.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-i2c.h (renamed from linux/drivers/media/video/tuner-i2c.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-simple.c (renamed from linux/drivers/media/video/tuner-simple.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-simple.h (renamed from linux/drivers/media/video/tuner-simple.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-types.c (renamed from linux/drivers/media/video/tuner-types.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-xc2028-types.h (renamed from linux/drivers/media/video/tuner-xc2028-types.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-xc2028.c (renamed from linux/drivers/media/video/tuner-xc2028.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/tuner-xc2028.h (renamed from linux/drivers/media/video/tuner-xc2028.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/xc5000.c (renamed from linux/drivers/media/dvb/frontends/xc5000.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/xc5000.h (renamed from linux/drivers/media/dvb/frontends/xc5000.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/common/tuners/xc5000_priv.h (renamed from linux/drivers/media/dvb/frontends/xc5000_priv.h) | 0 | ||||
-rw-r--r-- | linux/drivers/media/dvb/Kconfig | 4 | ||||
-rw-r--r-- | linux/drivers/media/dvb/b2c2/Makefile | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/Makefile | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/Makefile | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/frontends/Kconfig | 23 | ||||
-rw-r--r-- | linux/drivers/media/dvb/frontends/Makefile | 7 | ||||
-rw-r--r-- | linux/drivers/media/video/Kconfig | 48 | ||||
-rw-r--r-- | linux/drivers/media/video/Makefile | 13 | ||||
-rw-r--r-- | linux/drivers/media/video/au0828/Makefile | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/bt8xx/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/cx23885/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/cx88/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/em28xx/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/ivtv/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/pvrusb2/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/Makefile | 1 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/Kconfig (renamed from linux/drivers/media/common/Kconfig) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_core.c (renamed from linux/drivers/media/common/saa7146_core.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_fops.c (renamed from linux/drivers/media/common/saa7146_fops.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_hlp.c (renamed from linux/drivers/media/common/saa7146_hlp.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_i2c.c (renamed from linux/drivers/media/common/saa7146_i2c.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_vbi.c (renamed from linux/drivers/media/common/saa7146_vbi.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7146/saa7146_video.c (renamed from linux/drivers/media/common/saa7146_video.c) | 0 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvision/Makefile | 1 |
54 files changed, 106 insertions, 170 deletions
diff --git a/linux/drivers/media/Kconfig b/linux/drivers/media/Kconfig index 128bb9cd5..09468d8c7 100644 --- a/linux/drivers/media/Kconfig +++ b/linux/drivers/media/Kconfig @@ -5,6 +5,12 @@ menu "Multimedia devices" depends on HAS_IOMEM +comment "Multimedia core support" + +# +# V4L core and enabled API's +# + config VIDEO_DEV tristate "Video For Linux" ---help--- @@ -58,135 +64,52 @@ config VIDEO_V4L1_COMPAT If you are unsure as to whether this is required, answer Y. -config VIDEO_V4L2 - tristate - depends on VIDEO_DEV && VIDEO_V4L2_COMMON - default VIDEO_DEV && VIDEO_V4L2_COMMON - -config VIDEO_V4L1 - tristate - depends on VIDEO_DEV && VIDEO_V4L2_COMMON && VIDEO_ALLOW_V4L1 - default VIDEO_DEV && VIDEO_V4L2_COMMON && VIDEO_ALLOW_V4L1 - -source "drivers/media/video/Kconfig" - -source "drivers/media/radio/Kconfig" - -source "drivers/media/dvb/Kconfig" - -source "drivers/media/common/Kconfig" - -config VIDEO_TUNER - tristate - depends on I2C - select TUNER_XC2028 if !VIDEO_TUNER_CUSTOMIZE - select TUNER_MT20XX if !VIDEO_TUNER_CUSTOMIZE - select TUNER_TDA8290 if !VIDEO_TUNER_CUSTOMIZE - select TUNER_TEA5761 if !VIDEO_TUNER_CUSTOMIZE - select TUNER_TEA5767 if !VIDEO_TUNER_CUSTOMIZE - select TUNER_SIMPLE if !VIDEO_TUNER_CUSTOMIZE - select TUNER_TDA9887 if !VIDEO_TUNER_CUSTOMIZE - -menuconfig VIDEO_TUNER_CUSTOMIZE - bool "Customize analog tuner modules to build" - depends on VIDEO_TUNER - help - This allows the user to deselect tuner drivers unnecessary - for their hardware from the build. Use this option with care - as deselecting tuner drivers which are in fact necessary will - result in V4L devices which cannot be tuned due to lack of - driver support - - If unsure say N. - -if VIDEO_TUNER_CUSTOMIZE - -config TUNER_XC2028 - tristate "XCeive xc2028/xc3028 tuners" - depends on I2C && FW_LOADER - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for the xc2028/xc3028 tuners. - -config TUNER_MT20XX - tristate "Microtune 2032 / 2050 tuners" - depends on I2C - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for the MT2032 / MT2050 tuner. - -config TUNER_TDA8290 - tristate "TDA 8290/8295 + 8275(a)/18271 tuner combo" - depends on I2C - select DVB_TDA827X - select DVB_TDA18271 - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for Philips TDA8290+8275(a) tuner. +# +# DVB Core +# -config TUNER_TEA5761 - tristate "TEA 5761 radio tuner (EXPERIMENTAL)" - depends on I2C && EXPERIMENTAL - default m if VIDEO_TUNER_CUSTOMIZE +config DVB_CORE + tristate "DVB for Linux" + depends on NET && INET + select CRC32 help - Say Y here to include support for the Philips TEA5761 radio tuner. + Support Digital Video Broadcasting hardware. Enable this if you + own a DVB adapter and want to use it or if you compile Linux for + a digital SetTopBox. -config TUNER_TEA5767 - tristate "TEA 5767 radio tuner" - depends on I2C - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for the Philips TEA5767 radio tuner. + DVB core utility functions for device handling, software fallbacks etc. + Say Y when you have a DVB card and want to use it. Say Y if your want + to build your drivers outside the kernel, but need the DVB core. All + in-kernel drivers will select this automatically if needed. -config TUNER_SIMPLE - tristate "Simple tuner support" - depends on I2C - select TUNER_TDA9887 - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for various simple tuners. + API specs and user tools are available from <http://www.linuxtv.org/>. -config TUNER_TDA9887 - tristate "TDA 9885/6/7 analog IF demodulator" - depends on I2C - default m if VIDEO_TUNER_CUSTOMIZE - help - Say Y here to include support for Philips TDA9885/6/7 - analog IF demodulator. + Please report problems regarding this driver to the LinuxDVB + mailing list. -endif # VIDEO_TUNER_CUSTOMIZE + If unsure say N. -config VIDEOBUF_GEN - tristate +comment "Multimedia drivers" -config VIDEOBUF_DMA_SG - depends on HAS_DMA - select VIDEOBUF_GEN - tristate +# +# Tuner drivers for DVB and V4L +# -config VIDEOBUF_VMALLOC - select VIDEOBUF_GEN - tristate +source "drivers/media/common/tuners/Kconfig" -config VIDEOBUF_DVB - tristate - select VIDEOBUF_GEN - select VIDEOBUF_DMA_SG +# +# Video/Radio/Hybrid adapters +# -config VIDEO_BTCX - tristate +source "drivers/media/video/Kconfig" -config VIDEO_IR_I2C - tristate +source "drivers/media/radio/Kconfig" -config VIDEO_IR - tristate - depends on INPUT - select VIDEO_IR_I2C if I2C +# +# DVB adapters +# -config VIDEO_TVEEPROM - tristate - depends on I2C +source "drivers/media/dvb/Kconfig" config DAB boolean "DAB adapters" diff --git a/linux/drivers/media/Makefile b/linux/drivers/media/Makefile index 7b8bb6949..b6c5b35cc 100644 --- a/linux/drivers/media/Makefile +++ b/linux/drivers/media/Makefile @@ -3,9 +3,5 @@ # obj-y := common/ -obj-y += video/ -obj-$(CONFIG_VIDEO_DEV) += radio/ +obj-$(CONFIG_VIDEO_DEV) += radio/ video/ obj-$(CONFIG_DVB_CORE) += dvb/ -ifeq ($(CONFIG_DVB_CORE),) - obj-$(CONFIG_VIDEO_TUNER) += dvb/frontends/ -endif diff --git a/linux/drivers/media/common/Makefile b/linux/drivers/media/common/Makefile index 8e7448230..f57654620 100644 --- a/linux/drivers/media/common/Makefile +++ b/linux/drivers/media/common/Makefile @@ -1,7 +1,5 @@ -saa7146-objs := saa7146_i2c.o saa7146_core.o -saa7146_vv-objs := saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o ir-common-objs := ir-functions.o ir-keymaps.o -obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o -obj-$(CONFIG_VIDEO_SAA7146_VV) += saa7146_vv.o obj-$(CONFIG_VIDEO_IR) += ir-common.o + +obj-y += tuners/ diff --git a/linux/drivers/media/video/mt20xx.c b/linux/drivers/media/common/tuners/mt20xx.c index d2c281aeb..d2c281aeb 100644 --- a/linux/drivers/media/video/mt20xx.c +++ b/linux/drivers/media/common/tuners/mt20xx.c diff --git a/linux/drivers/media/video/mt20xx.h b/linux/drivers/media/common/tuners/mt20xx.h index aa848e14c..aa848e14c 100644 --- a/linux/drivers/media/video/mt20xx.h +++ b/linux/drivers/media/common/tuners/mt20xx.h diff --git a/linux/drivers/media/dvb/frontends/tda18271-common.c b/linux/drivers/media/common/tuners/tda18271-common.c index 43c0bec83..43c0bec83 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-common.c +++ b/linux/drivers/media/common/tuners/tda18271-common.c diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c index 355c37a42..355c37a42 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-fe.c +++ b/linux/drivers/media/common/tuners/tda18271-fe.c diff --git a/linux/drivers/media/dvb/frontends/tda18271-tables.c b/linux/drivers/media/common/tuners/tda18271-maps.c index 83e756196..83e756196 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-tables.c +++ b/linux/drivers/media/common/tuners/tda18271-maps.c diff --git a/linux/drivers/media/dvb/frontends/tda18271-priv.h b/linux/drivers/media/common/tuners/tda18271-priv.h index 8ceeca081..8ceeca081 100644 --- a/linux/drivers/media/dvb/frontends/tda18271-priv.h +++ b/linux/drivers/media/common/tuners/tda18271-priv.h diff --git a/linux/drivers/media/dvb/frontends/tda18271.h b/linux/drivers/media/common/tuners/tda18271.h index 0e7af8d05..0e7af8d05 100644 --- a/linux/drivers/media/dvb/frontends/tda18271.h +++ b/linux/drivers/media/common/tuners/tda18271.h diff --git a/linux/drivers/media/dvb/frontends/tda827x.c b/linux/drivers/media/common/tuners/tda827x.c index 2d39f9be5..2d39f9be5 100644 --- a/linux/drivers/media/dvb/frontends/tda827x.c +++ b/linux/drivers/media/common/tuners/tda827x.c diff --git a/linux/drivers/media/dvb/frontends/tda827x.h b/linux/drivers/media/common/tuners/tda827x.h index b73c23570..b73c23570 100644 --- a/linux/drivers/media/dvb/frontends/tda827x.h +++ b/linux/drivers/media/common/tuners/tda827x.h diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/common/tuners/tda8290.c index d57602d22..d57602d22 100644 --- a/linux/drivers/media/video/tda8290.c +++ b/linux/drivers/media/common/tuners/tda8290.c diff --git a/linux/drivers/media/video/tda8290.h b/linux/drivers/media/common/tuners/tda8290.h index d3bbf276a..d3bbf276a 100644 --- a/linux/drivers/media/video/tda8290.h +++ b/linux/drivers/media/common/tuners/tda8290.h diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/common/tuners/tda9887.c index e98de7d40..e98de7d40 100644 --- a/linux/drivers/media/video/tda9887.c +++ b/linux/drivers/media/common/tuners/tda9887.c diff --git a/linux/drivers/media/video/tda9887.h b/linux/drivers/media/common/tuners/tda9887.h index be49dcbfc..be49dcbfc 100644 --- a/linux/drivers/media/video/tda9887.h +++ b/linux/drivers/media/common/tuners/tda9887.h diff --git a/linux/drivers/media/video/tea5761.c b/linux/drivers/media/common/tuners/tea5761.c index 11e2991ef..11e2991ef 100644 --- a/linux/drivers/media/video/tea5761.c +++ b/linux/drivers/media/common/tuners/tea5761.c diff --git a/linux/drivers/media/video/tea5761.h b/linux/drivers/media/common/tuners/tea5761.h index 8eb62722b..8eb62722b 100644 --- a/linux/drivers/media/video/tea5761.h +++ b/linux/drivers/media/common/tuners/tea5761.h diff --git a/linux/drivers/media/video/tea5767.c b/linux/drivers/media/common/tuners/tea5767.c index e5bfc72a4..e5bfc72a4 100644 --- a/linux/drivers/media/video/tea5767.c +++ b/linux/drivers/media/common/tuners/tea5767.c diff --git a/linux/drivers/media/video/tea5767.h b/linux/drivers/media/common/tuners/tea5767.h index 7b547c092..7b547c092 100644 --- a/linux/drivers/media/video/tea5767.h +++ b/linux/drivers/media/common/tuners/tea5767.h diff --git a/linux/drivers/media/video/tuner-i2c.h b/linux/drivers/media/common/tuners/tuner-i2c.h index 3ad6c8e0b..3ad6c8e0b 100644 --- a/linux/drivers/media/video/tuner-i2c.h +++ b/linux/drivers/media/common/tuners/tuner-i2c.h diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/common/tuners/tuner-simple.c index 29c14a4c6..29c14a4c6 100644 --- a/linux/drivers/media/video/tuner-simple.c +++ b/linux/drivers/media/common/tuners/tuner-simple.c diff --git a/linux/drivers/media/video/tuner-simple.h b/linux/drivers/media/common/tuners/tuner-simple.h index e46cf0121..e46cf0121 100644 --- a/linux/drivers/media/video/tuner-simple.h +++ b/linux/drivers/media/common/tuners/tuner-simple.h diff --git a/linux/drivers/media/video/tuner-types.c b/linux/drivers/media/common/tuners/tuner-types.c index b3f0f62e0..b3f0f62e0 100644 --- a/linux/drivers/media/video/tuner-types.c +++ b/linux/drivers/media/common/tuners/tuner-types.c diff --git a/linux/drivers/media/video/tuner-xc2028-types.h b/linux/drivers/media/common/tuners/tuner-xc2028-types.h index 216665c2c..216665c2c 100644 --- a/linux/drivers/media/video/tuner-xc2028-types.h +++ b/linux/drivers/media/common/tuners/tuner-xc2028-types.h diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/common/tuners/tuner-xc2028.c index 3aa81ae99..3aa81ae99 100644 --- a/linux/drivers/media/video/tuner-xc2028.c +++ b/linux/drivers/media/common/tuners/tuner-xc2028.c diff --git a/linux/drivers/media/video/tuner-xc2028.h b/linux/drivers/media/common/tuners/tuner-xc2028.h index fc2f132a5..fc2f132a5 100644 --- a/linux/drivers/media/video/tuner-xc2028.h +++ b/linux/drivers/media/common/tuners/tuner-xc2028.h diff --git a/linux/drivers/media/dvb/frontends/xc5000.c b/linux/drivers/media/common/tuners/xc5000.c index c832f39ab..c832f39ab 100644 --- a/linux/drivers/media/dvb/frontends/xc5000.c +++ b/linux/drivers/media/common/tuners/xc5000.c diff --git a/linux/drivers/media/dvb/frontends/xc5000.h b/linux/drivers/media/common/tuners/xc5000.h index b890883a0..b890883a0 100644 --- a/linux/drivers/media/dvb/frontends/xc5000.h +++ b/linux/drivers/media/common/tuners/xc5000.h diff --git a/linux/drivers/media/dvb/frontends/xc5000_priv.h b/linux/drivers/media/common/tuners/xc5000_priv.h index 13b2d1934..13b2d1934 100644 --- a/linux/drivers/media/dvb/frontends/xc5000_priv.h +++ b/linux/drivers/media/common/tuners/xc5000_priv.h diff --git a/linux/drivers/media/dvb/Kconfig b/linux/drivers/media/dvb/Kconfig index 03ef88acd..7b21b49f1 100644 --- a/linux/drivers/media/dvb/Kconfig +++ b/linux/drivers/media/dvb/Kconfig @@ -1,9 +1,7 @@ # -# Multimedia device configuration +# DVB device configuration # -source "drivers/media/dvb/dvb-core/Kconfig" - menuconfig DVB_CAPTURE_DRIVERS bool "DVB/ATSC adapters" depends on DVB_CORE diff --git a/linux/drivers/media/dvb/b2c2/Makefile b/linux/drivers/media/dvb/b2c2/Makefile index 870e2848c..d9db066f9 100644 --- a/linux/drivers/media/dvb/b2c2/Makefile +++ b/linux/drivers/media/dvb/b2c2/Makefile @@ -14,4 +14,4 @@ b2c2-flexcop-usb-objs = flexcop-usb.o obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/ -EXTRA_CFLAGS += -Idrivers/media/video/ +EXTRA_CFLAGS += -Idrivers/media/common/tuners/ diff --git a/linux/drivers/media/dvb/bt8xx/Makefile b/linux/drivers/media/dvb/bt8xx/Makefile index 9d3e68b5d..d98f1d49f 100644 --- a/linux/drivers/media/dvb/bt8xx/Makefile +++ b/linux/drivers/media/dvb/bt8xx/Makefile @@ -3,4 +3,4 @@ obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o dst.o dst_ca.o EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends EXTRA_CFLAGS += -Idrivers/media/video/bt8xx -EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners diff --git a/linux/drivers/media/dvb/dvb-usb/Makefile b/linux/drivers/media/dvb/dvb-usb/Makefile index 60a910052..c6511a6c0 100644 --- a/linux/drivers/media/dvb/dvb-usb/Makefile +++ b/linux/drivers/media/dvb/dvb-usb/Makefile @@ -63,5 +63,5 @@ obj-$(CONFIG_DVB_USB_AF9005_REMOTE) += dvb-usb-af9005-remote.o EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/ # due to tuner-xc3028 -EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners diff --git a/linux/drivers/media/dvb/frontends/Kconfig b/linux/drivers/media/dvb/frontends/Kconfig index acbd9fed1..2e8fa9336 100644 --- a/linux/drivers/media/dvb/frontends/Kconfig +++ b/linux/drivers/media/dvb/frontends/Kconfig @@ -347,20 +347,6 @@ config DVB_TDA826X help A DVB-S silicon tuner module. Say Y when you want to support this tuner. -config DVB_TDA827X - tristate "Philips TDA827X silicon tuner" - depends on DVB_CORE && I2C - default m if DVB_FE_CUSTOMISE - help - A DVB-T silicon tuner module. Say Y when you want to support this tuner. - -config DVB_TDA18271 - tristate "NXP TDA18271 silicon tuner" - depends on I2C - default m if DVB_FE_CUSTOMISE - help - A silicon tuner module. Say Y when you want to support this tuner. - config DVB_TUNER_QT1010 tristate "Quantek QT1010 silicon tuner" depends on DVB_CORE && I2C @@ -398,15 +384,6 @@ config DVB_TUNER_DIB0070 This device is only used inside a SiP called togther with a demodulator for now. -config DVB_TUNER_XC5000 - tristate "Xceive XC5000 silicon tuner" - depends on I2C - default m if DVB_FE_CUSTOMISE - help - A driver for the silicon tuner XC5000 from Xceive. - This device is only used inside a SiP called togther with a - demodulator for now. - config DVB_TUNER_ITD1000 tristate "Integrant ITD1000 Zero IF tuner for DVB-S/DSS" depends on DVB_CORE && I2C diff --git a/linux/drivers/media/dvb/frontends/Makefile b/linux/drivers/media/dvb/frontends/Makefile index 7b7f102eb..62c6e2a31 100644 --- a/linux/drivers/media/dvb/frontends/Makefile +++ b/linux/drivers/media/dvb/frontends/Makefile @@ -3,9 +3,7 @@ # EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -EXTRA_CFLAGS += -Idrivers/media/video/ - -tda18271-objs := tda18271-tables.o tda18271-common.o tda18271-fe.o +EXTRA_CFLAGS += -Idrivers/media/common/tuners/ obj-$(CONFIG_DVB_PLL) += dvb-pll.o obj-$(CONFIG_DVB_STV0299) += stv0299.o @@ -43,8 +41,6 @@ obj-$(CONFIG_DVB_ISL6405) += isl6405.o obj-$(CONFIG_DVB_ISL6421) += isl6421.o obj-$(CONFIG_DVB_TDA10086) += tda10086.o obj-$(CONFIG_DVB_TDA826X) += tda826x.o -obj-$(CONFIG_DVB_TDA827X) += tda827x.o -obj-$(CONFIG_DVB_TDA18271) += tda18271.o obj-$(CONFIG_DVB_TUNER_MT2060) += mt2060.o obj-$(CONFIG_DVB_TUNER_MT2266) += mt2266.o obj-$(CONFIG_DVB_TUNER_DIB0070) += dib0070.o @@ -52,7 +48,6 @@ obj-$(CONFIG_DVB_TUNER_QT1010) += qt1010.o obj-$(CONFIG_DVB_TUA6100) += tua6100.o obj-$(CONFIG_DVB_TUNER_MT2131) += mt2131.o obj-$(CONFIG_DVB_S5H1409) += s5h1409.o -obj-$(CONFIG_DVB_TUNER_XC5000) += xc5000.o obj-$(CONFIG_DVB_TUNER_ITD1000) += itd1000.o obj-$(CONFIG_DVB_AU8522) += au8522.o obj-$(CONFIG_DVB_TDA10048) += tda10048.o diff --git a/linux/drivers/media/video/Kconfig b/linux/drivers/media/video/Kconfig index fe9a4cc14..e0d65f134 100644 --- a/linux/drivers/media/video/Kconfig +++ b/linux/drivers/media/video/Kconfig @@ -1,4 +1,50 @@ # +# Generic video config states +# + +config VIDEO_V4L2 + tristate + depends on VIDEO_DEV && VIDEO_V4L2_COMMON + default VIDEO_DEV && VIDEO_V4L2_COMMON + +config VIDEO_V4L1 + tristate + depends on VIDEO_DEV && VIDEO_V4L2_COMMON && VIDEO_ALLOW_V4L1 + default VIDEO_DEV && VIDEO_V4L2_COMMON && VIDEO_ALLOW_V4L1 + +config VIDEOBUF_GEN + tristate + +config VIDEOBUF_DMA_SG + depends on HAS_DMA + select VIDEOBUF_GEN + tristate + +config VIDEOBUF_VMALLOC + select VIDEOBUF_GEN + tristate + +config VIDEOBUF_DVB + tristate + select VIDEOBUF_GEN + select VIDEOBUF_DMA_SG + +config VIDEO_BTCX + tristate + +config VIDEO_IR_I2C + tristate + +config VIDEO_IR + tristate + depends on INPUT + select VIDEO_IR_I2C if I2C + +config VIDEO_TVEEPROM + tristate + depends on I2C + +# # Multimedia Video device configuration # @@ -640,6 +686,8 @@ config VIDEO_MEYE source "drivers/media/video/saa7134/Kconfig" +source "drivers/media/video/saa7146/Kconfig" + config VIDEO_MXB tristate "Siemens-Nixdorf 'Multimedia eXtension Board'" depends on PCI && VIDEO_V4L1 && I2C diff --git a/linux/drivers/media/video/Makefile b/linux/drivers/media/video/Makefile index f190c0702..82ef66600 100644 --- a/linux/drivers/media/video/Makefile +++ b/linux/drivers/media/video/Makefile @@ -87,16 +87,6 @@ obj-$(CONFIG_TUNER_3036) += tuner-3036.o obj-$(CONFIG_VIDEO_TUNER) += tuner.o -obj-$(CONFIG_TUNER_XC2028) += tuner-xc2028.o -obj-$(CONFIG_TUNER_SIMPLE) += tuner-simple.o -# tuner-types will be merged into tuner-simple, in the future -obj-$(CONFIG_TUNER_SIMPLE) += tuner-types.o -obj-$(CONFIG_TUNER_MT20XX) += mt20xx.o -obj-$(CONFIG_TUNER_TDA8290) += tda8290.o -obj-$(CONFIG_TUNER_TEA5767) += tea5767.o -obj-$(CONFIG_TUNER_TEA5761) += tea5761.o -obj-$(CONFIG_TUNER_TDA9887) += tda9887.o - obj-$(CONFIG_VIDEOBUF_GEN) += videobuf-core.o obj-$(CONFIG_VIDEOBUF_DMA_SG) += videobuf-dma-sg.o obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o @@ -146,5 +136,8 @@ obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o obj-$(CONFIG_VIDEO_AU0828) += au0828/ +obj-$(CONFIG_VIDEO_SAA7146) += saa7146/ + EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends +EXTRA_CFLAGS += -Idrivers/media/common/tuners diff --git a/linux/drivers/media/video/au0828/Makefile b/linux/drivers/media/video/au0828/Makefile index 9f4f572c8..cd2c58281 100644 --- a/linux/drivers/media/video/au0828/Makefile +++ b/linux/drivers/media/video/au0828/Makefile @@ -2,7 +2,7 @@ au0828-objs := au0828-core.o au0828-i2c.o au0828-cards.o au0828-dvb.o obj-$(CONFIG_VIDEO_AU0828) += au0828.o -EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/bt8xx/Makefile b/linux/drivers/media/video/bt8xx/Makefile index 924d216d9..e415f6fc4 100644 --- a/linux/drivers/media/video/bt8xx/Makefile +++ b/linux/drivers/media/video/bt8xx/Makefile @@ -9,4 +9,5 @@ bttv-objs := bttv-driver.o bttv-cards.o bttv-if.o \ obj-$(CONFIG_VIDEO_BT848) += bttv.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core diff --git a/linux/drivers/media/video/cx23885/Makefile b/linux/drivers/media/video/cx23885/Makefile index d7b0721af..29c23b44c 100644 --- a/linux/drivers/media/video/cx23885/Makefile +++ b/linux/drivers/media/video/cx23885/Makefile @@ -3,6 +3,7 @@ cx23885-objs := cx23885-cards.o cx23885-video.o cx23885-vbi.o cx23885-core.o cx2 obj-$(CONFIG_VIDEO_CX23885) += cx23885.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/cx88/Makefile b/linux/drivers/media/video/cx88/Makefile index 532cee35e..6ec30f242 100644 --- a/linux/drivers/media/video/cx88/Makefile +++ b/linux/drivers/media/video/cx88/Makefile @@ -10,5 +10,6 @@ obj-$(CONFIG_VIDEO_CX88_DVB) += cx88-dvb.o obj-$(CONFIG_VIDEO_CX88_VP3054) += cx88-vp3054-i2c.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/em28xx/Makefile b/linux/drivers/media/video/em28xx/Makefile index 3d1c3cc33..8137a8c94 100644 --- a/linux/drivers/media/video/em28xx/Makefile +++ b/linux/drivers/media/video/em28xx/Makefile @@ -8,6 +8,7 @@ obj-$(CONFIG_VIDEO_EM28XX_ALSA) += em28xx-alsa.o obj-$(CONFIG_VIDEO_EM28XX_DVB) += em28xx-dvb.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/ivtv/Makefile b/linux/drivers/media/video/ivtv/Makefile index a0389014f..26ce0d6ea 100644 --- a/linux/drivers/media/video/ivtv/Makefile +++ b/linux/drivers/media/video/ivtv/Makefile @@ -8,6 +8,7 @@ obj-$(CONFIG_VIDEO_IVTV) += ivtv.o obj-$(CONFIG_VIDEO_FB_IVTV) += ivtvfb.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/pvrusb2/Makefile b/linux/drivers/media/video/pvrusb2/Makefile index 5b3083c89..4fda2de69 100644 --- a/linux/drivers/media/video/pvrusb2/Makefile +++ b/linux/drivers/media/video/pvrusb2/Makefile @@ -16,5 +16,6 @@ pvrusb2-objs := pvrusb2-i2c-core.o pvrusb2-i2c-cmd-v4l2.o \ obj-$(CONFIG_VIDEO_PVRUSB2) += pvrusb2.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/video/saa7134/Makefile b/linux/drivers/media/video/saa7134/Makefile index 9aff937ba..3dbaa19a6 100644 --- a/linux/drivers/media/video/saa7134/Makefile +++ b/linux/drivers/media/video/saa7134/Makefile @@ -11,5 +11,6 @@ obj-$(CONFIG_VIDEO_SAA7134_ALSA) += saa7134-alsa.o obj-$(CONFIG_VIDEO_SAA7134_DVB) += saa7134-dvb.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core EXTRA_CFLAGS += -Idrivers/media/dvb/frontends diff --git a/linux/drivers/media/common/Kconfig b/linux/drivers/media/video/saa7146/Kconfig index 769c6f814..769c6f814 100644 --- a/linux/drivers/media/common/Kconfig +++ b/linux/drivers/media/video/saa7146/Kconfig diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/video/saa7146/saa7146_core.c index 973989dd4..973989dd4 100644 --- a/linux/drivers/media/common/saa7146_core.c +++ b/linux/drivers/media/video/saa7146/saa7146_core.c diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/video/saa7146/saa7146_fops.c index ac035cbcf..ac035cbcf 100644 --- a/linux/drivers/media/common/saa7146_fops.c +++ b/linux/drivers/media/video/saa7146/saa7146_fops.c diff --git a/linux/drivers/media/common/saa7146_hlp.c b/linux/drivers/media/video/saa7146/saa7146_hlp.c index c0f3f51f9..c0f3f51f9 100644 --- a/linux/drivers/media/common/saa7146_hlp.c +++ b/linux/drivers/media/video/saa7146/saa7146_hlp.c diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/video/saa7146/saa7146_i2c.c index a2447ff60..a2447ff60 100644 --- a/linux/drivers/media/common/saa7146_i2c.c +++ b/linux/drivers/media/video/saa7146/saa7146_i2c.c diff --git a/linux/drivers/media/common/saa7146_vbi.c b/linux/drivers/media/video/saa7146/saa7146_vbi.c index 9a03df7fc..9a03df7fc 100644 --- a/linux/drivers/media/common/saa7146_vbi.c +++ b/linux/drivers/media/video/saa7146/saa7146_vbi.c diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/video/saa7146/saa7146_video.c index b68c6288b..b68c6288b 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/video/saa7146/saa7146_video.c diff --git a/linux/drivers/media/video/usbvision/Makefile b/linux/drivers/media/video/usbvision/Makefile index 9ac92a80c..338718750 100644 --- a/linux/drivers/media/video/usbvision/Makefile +++ b/linux/drivers/media/video/usbvision/Makefile @@ -3,3 +3,4 @@ usbvision-objs := usbvision-core.o usbvision-video.o usbvision-i2c.o usbvision- obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o EXTRA_CFLAGS += -Idrivers/media/video +EXTRA_CFLAGS += -Idrivers/media/common/tuners |