Skip to contentSkip to conversation

Full DVB driver package for Earthsoft PT3 (ISDB-S/ISDB-T) cards

PATCH New буди Романто <knightriderare.ma> 1 participant 1 message Oct 31, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Full DVB driver package for Earthsoft PT3 (ISDB-S/ISDB-T) cards

From: Буди Романто <[email protected]>

A DVB driver for Earthsoft PT3 (ISDB-S/T) receiver PCI Express cards, based on
1. PT3 chardev driver

	https://github.com/knight-rider/ptx/tree/master/pt3_drv
	https://github.com/m-tsudo/pt3
2. PT1/PT2 DVB driver
	./drivers/media/pci/pt1

It behaves similarly as PT1 DVB, plus some tuning enhancements:
1. in addition to the real frequency:

	ISDB-S : freq. channel ID
	ISDB-T : freq# (I/O# +128), ch#, ch# +64 for CATV

2. in addition to TSID:
ISDB-S : slot#

As requested, the following features have been removed:
- DKMS & standalone compile
- verbosity (debug levels), use single level -DDEBUG instead

The full package (buildable as standalone, DKMS or mainstream embedded module) is available at
https://github.com/knight-rider/ptx/tree/master/pt3_dvb

Quoted 3 lines

Mauro Carvalho Chehab:
Please put the tuner code as an I2C driver, under drivers/media/tuners, frontends at drivers/media/dvb-frontends.

PS: To keep package integrity & compatibility with PT1/PT2 user apps, FE etc. are still placed in the same directory.

---
 drivers/media/pci/Kconfig           |    2 +-
 drivers/media/pci/Makefile          |    1 +
 drivers/media/pci/pt3_dvb/Kconfig   |   12 +
 drivers/media/pci/pt3_dvb/Makefile  |    6 +
 drivers/media/pci/pt3_dvb/pt3.c     |  601 +++++++++++++++++++
 drivers/media/pci/pt3_dvb/pt3.h     |  225 +++++++
 drivers/media/pci/pt3_dvb/pt3_bus.c |  134 +++++
 drivers/media/pci/pt3_dvb/pt3_dma.c |  321 ++++++++++
 drivers/media/pci/pt3_dvb/pt3_fe.c  | 1124 +++++++++++++++++++++++++++++++++++
 drivers/media/pci/pt3_dvb/pt3_i2c.c |   64 ++
 drivers/media/pci/pt3_dvb/pt3_tc.c  |  458 ++++++++++++++
 11 files changed, 2947 insertions(+), 1 deletion(-)
 create mode 100644 drivers/media/pci/pt3_dvb/Kconfig
 create mode 100644 drivers/media/pci/pt3_dvb/Makefile
 create mode 100644 drivers/media/pci/pt3_dvb/pt3.c
 create mode 100644 drivers/media/pci/pt3_dvb/pt3.h
 create mode 100644 drivers/media/pci/pt3_dvb/pt3_bus.c
 create mode 100644 drivers/media/pci/pt3_dvb/pt3_dma.c
 create mode 100644 drivers/media/pci/pt3_dvb/pt3_fe.c
 create mode 100644 drivers/media/pci/pt3_dvb/pt3_i2c.c
 create mode 100644 drivers/media/pci/pt3_dvb/pt3_tc.c
drivers/media/pci/Kconfig +1 -1
index 53196f1..2c90c34 100644
@@ -30,7 +30,6 @@ source "drivers/media/pci/cx88/Kconfig"
 source "drivers/media/pci/bt8xx/Kconfig"
 source "drivers/media/pci/saa7134/Kconfig"
 source "drivers/media/pci/saa7164/Kconfig"
-
 endif
 
 if MEDIA_DIGITAL_TV_SUPPORT
@@ -40,6 +39,7 @@ source "drivers/media/pci/b2c2/Kconfig"
 source "drivers/media/pci/pluto2/Kconfig"
 source "drivers/media/pci/dm1105/Kconfig"
 source "drivers/media/pci/pt1/Kconfig"
+source "drivers/media/pci/pt3_dvb/Kconfig"
 source "drivers/media/pci/mantis/Kconfig"
 source "drivers/media/pci/ngene/Kconfig"
 source "drivers/media/pci/ddbridge/Kconfig"
drivers/media/pci/Makefile +1 -0
index 35cc578..02c6857 100644
@@ -7,6 +7,7 @@ obj-y        +=	ttpci/		\
 		pluto2/		\
 		dm1105/		\
 		pt1/		\
+		pt3_dvb/	\
 		mantis/		\
 		ngene/		\
 		ddbridge/	\
drivers/media/pci/pt3_dvb/Kconfig new file +12 -0
new file mode 100644
index 0000000..f9ba00d
@@ -0,0 +1,12 @@
+config PT3_DVB
+	tristate "Earthsoft PT3 cards"
+	depends on DVB_CORE && PCI
+	help
+	  Support for Earthsoft PT3 PCI-Express cards.
+
+	  Since these cards have no MPEG decoder onboard, they transmit
+	  only compressed MPEG data over the PCI bus, so you need
+	  an external software decoder to watch TV on your computer.
+
+	  Say Y or M if you own such a device and want to use it.
+
drivers/media/pci/pt3_dvb/Makefile new file +6 -0
new file mode 100644
index 0000000..7087c90
@@ -0,0 +1,6 @@
+pt3_dvb-objs := pt3.o pt3_fe.o pt3_dma.o pt3_tc.o pt3_i2c.o pt3_bus.o
+
+obj-$(CONFIG_PT3_DVB) += pt3_dvb.o
+
+ccflags-y += -Idrivers/media/dvb-core -Idrivers/media/dvb-frontends -Idrivers/media/tuners
+
drivers/media/pci/pt3_dvb/pt3.c new file +601 -0

601 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3.h new file +225 -0

225 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3_bus.c new file +134 -0

134 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3_dma.c new file +321 -0

321 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3_fe.c new file +1124 -0

1,124 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3_i2c.c new file +64 -0

64 lines not on this page · raw message

drivers/media/pci/pt3_dvb/pt3_tc.c new file +458 -0

458 lines not on this page · raw message

Signature · 1 line
1.8.4