cx88: advise/acquire reversion for HVR-1300/3000/4000 default tip
authordarron@kewl.org
Fri, 21 Nov 2008 16:45:18 +0000
changeset 9669 2d2ce1c3f05c
parent 9668 8b24b8211fc9
cx88: advise/acquire reversion for HVR-1300/3000/4000

From: Darron Broad <darron@kewl.org>

For the time being we put the DVB-S/S2 device into reset
as we are seeing tuning faults with DVB-T.

This may be reverted again later if we work out why.

Priority: normal

Signed-off-by: Darron Broad <darron@kewl.org>
linux/drivers/media/video/cx88/cx88-dvb.c
--- a/linux/drivers/media/video/cx88/cx88-dvb.c	Thu Nov 20 04:57:12 2008 +0000
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c	Fri Nov 21 16:45:18 2008 +0000
@@ -1137,6 +1137,8 @@
 		udelay(50);
 		cx_set(MO_GP0_IO, 0x00000080);
 		udelay(1000);
+		/* Put the cx23416 into reset */
+		cx_write(MO_SRST_IO, 0); 
 		/* enable the cx22702 pins */
 		cx_clear(MO_GP0_IO, 0x00000004);
 		udelay(1000);
@@ -1155,9 +1157,13 @@
 		case 1: /* DVB-S/S2 Enabled */
 			/* tri-state the cx22702 pins */
 			cx_set(MO_GP0_IO, 0x00000004);
+			/* Take the cx24116/cx24123 out of reset */
+			cx_write(MO_SRST_IO, 1);
 			core->dvbdev->ts_gen_cntrl = 0x02; /* Parallel IO */
 			break;
 		case 2: /* DVB-T Enabled */
+			/* Put the cx24116/cx24123 into reset */
+			cx_write(MO_SRST_IO, 0); 
 			/* enable the cx22702 pins */
 			cx_clear(MO_GP0_IO, 0x00000004);
 			core->dvbdev->ts_gen_cntrl = 0x0c; /* Serial IO */