Skip to content

Commit 3785bc1

Browse files
author
Mauro Carvalho Chehab
committed
[media] b2c2: break it into common/pci/usb directories
b2c2 is, in fact, 2 drivers: one for PCI and one for USB, plus a common bus-independent code. Break it accordingly. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 25aee3d commit 3785bc1

27 files changed

Lines changed: 71 additions & 67 deletions

‎drivers/media/Kconfig‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ config DVB_NET
139139
unsure say Y.
140140

141141
comment "Media drivers"
142-
source "drivers/media/common/Kconfig"
143142
source "drivers/media/rc/Kconfig"
144143

145144
#
@@ -173,4 +172,7 @@ comment "Supported DVB Frontends"
173172
depends on DVB_CORE
174173
source "drivers/media/dvb-frontends/Kconfig"
175174

175+
# Common drivers
176+
source "drivers/media/common/Kconfig"
177+
176178
endif # MEDIA_SUPPORT

‎drivers/media/common/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ config VIDEO_SAA7146_VV
77
depends on VIDEO_V4L2
88
select VIDEOBUF_DMA_SG
99
select VIDEO_SAA7146
10+
11+
source "drivers/media/common/b2c2/Kconfig"

‎drivers/media/common/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
saa7146-objs := saa7146_i2c.o saa7146_core.o
22
saa7146_vv-objs := saa7146_fops.o saa7146_video.o saa7146_hlp.o saa7146_vbi.o
33

4-
obj-y += tuners/
4+
obj-y += tuners/ b2c2/
55
obj-$(CONFIG_VIDEO_SAA7146) += saa7146.o
66
obj-$(CONFIG_VIDEO_SAA7146_VV) += saa7146_vv.o

‎drivers/media/common/b2c2/Kconfig‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
config DVB_B2C2_FLEXCOP
2+
tristate
3+
depends on DVB_CORE && I2C
4+
depends on DVB_B2C2_FLEXCOP_PCI || DVB_B2C2_FLEXCOP_USB
5+
default y
6+
select DVB_PLL if !DVB_FE_CUSTOMISE
7+
select DVB_STV0299 if !DVB_FE_CUSTOMISE
8+
select DVB_MT352 if !DVB_FE_CUSTOMISE
9+
select DVB_MT312 if !DVB_FE_CUSTOMISE
10+
select DVB_NXT200X if !DVB_FE_CUSTOMISE
11+
select DVB_STV0297 if !DVB_FE_CUSTOMISE
12+
select DVB_BCM3510 if !DVB_FE_CUSTOMISE
13+
select DVB_LGDT330X if !DVB_FE_CUSTOMISE
14+
select DVB_S5H1420 if !DVB_FE_CUSTOMISE
15+
select DVB_TUNER_ITD1000 if !DVB_FE_CUSTOMISE
16+
select DVB_ISL6421 if !DVB_FE_CUSTOMISE
17+
select DVB_CX24123 if !DVB_FE_CUSTOMISE
18+
select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMISE
19+
select DVB_TUNER_CX24113 if !DVB_FE_CUSTOMISE
20+
help
21+
Support for the digital TV receiver chip made by B2C2 Inc. included in
22+
Technisats PCI cards and USB boxes.
23+
24+
Say Y if you own such a device and want to use it.
25+
26+
config DVB_B2C2_FLEXCOP_DEBUG
27+
bool "Enable debug for the B2C2 FlexCop drivers"
28+
depends on DVB_B2C2_FLEXCOP
29+
help
30+
Say Y if you want to enable the module option to control debug messages
31+
of all B2C2 FlexCop drivers.

‎drivers/media/common/b2c2/Makefile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
b2c2-flexcop-objs = flexcop.o flexcop-fe-tuner.o flexcop-i2c.o \
2+
flexcop-sram.o flexcop-eeprom.o flexcop-misc.o flexcop-hw-filter.o
3+
obj-$(CONFIG_DVB_B2C2_FLEXCOP) += b2c2-flexcop.o
4+
5+
ccflags-y += -Idrivers/media/dvb-core/
6+
ccflags-y += -Idrivers/media/dvb-frontends/
7+
ccflags-y += -Idrivers/media/common/tuners/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)