Commit 583e3c0c authored by Michael Hunold's avatar Michael Hunold Committed by Linus Torvalds

[PATCH] Kconfig and Makefile updates, inspired by Adrian Bunk and Roman Zippel

 - split up saa7146 compilation in core part (saa7146.o) and video+vbi
   part (saa7146_vv).  some drivers need both (av7110.c), some drivers
   only need the core stuff (budget*.c)
 - add entry for sp887x DVB-T modulator to corresponding Kconfig
 - use new SELECT facility of Kconfig, first mentioned by Adrian Bunk
   and Roman Zippel in DVB subsystem
 - use SELECT in media/video/Kconfig, too.
parent a2e17cb5
config VIDEO_SAA7146 config VIDEO_SAA7146
def_tristate DVB_AV7110 || DVB_BUDGET || DVB_BUDGET_AV || \ tristate
VIDEO_MXB || VIDEO_DPC || VIDEO_HEXIUM_ORION || \ select I2C
VIDEO_HEXIUM_GEMINI
depends on VIDEO_DEV && PCI && I2C config VIDEO_SAA7146_VV
tristate
select VIDEO_BUF
select VIDEO_VIDEOBUF
select VIDEO_SAA7146
config VIDEO_VIDEOBUF config VIDEO_VIDEOBUF
def_tristate VIDEO_SAA7134 || VIDEO_BT848 || VIDEO_SAA7146 tristate
depends on VIDEO_DEV
saa7146-objs := saa7146_i2c.o saa7146_core.o saa7146-objs := saa7146_i2c.o saa7146_core.o
saa7146_vv-objs := saa7146_vv_ksyms.o saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o saa7146_vv-objs := saa7146_vv_ksyms.o saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o
obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o saa7146_vv.o obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o
obj-$(CONFIG_VIDEO_SAA7146_VV) += saa7146_vv.o
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
# #
menu "Digital Video Broadcasting Devices" menu "Digital Video Broadcasting Devices"
depends on NET && INET
config DVB config DVB
bool "DVB For Linux" bool "DVB For Linux"
depends on NET && INET
---help--- ---help---
Support Digital Video Broadcasting hardware. Enable this if you Support Digital Video Broadcasting hardware. Enable this if you
own a DVB adapter and want to use it or if you compile Linux for own a DVB adapter and want to use it or if you compile Linux for
a digital SetTopBox. a digital SetTopBox.
API specs and user tools and are available for example from API specs and user tools are available from
<http://www.linuxtv.org/>. <http://www.linuxtv.org/>.
Please report problems regarding this driver to the LinuxDVB Please report problems regarding this driver to the LinuxDVB
...@@ -33,18 +33,16 @@ source "drivers/media/dvb/dvb-core/Kconfig" ...@@ -33,18 +33,16 @@ source "drivers/media/dvb/dvb-core/Kconfig"
source "drivers/media/dvb/frontends/Kconfig" source "drivers/media/dvb/frontends/Kconfig"
comment "Supported SAA7146 based PCI Adapters" comment "Supported SAA7146 based PCI Adapters"
depends on DVB && PCI depends on DVB_CORE && PCI
source "drivers/media/dvb/ttpci/Kconfig" source "drivers/media/dvb/ttpci/Kconfig"
comment "Supported USB Adapters" comment "Supported USB Adapters"
depends on DVB && USB depends on DVB_CORE && USB
source "drivers/media/dvb/ttusb-budget/Kconfig" source "drivers/media/dvb/ttusb-budget/Kconfig"
source "drivers/media/dvb/ttusb-dec/Kconfig" source "drivers/media/dvb/ttusb-dec/Kconfig"
comment "Supported FlexCopII (B2C2) Adapters" comment "Supported FlexCopII (B2C2) Adapters"
depends on DVB && PCI depends on DVB_CORE && PCI
source "drivers/media/dvb/b2c2/Kconfig" source "drivers/media/dvb/b2c2/Kconfig"
endmenu endmenu
......
...@@ -4,5 +4,8 @@ config DVB_CORE ...@@ -4,5 +4,8 @@ config DVB_CORE
select CRC32 select CRC32
help help
DVB core utility functions for device handling, software fallbacks etc. 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.
If unsure say N.
Say Y when you have a DVB card and want to use it. If unsure say N.
obj-$(CONFIG_DVB_CORE) += crc32.o
...@@ -26,6 +26,16 @@ config DVB_ALPS_BSRV2 ...@@ -26,6 +26,16 @@ config DVB_ALPS_BSRV2
DVB adapter simply enable all supported frontends, the DVB adapter simply enable all supported frontends, the
right one will get autodetected. right one will get autodetected.
config DVB_SP887X
tristate "Frontends with sp887x demodulators, e.g. Microtune DTF7072"
depends on DVB_CORE
help
A DVB-T demodulator driver. Say Y when you want to support the sp887x.
If you don't know what tuner module is soldered on your
DVB adapter simply enable all supported frontends, the
right one will get autodetected.
config DVB_ALPS_TDLB7 config DVB_ALPS_TDLB7
tristate "Alps TDLB7 (OFDM)" tristate "Alps TDLB7 (OFDM)"
depends on DVB_CORE depends on DVB_CORE
......
config DVB_AV7110 config DVB_AV7110
tristate "AV7110 cards" tristate "AV7110 cards"
depends on VIDEO_DEV && DVB_CORE depends on DVB_CORE
select VIDEO_DEV
select VIDEO_SAA7146_VV
help help
Support for SAA7146 and AV7110 based DVB cards as produced Support for SAA7146 and AV7110 based DVB cards as produced
by Fujitsu-Siemens, Technotrend, Hauppauge and others. by Fujitsu-Siemens, Technotrend, Hauppauge and others.
...@@ -26,6 +28,7 @@ config DVB_AV7110_OSD ...@@ -26,6 +28,7 @@ config DVB_AV7110_OSD
config DVB_BUDGET config DVB_BUDGET
tristate "Budget cards" tristate "Budget cards"
depends on DVB_CORE depends on DVB_CORE
select VIDEO_SAA7146
help help
Support for simple SAA7146 based DVB cards Support for simple SAA7146 based DVB cards
(so called Budget- or Nova-PCI cards) without onboard (so called Budget- or Nova-PCI cards) without onboard
...@@ -38,7 +41,8 @@ config DVB_BUDGET ...@@ -38,7 +41,8 @@ config DVB_BUDGET
config DVB_BUDGET_CI config DVB_BUDGET_CI
tristate "Budget cards with onboard CI connector" tristate "Budget cards with onboard CI connector"
depends on VIDEO_DEV && DVB_CORE && DVB_BUDGET depends on DVB_CORE
select VIDEO_SAA7146
help help
Support for simple SAA7146 based DVB cards Support for simple SAA7146 based DVB cards
(so called Budget- or Nova-PCI cards) without onboard (so called Budget- or Nova-PCI cards) without onboard
...@@ -51,7 +55,9 @@ config DVB_BUDGET_CI ...@@ -51,7 +55,9 @@ config DVB_BUDGET_CI
config DVB_BUDGET_AV config DVB_BUDGET_AV
tristate "Budget cards with analog video inputs" tristate "Budget cards with analog video inputs"
depends on VIDEO_DEV && DVB_CORE && DVB_BUDGET depends on DVB_CORE
select VIDEO_DEV
select VIDEO_SAA7146_VV
help help
Support for simple SAA7146 based DVB cards Support for simple SAA7146 based DVB cards
(so called Budget- or Nova-PCI cards) without onboard (so called Budget- or Nova-PCI cards) without onboard
...@@ -64,7 +70,9 @@ config DVB_BUDGET_AV ...@@ -64,7 +70,9 @@ config DVB_BUDGET_AV
config DVB_BUDGET_PATCH config DVB_BUDGET_PATCH
tristate "AV7110 cards with Budget Patch" tristate "AV7110 cards with Budget Patch"
depends on DVB_CORE && DVB_BUDGET depends on DVB_BUDGET
select VIDEO_DEV
select VIDEO_SAA7146_VV
help help
Support for Budget Patch (full TS) modification on Support for Budget Patch (full TS) modification on
SAA7146+AV7110 based cards (DVB-S cards). This SAA7146+AV7110 based cards (DVB-S cards). This
......
config DVB_TTUSB_BUDGET config DVB_TTUSB_BUDGET
tristate "Technotrend/Hauppauge Nova-USB devices" tristate "Technotrend/Hauppauge Nova-USB devices"
depends on DVB_CORE && USB depends on DVB_CORE
help help
Support for external USB adapters designed by Technotrend and Support for external USB adapters designed by Technotrend and
produced by Hauppauge, shipped under the brand name 'Nova-USB'. produced by Hauppauge, shipped under the brand name 'Nova-USB'.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
menu "Video For Linux" menu "Video For Linux"
depends on VIDEO_DEV!=n depends on VIDEO_DEV
comment "Video Adapters" comment "Video Adapters"
...@@ -228,7 +228,8 @@ config VIDEO_SAA7134 ...@@ -228,7 +228,8 @@ config VIDEO_SAA7134
config VIDEO_MXB config VIDEO_MXB
tristate "Siemens-Nixdorf 'Multimedia eXtension Board'" tristate "Siemens-Nixdorf 'Multimedia eXtension Board'"
depends on VIDEO_DEV && PCI && I2C depends on VIDEO_DEV && PCI
select VIDEO_SAA7146_VV
---help--- ---help---
This is a video4linux driver for the 'Multimedia eXtension Board' This is a video4linux driver for the 'Multimedia eXtension Board'
TV card by Siemens-Nixdorf. TV card by Siemens-Nixdorf.
...@@ -238,7 +239,8 @@ config VIDEO_MXB ...@@ -238,7 +239,8 @@ config VIDEO_MXB
config VIDEO_DPC config VIDEO_DPC
tristate "Philips-Semiconductors 'dpc7146 demonstration board'" tristate "Philips-Semiconductors 'dpc7146 demonstration board'"
depends on VIDEO_DEV && PCI && I2C depends on VIDEO_DEV && PCI
select VIDEO_SAA7146_VV
---help--- ---help---
This is a video4linux driver for the 'dpc7146 demonstration This is a video4linux driver for the 'dpc7146 demonstration
board' by Philips-Semiconductors. It's the reference design board' by Philips-Semiconductors. It's the reference design
...@@ -251,7 +253,8 @@ config VIDEO_DPC ...@@ -251,7 +253,8 @@ config VIDEO_DPC
config VIDEO_HEXIUM_ORION config VIDEO_HEXIUM_ORION
tristate "Hexium HV-PCI6 and Orion frame grabber" tristate "Hexium HV-PCI6 and Orion frame grabber"
depends on VIDEO_DEV && PCI && I2C depends on VIDEO_DEV && PCI
select VIDEO_SAA7146_VV
---help--- ---help---
This is a video4linux driver for the Hexium HV-PCI6 and This is a video4linux driver for the Hexium HV-PCI6 and
Orion frame grabber cards by Hexium. Orion frame grabber cards by Hexium.
...@@ -261,7 +264,8 @@ config VIDEO_HEXIUM_ORION ...@@ -261,7 +264,8 @@ config VIDEO_HEXIUM_ORION
config VIDEO_HEXIUM_GEMINI config VIDEO_HEXIUM_GEMINI
tristate "Hexium Gemini frame grabber" tristate "Hexium Gemini frame grabber"
depends on VIDEO_DEV && PCI && I2C depends on VIDEO_DEV && PCI
select VIDEO_SAA7146_VV
---help--- ---help---
This is a video4linux driver for the Hexium Gemini frame This is a video4linux driver for the Hexium Gemini frame
grabber card by Hexium. Please note that the Gemini Dual grabber card by Hexium. Please note that the Gemini Dual
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment