Add a driver for Earthsoft PT1
PATCH 2/2 Add a driver for Earthsoft PT1
Add a driver for Earthsoft PT1
Eearthsoft PT1 is a PCI card for Japanese broadcasting with two ISDB-S and ISDB-T demodulators.
This card has neither MPEG decoder nor conditional access module onboard. It transmits only compressed and possibly encrypted MPEG data over the PCI bus, so you need an external software decoder and a decrypter to watch TV on your computer.
This driver is originally developed by Tomoaki Ishikawa <[email protected]> by reverse engineering.
linux/drivers/media/dvb/Kconfig +4 -0
@@ -55,6 +55,10 @@ depends on DVB_CORE && IEEE1394 source "drivers/media/dvb/firewire/Kconfig" +comment "Supported Earthsoft PT1 Adapters" + depends on DVB_CORE && PCI && I2C +source "drivers/media/dvb/pt1/Kconfig" + comment "Supported DVB Frontends" depends on DVB_CORE source "drivers/media/dvb/frontends/Kconfig"
linux/drivers/media/dvb/Makefile +1 -1
@@ -2,6 +2,6 @@ # Makefile for the kernel multimedia device drivers. # -obj-y := dvb-core/ frontends/ ttpci/ ttusb-dec/ ttusb-budget/ b2c2/ bt8xx/ dvb-usb/ pluto2/ siano/ dm1105/ +obj-y := dvb-core/ frontends/ ttpci/ ttusb-dec/ ttusb-budget/ b2c2/ bt8xx/ dvb-usb/ pluto2/ siano/ dm1105/ pt1/ obj-$(CONFIG_DVB_FIREDTV) += firewire/
linux/drivers/media/dvb/pt1/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +config DVB_PT1 + tristate "PT1 cards" + depends on DVB_CORE && PCI && I2C + help + Support for Earthsoft PT1 PCI 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. +
linux/drivers/media/dvb/pt1/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +earth-pt1-objs := pt1.o va1j5jf8007s.o va1j5jf8007t.o + +obj-$(CONFIG_DVB_PT1) += earth-pt1.o + +EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends
linux/drivers/media/dvb/pt1/pt1.c new file +1056 -0
1,056 lines not on this page · raw message
linux/drivers/media/dvb/pt1/va1j5jf8007s.c new file +658 -0
658 lines not on this page · raw message
linux/drivers/media/dvb/pt1/va1j5jf8007s.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* ISDB-S driver for VA1J5JF8007 +* +* Copyright (C) 2009 HIRANO Takahito <[email protected]> +* +* based on pt1dvr - http://pt1dvr.sourceforge.jp/ +* by Tomoaki Ishikawa <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef VA1J5JF8007S_H +#define VA1J5JF8007S_H + +struct va1j5jf8007s_config { +u8 demod_address; +}; + +struct i2c_adapter ; + +struct dvb_frontend * +va1j5jf8007s_attach (const struct va1j5jf8007s_config *config, +struct i2c_adapter *adap); + +/* must be called after va1j5jf8007t_attach */ +int va1j5jf8007s_prepare (struct dvb_frontend *fe); + +#endif
linux/drivers/media/dvb/pt1/va1j5jf8007t.c new file +468 -0
468 lines not on this page · raw message
linux/drivers/media/dvb/pt1/va1j5jf8007t.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* ISDB-T driver for VA1J5JF8007 +* +* Copyright (C) 2009 HIRANO Takahito <[email protected]> +* +* based on pt1dvr - http://pt1dvr.sourceforge.jp/ +* by Tomoaki Ishikawa <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef VA1J5JF8007T_H +#define VA1J5JF8007T_H + +struct va1j5jf8007t_config { +u8 demod_address; +}; + +struct i2c_adapter ; + +struct dvb_frontend * +va1j5jf8007t_attach (const struct va1j5jf8007t_config *config, +struct i2c_adapter *adap); + +/* must be called after va1j5jf8007s_attach */ +int va1j5jf8007t_prepare (struct dvb_frontend *fe); + +#endif
Em Sun, 23 Aug 2009 12:51:22 +0900
[email protected] escreveu:
Quoted 6 lines
Add a driver for Earthsoft PT1
Eearthsoft PT1 is a PCI card for Japanese broadcasting with two ISDB-S and ISDB-T demodulators.
Quoted 8 lines
This card has neither MPEG decoder nor conditional access module onboard. It transmits only compressed and possibly encrypted MPEG data over the PCI bus, so you need an external software decoder and a decrypter to watch TV on your computer.
This driver is originally developed by Tomoaki Ishikawa <[email protected]> by reverse engineering.
Committed, thanks. Please take a look at the ISDB-T API recently added. It would be good to support it on all ISDB-T drivers:
http://linuxtv.org/downloads/v4l-dvb-apis/ch09s03.html
Cheers,
Mauro