linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Samuel Rakitničan" <samuel.rakitnican@gmail.com>
To: Emard <davoremard@gmail.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: [PATCH] Compro Videomate T750F Vista digital+analog support
Date: Sun, 16 May 2010 12:41:57 +0200	[thread overview]
Message-ID: <op.vcsnz7y5ndeod6@crni> (raw)
In-Reply-To: <op.vcsntos43xmt7q@crni>

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]

Sorry, here's the attachments.


On Sun, 16 May 2010 12:38:03 +0200, semiRocket <semirocket@gmail.com>  
wrote:

> On Mon, 10 May 2010 01:15:35 +0200, Emard <davoremard@gmail.com> wrote:
>
>> HI
>>
>> This is even more cleanup from spaces into tabs
>> and replacing KEY_BACKSPACE with KEY_BACK
>> which I think is more appropriate for this remote.
>>
>> compro t750f patch v17
>>
>> About the remote - I noticed 2-10% of the keypresses
>> are not recognized, seems like it either looses packets
>> or saa7134 gpio should be scanned faster/better/more_reliable?
>> I think this may be the issue with other 7134 based
>> remotes too
>>
>> Best Regards, Emard
>>
>
> Hi Davor,
>
>
> Unfortunately it doesn't work for me. It can't load firmware like  
> before, I've attached patch against recent hg tree I applied manually  
> (without IR code part) and dmesg output.
>
> In tvtime it shows black screen in PAL mode, if switch to SECAM, it's  
> still black screen but with some random flickering occurring represented  
> by horizontal red/green lines. No white/black dots noise present.
>
> Thanks,
> Samuel
-- 
Lorem ipsum

[-- Attachment #2: hg-20100516.diff --]
[-- Type: application/octet-stream, Size: 3141 bytes --]

diff -r 16ade09022d9 linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c	Fri May 14 00:53:17 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c	Sat May 15 23:04:20 2010 +0200
@@ -4920,12 +4920,14 @@
 	},
 	[SAA7134_BOARD_VIDEOMATE_T750] = {
 		/* John Newbigin <jn@it.swin.edu.au> */
+		/* Emard 2010-05-09 v17 <davoremard@xxxxxxxxx> */
 		.name           = "Compro VideoMate T750",
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_addr	= ADDR_UNSET,
-		.radio_addr	= ADDR_UNSET,
+		.tuner_addr	= 0x61,
+		.radio_addr	= ADDR_UNSET,
+		.mpeg           = SAA7134_MPEG_DVB,
 		.inputs = {{
 			.name   = name_tv,
 			.vmux   = 3,
@@ -6752,6 +6754,11 @@
 			msleep(10);
 			saa7134_set_gpio(dev, 18, 1);
 		break;
+		case SAA7134_BOARD_VIDEOMATE_T750:
+			saa7134_set_gpio(dev, 20, 0);
+			msleep(10);
+			saa7134_set_gpio(dev, 20, 1);
+		break;
 		}
 	return 0;
 	}
@@ -7171,7 +7178,14 @@
 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x0000C000, 0x0000C000);
 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0000C000, 0x0000C000);
 		break;
-	}
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		dev->has_remote = SAA7134_REMOTE_GPIO;
+		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
+		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
+		break;
+
+	}
+
 	return 0;
 }
 
@@ -7412,6 +7426,7 @@
 	case SAA7134_BOARD_AVERMEDIA_SUPER_007:
 	case SAA7134_BOARD_TWINHAN_DTV_DVB_3056:
 	case SAA7134_BOARD_CREATIX_CTX953:
+	case SAA7134_BOARD_VIDEOMATE_T750:
 	{
 		/* this is a hybrid board, initialize to analog mode
 		 * and configure firmware eeprom address
diff -r 16ade09022d9 linux/drivers/media/video/saa7134/saa7134-dvb.c
--- a/linux/drivers/media/video/saa7134/saa7134-dvb.c	Fri May 14 00:53:17 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c	Sat May 15 23:04:20 2010 +0200
@@ -55,6 +55,7 @@
 #include "tda8290.h"
 
 #include "zl10353.h"
+#include "qt1010.h"
 
 #include "zl10036.h"
 #include "zl10039.h"
@@ -886,6 +887,17 @@
 	.disable_i2c_gate_ctrl = 1,
 };
 
+static struct zl10353_config videomate_t750_zl10353_config = {
+	.demod_address  = 0x0f,
+	.no_tuner = 1,
+	.parallel_ts = 1,
+};
+
+static struct qt1010_config videomate_t750_qt1010_config = {
+	.i2c_address = 0x62
+};
+
+
 /* ==================================================================
  * tda10086 based DVB-S cards, helper functions
  */
@@ -1595,6 +1607,22 @@
 				   &dtv1000s_tda18271_config);
 		}
 		break;
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		printk("Compro VideoMate T750 DVB setup\n");
+		fe0->dvb.frontend = dvb_attach(zl10353_attach,
+						&videomate_t750_zl10353_config,
+						&dev->i2c_adap);
+		if (fe0->dvb.frontend != NULL) {
+			// if there is a gate function then the i2c bus breaks.....!
+			fe0->dvb.frontend->ops.i2c_gate_ctrl = 0;
+			if (dvb_attach(qt1010_attach,
+					fe0->dvb.frontend,
+					&dev->i2c_adap,
+					&videomate_t750_qt1010_config) == NULL)
+				wprintk("error attaching QT1010\n");
+		}
+		break;
+
 	default:
 		wprintk("Huh? unknown DVB card?\n");
 		break;

[-- Attachment #3: dmesg --]
[-- Type: application/octet-stream, Size: 4818 bytes --]

Linux video capture interface: v2.00
saa7130/34: v4l2 driver version 0.2.16 loaded
saa7133[0]: found at 0000:00:0b.0, rev: 209, irq: 19, latency: 32, mmio: 0xdfffb800
saa7133[0]: subsystem: 185b:c900, board: Compro VideoMate T750 [card=139,autodetected]
saa7133[0]: board init: gpio is 94bf00
saa7133[0]: Oops: IR config error [card=139]
IRQ 19/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
saa7133[0]: i2c eeprom 00: 5b 18 00 c9 54 20 1c 00 43 43 a9 1c 55 d2 b2 92
saa7133[0]: i2c eeprom 10: 00 ff 86 0f ff 20 ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 20: 01 40 01 02 02 01 03 01 08 ff 00 87 ff ff ff ff
saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 40: ff d7 00 c4 86 1e 05 ff 02 c2 ff 01 c6 ff 05 ff
saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff cb
saa7133[0]: i2c eeprom 60: 35 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
tuner 1-0061: chip found @ 0xc2 (saa7133[0])
xc2028 1-0061: creating new instance
xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
saa7134 0000:00:0b.0: firmware: requesting xc3028-v27.fw
xc2028 1-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Error on line 1200: -5
saa7133[0]: registered device video0 [v4l2]
saa7133[0]: registered device vbi0
saa7133[0]: registered device radio0
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
dvb_init() allocating 1 frontend
Compro VideoMate T750 DVB setup
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
Quantek QT1010 successfully identified.
DVB: registering new adapter (saa7133[0])
DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
saa7134 ALSA driver for DMA sound loaded
IRQ 19/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
saa7133[0]/alsa: saa7133[0] at 0xdfffb800 irq 19 registered as card -1
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Error on line 1200: -5
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Error on line 1200: -5
xc2028 1-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Loading firmware for type=BASE FM (401), id 0000000000000000.
xc2028 1-0061: i2c output error: rc = -5 (should be 64)
xc2028 1-0061: -5 returned from send
xc2028 1-0061: Error -22 while loading base firmware
xc2028 1-0061: Error on line 1200: -5

  reply	other threads:[~2010-05-16 10:42 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 16:06 [PATCH] Compro Videomate T750F Vista digital+analog support Emard
     [not found] ` <op.vceiu5q13xmt7q@crni>
     [not found]   ` <AANLkTinMYcgG6Ac73Vgdx8NMYocW8Net6_-dMC3yEflQ@mail.gmail.com>
     [not found]     ` <AANLkTikbpZ0LM5rK70abVuJS27j0lT7iZs12DrSKB9wI@mail.gmail.com>
     [not found]       ` <op.vcfoxwnq3xmt7q@crni>
     [not found]         ` <20100509173243.GA8227@z60m>
2010-05-09 18:35           ` Samuel Rakitničan
2010-05-09 18:48             ` Emard
2010-05-27 17:18               ` Mauro Carvalho Chehab
2010-05-28  6:48                 ` Davor Emard
2010-05-09 23:15             ` Emard
2010-05-16 10:38               ` semiRocket
2010-05-16 10:41                 ` Samuel Rakitničan [this message]
2010-05-23 17:40                 ` Samuel Rakitničan
2010-05-27 16:55                   ` Davor Emard
2010-05-27 17:15                   ` Davor Emard
2010-05-30 23:48                   ` Davor Emard
2010-05-31  0:27                     ` hermann pitton
2010-05-31  0:33                       ` hermann pitton
2010-05-31  1:07                         ` Davor Emard
2010-05-31  7:52                     ` Davor Emard
2010-06-02 11:28                       ` semiRocket
2010-06-02 17:22                         ` Davor Emard
2010-06-02 18:27                         ` Davor Emard
2010-06-02 22:50                           ` Samuel Rakitničan
2010-06-03 14:04                             ` Davor Emard
2010-06-03 17:17                               ` semiRocket
2010-06-03 17:15                           ` semiRocket
2010-05-31  1:21                   ` Davor Emard
2010-05-11 22:35 ` davor emard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vcsnz7y5ndeod6@crni \
    --to=samuel.rakitnican@gmail.com \
    --cc=davoremard@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).