Acorp TV134DS( saa7134, tda10086, tda8262, isl6421)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just in case, if someone interested, I've got my Acorp TV134DS  to work.  I 
think, this card similar to FlyDVB-s.
I use http://linuxtv.org/hg/~quincy/v4l-dvb-tt-s-1401 tree with patch I 
propose. Just modprobe and make symlinks, like this:

modprobe saa7134-dvb
mkdir /dev/dvb
chmod 755 /dev/dvb
mkdir /dev/dvb/adapter0
chmod 755 /dev/dvb/adapter0
cp -l /dev/dvb0.demux0 /dev/dvb/adapter0/demux0
cp -l /dev/dvb0.dvr0 /dev/dvb/adapter0/dvr0
cp -l /dev/dvb0.frontend0 /dev/dvb/adapter0/frontend0
cp -l /dev/dvb0.net0 /dev/dvb/adapter0/net0
chown root.root /dev/dvb/adapter0/*
chmod 666 /dev/dvb/adapter0/*
 
Enjoy!
Only in v4l-dvb-tt-s-1401-liplianin: dvbdev
Only in v4l-dvb-tt-s-1401: .hg
Only in v4l-dvb-tt-s-1401-liplianin: .hg_archival.txt
diff -ur v4l-dvb-tt-s-1401/linux/drivers/media/dvb/frontends/isl6421.c v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/dvb/frontends/isl6421.c
--- v4l-dvb-tt-s-1401/linux/drivers/media/dvb/frontends/isl6421.c	2006-07-24 12:22:37.000000000 +0300
+++ v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/dvb/frontends/isl6421.c	2006-07-21 22:55:01.000000000 +0300
@@ -44,6 +44,11 @@
 	u8			i2c_addr;
 	void			(*release_chain)(struct dvb_frontend* fe);
 };
+static int debug = 1;
+#define dprintk(args...) \
+	do { \
+		if (debug) printk(KERN_DEBUG "isl6421: " args); \
+	} while (0)
 
 static int isl6421_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
 {
@@ -69,7 +74,7 @@
 
 	isl6421->config |= isl6421->override_or;
 	isl6421->config &= isl6421->override_and;
-
+        dprintk ("%s\n", __FUNCTION__);
 	return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO;
 }
 
diff -ur v4l-dvb-tt-s-1401/linux/drivers/media/dvb/frontends/tda826x.c v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/dvb/frontends/tda826x.c
--- v4l-dvb-tt-s-1401/linux/drivers/media/dvb/frontends/tda826x.c	2006-07-24 12:22:37.000000000 +0300
+++ v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/dvb/frontends/tda826x.c	2006-07-21 22:41:06.000000000 +0300
@@ -59,6 +59,7 @@
 	}
 	if (fe->ops.i2c_gate_ctrl)
 		fe->ops.i2c_gate_ctrl(fe, 0);
+	printk("%s:\n", __FUNCTION__);
 
 	return (ret == 1) ? 0 : ret;
 }
@@ -96,6 +97,7 @@
 		fe->ops.i2c_gate_ctrl(fe, 0);
 
 	priv->frequency = div * 1000;
+	printk("%s:\n", __FUNCTION__);
 
 	return (ret == 1) ? 0 : ret;
 }
@@ -147,6 +149,8 @@
 	fe->ops.tuner_ops.info.frequency_min = 2175000;
 
 	fe->tuner_priv = priv;
+	printk("%s:\n", __FUNCTION__);
+
 	return fe;
 }
 EXPORT_SYMBOL(tda826x_attach);
diff -ur v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134-cards.c v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134-cards.c
--- v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134-cards.c	2006-07-24 12:22:38.000000000 +0300
+++ v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134-cards.c	2006-07-24 12:32:13.000000000 +0300
@@ -2931,6 +2931,27 @@
 			.gpio = 0x8000,
 		},
 	},
+		[SAA7134_BOARD_FLYDVBS_LR300] = {
+		/* LifeView FlyDVB-s */
+		/* Igor M. Liplianin <liplianin@xxxxxx> */
+		.name           = "LifeView FlyDVB-S /Acorp TV134DS",
+		.audio_clock    = 0x00200000,
+		.tuner_type     = TUNER_ABSENT,
+		.radio_type     = UNSET,
+		.tuner_addr	= ADDR_UNSET,
+		.radio_addr	= ADDR_UNSET,
+		.mpeg           = SAA7134_MPEG_DVB,
+		.inputs         = {{
+			.name = name_comp1,	/* Composite input */
+			.vmux = 3,
+			.amux = LINE1,
+		},{
+			.name = name_svideo,	/* S-Video signal on S-Video input */
+			.vmux = 8,
+			.amux = LINE1,
+		}},
+	},
+
 };
 
 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -3462,6 +3483,18 @@
 		.subdevice    = 0x0005,
 		.driver_data  = SAA7134_BOARD_MD7134_BRIDGE_2,
 	},{
+		.vendor       = PCI_VENDOR_ID_PHILIPS,
+		.device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
+		.subvendor    = 0x5168,
+		.subdevice    = 0x0300,
+		.driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
+	},{
+		.vendor       = PCI_VENDOR_ID_PHILIPS,
+		.device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
+		.subvendor    = 0x4e42,
+		.subdevice    = 0x0300,/* LR300 */
+		.driver_data  = SAA7134_BOARD_FLYDVBS_LR300,
+	},{
 		.vendor = PCI_VENDOR_ID_PHILIPS,
 		.device = PCI_DEVICE_ID_PHILIPS_SAA7134,
 		.subvendor = 0x1489,
@@ -3624,6 +3657,9 @@
 	case SAA7134_BOARD_KWORLD_TERMINATOR:
 	case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS:
 	case SAA7134_BOARD_FLYDVBT_LR301:
+	case SAA7134_BOARD_FLYDVBS_LR300:
+		saa_writeb(SAA7134_GPIO_GPMODE3, 0x80);
+		saa_writeb(SAA7134_GPIO_GPSTATUS2, 0x40);
 	case SAA7134_BOARD_FLYDVBTDUO:
 		dev->has_remote = SAA7134_REMOTE_GPIO;
 		break;
diff -ur v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134-dvb.c v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134-dvb.c
--- v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134-dvb.c	2006-07-24 12:22:38.000000000 +0300
+++ v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134-dvb.c	2006-07-24 12:37:29.000000000 +0300
@@ -46,6 +46,9 @@
 # include "nxt200x.h"
 #endif
 
+#include "tda10086.h"
+#include "tda826x.h"
+#include "isl6421.h"
 MODULE_AUTHOR("Gerd Knorr <kraxel@xxxxxxxxxxx> [SuSE Labs]");
 MODULE_LICENSE("GPL");
 
@@ -994,6 +997,11 @@
 };
 #endif
 
+static struct tda10086_config flydvbs = {
+	.demod_address = 0x0e,
+	.invert = 0,
+};
+
 /* ------------------------------------------------------------------ */
 
 static int dvb_init(struct saa7134_dev *dev)
@@ -1169,6 +1177,19 @@
 		}
 		break;
 #endif
+	case SAA7134_BOARD_FLYDVBS_LR300:
+		dev->dvb.frontend = tda10086_attach(&flydvbs,
+						    &dev->i2c_adap);
+		if (dev->dvb.frontend) {
+		if (tda826x_attach(dev->dvb.frontend, 0x60, &dev->i2c_adap, 0) == NULL){
+			printk("%s: No tda826x found!\n", __FUNCTION__);
+		}
+		if (isl6421_attach(dev->dvb.frontend, &dev->i2c_adap, 0x08, 0, 0)) {
+			printk("%s: No ISL6421 found!\n", __FUNCTION__);
+		}
+		}
+		break;
+
 	default:
 		printk("%s: Huh? unknown DVB card?\n",dev->name);
 		break;
diff -ur v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134.h v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134.h
--- v4l-dvb-tt-s-1401/linux/drivers/media/video/saa7134/saa7134.h	2006-07-24 12:22:38.000000000 +0300
+++ v4l-dvb-tt-s-1401-liplianin/linux/drivers/media/video/saa7134/saa7134.h	2006-07-20 21:36:52.000000000 +0300
@@ -232,6 +232,7 @@
 #define SAA7134_BOARD_MD7134_BRIDGE_2     93
 #define SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS 94
 #define SAA7134_BOARD_FLYVIDEO3000_NTSC 95
+#define SAA7134_BOARD_FLYDVBS_LR300 96
 
 #define SAA7134_MAXBOARDS 8
 #define SAA7134_INPUT_MAX 8
Only in v4l-dvb-tt-s-1401-liplianin: mkdvbdev
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .config
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .config.old
Only in v4l-dvb-tt-s-1401-liplianin/v4l: Kconfig
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .kconfig.d
Only in v4l-dvb-tt-s-1401-liplianin/v4l: Kconfig.kern
Only in v4l-dvb-tt-s-1401-liplianin/v4l: Makefile.media
Only in v4l-dvb-tt-s-1401-liplianin/v4l: Modules.symvers
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .myconfig
Only in v4l-dvb-tt-s-1401-liplianin/v4l/scripts: kconfig
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .tmpconfig.h
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .tmp_versions
Only in v4l-dvb-tt-s-1401-liplianin/v4l: .version
_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux