All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Compro Videomate T750F Vista digital+analog support
@ 2010-05-08 16:06 Emard
       [not found] ` <op.vceiu5q13xmt7q@crni>
  2010-05-11 22:35 ` davor emard
  0 siblings, 2 replies; 25+ messages in thread
From: Emard @ 2010-05-08 16:06 UTC (permalink / raw)
  To: linux-media

HI

I've been fixing this driver a bit in order to unify dvb-t and
loading of xc2028 firmware for analog tv and fm radio without 
failure when cold booted directly to linux 

(some say that xc2028 would load if card is "prepared" by previously 
boothing window$ but franky I was too bothered to go this far)

So this is my v07 of the patch that even registers IR remote device
(I copied the code for compro S350)
but it recognizes remote IR keypresses but all keys are the same - 
generate the same GPIO value thus having same keycode 0x3f so it's 
not too useable right now if you want a remote with more than one 
button.

Can someone knowlegeable of saa7134 remotes review the code and suggest 
some fix?

--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig	2010-05-08 16:13:28.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c	2010-05-08 16:46:19.000000000 +0200
@@ -4885,8 +4885,9 @@ struct saa7134_board saa7134_boards[] =
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_addr	= ADDR_UNSET,
+		.tuner_addr	= 0x61,
 		.radio_addr	= ADDR_UNSET,
+		.mpeg           = SAA7134_MPEG_DVB,
 		.inputs = {{
 			.name   = name_tv,
 			.vmux   = 3,
@@ -6550,6 +6551,11 @@ static int saa7134_xc2028_callback(struc
 			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;
 	}
@@ -6956,6 +6962,11 @@ int saa7134_board_init1(struct saa7134_d
 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
 		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;
 }
@@ -7192,6 +7203,7 @@ int saa7134_board_init2(struct saa7134_d
 	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
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig	2010-05-08 16:20:12.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c	2010-05-08 16:21:10.000000000 +0200
@@ -55,6 +55,7 @@
 #include "tda8290.h"
 
 #include "zl10353.h"
+#include "qt1010.h"
 
 #include "zl10036.h"
 #include "zl10039.h"
@@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c
 	.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
  */
@@ -1556,6 +1568,26 @@ static int dvb_init(struct saa7134_dev *
 					__func__);
 
 		break;
+        /*FIXME: What frontend does Videomate T750 use? */
+        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) {
+                        printk("Attaching pll\n");
+                        // 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;
 	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
 		fe0->dvb.frontend = dvb_attach(tda10048_attach,
 					       &zolid_tda10048_config,
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c.orig	2010-05-08 16:52:20.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c	2010-05-08 17:28:48.000000000 +0200
@@ -671,6 +671,11 @@ int saa7134_input_init1(struct saa7134_d
 		mask_keycode = 0x003f00;
 		mask_keydown = 0x040000;
 		break;
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		ir_codes     = &ir_codes_videomate_s350_table;
+		mask_keycode = 0x003f00;
+		mask_keydown = 0x040000;
+		break;
 	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
 		ir_codes     = &ir_codes_winfast_table;
 		mask_keycode = 0x5f00;

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
       [not found]         ` <20100509173243.GA8227@z60m>
@ 2010-05-09 18:35           ` Samuel Rakitničan
  2010-05-09 18:48             ` Emard
  2010-05-09 23:15             ` Emard
  0 siblings, 2 replies; 25+ messages in thread
From: Samuel Rakitničan @ 2010-05-09 18:35 UTC (permalink / raw)
  To: Emard; +Cc: linux-media

On Sun, 09 May 2010 19:32:43 +0200, Emard <davoremard@gmail.com> wrote:

>> Hmm, power on is pure hardware thing on this card I think, it
>> doesn't need a driver.
>
> But it seems it needs a driver. Although pin is connected to MB power  
> switch,
> the card has to be in certain state (GPIOs programmed, pci standby power
> enabled e.g.) in order for this to work.
>
> Anyway, I have fixed the remote control issue and supported the
> whole remote keycode set.
>
> Here's the patch v15
>

(cc-ing linux-media)

Great! So everything works now?

Still cannot test this code as I've pulled new version of tree (from hg)  
which doesn't compile on my Slackware 13. In fact new tree compile to only  
a few kernel versions right now according to Hans Verkuil daily builds.



So you are aware that your diff must be in against current development  
tree in other to apply? According to recent changes keytables for remotes  
are presented as separate modules under linux/drivers/media/IR/keymaps:

	http://linuxtv.org/hg/v4l-dvb/file/4a8d6d981f07/linux/drivers/media/IR/keymaps

One other thing is that t750 and t750f are shipped with two different  
remotes, so it may probably be needed to add code for auto detection  
between the two or add a modprobe parameter, or even add a separate card  
entry.

Older mail for reference:
	http://www.mail-archive.com/linux-media@vger.kernel.org/msg07478.html

In fact remote shipped with t750f is common between all f series I  
believe, so I think that it could be named rc-videomate-mce.c or  
rc-videomate-f-series.c.




> ---  
> linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig	2010-05-08  
> 16:13:28.000000000 +0200
> +++  
> linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c	2010-05-09  
> 17:35:29.000000000 +0200
> @@ -4881,12 +4881,14 @@ struct saa7134_board saa7134_boards[] =
>  	},
>  	[SAA7134_BOARD_VIDEOMATE_T750] = {
>  		/* John Newbigin <jn@it.swin.edu.au> */
> +		/* Emard 2010-05-09 <davoremard@gmail.com> */
>  		.name           = "Compro VideoMate T750",
>  		.audio_clock    = 0x00187de7,
>  		.tuner_type     = TUNER_XC2028,
>  		.radio_type     = UNSET,
> -		.tuner_addr	= ADDR_UNSET,
> +		.tuner_addr	= 0x61,
>  		.radio_addr	= ADDR_UNSET,
> +		.mpeg           = SAA7134_MPEG_DVB,
>  		.inputs = {{
>  			.name   = name_tv,
>  			.vmux   = 3,
> @@ -6550,6 +6552,11 @@ static int saa7134_xc2028_callback(struc
>  			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;
>  	}
> @@ -6956,6 +6963,11 @@ int saa7134_board_init1(struct saa7134_d
>  		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
>  		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
>  		break;
> +	case SAA7134_BOARD_VIDEOMATE_T750:
> +		dev->has_remote = SAA7134_REMOTE_GPIO;
> +		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00848000, 0x00808000);
> +		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00848000, 0x00808000);
> +		break;
>  	}
>  	return 0;
>  }
> @@ -7132,6 +7144,7 @@ int saa7134_board_init2(struct saa7134_d
>  		}
>  		/* break intentionally omitted */
>  	case SAA7134_BOARD_VIDEOMATE_DVBT_300:
> +	case SAA7134_BOARD_VIDEOMATE_T750:
>  	case SAA7134_BOARD_ASUS_EUROPA2_HYBRID:
>  	case SAA7134_BOARD_ASUS_EUROPA_HYBRID:
>  	{
> ---  
> linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig	2010-05-08  
> 16:20:12.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c	2010-05-09  
> 15:33:30.000000000 +0200
> @@ -55,6 +55,7 @@
>  #include "tda8290.h"
> #include "zl10353.h"
> +#include "qt1010.h"
> #include "zl10036.h"
>  #include "zl10039.h"
> @@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c
>  	.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
>   */
> @@ -1556,6 +1568,24 @@ static int dvb_init(struct saa7134_dev *
>  					__func__);
> 		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;
>  	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
>  		fe0->dvb.frontend = dvb_attach(tda10048_attach,
>  					       &zolid_tda10048_config,
> ---  
> linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c.orig	2010-05-08  
> 16:52:20.000000000 +0200
> +++  
> linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c	2010-05-09  
> 17:32:25.000000000 +0200
> @@ -671,6 +671,11 @@ int saa7134_input_init1(struct saa7134_d
>  		mask_keycode = 0x003f00;
>  		mask_keydown = 0x040000;
>  		break;
> +	case SAA7134_BOARD_VIDEOMATE_T750:
> +		ir_codes     = &ir_codes_videomate_t750_table;
> +		mask_keycode = 0x003f00;
> +		mask_keyup   = 0x040000;
> +		break;
>  	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
>  		ir_codes     = &ir_codes_winfast_table;
>  		mask_keycode = 0x5f00;
> --- linux-2.6.33.3/drivers/media/IR/ir-keymaps.c.orig	2010-05-08  
> 17:03:35.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/IR/ir-keymaps.c	2010-05-09  
> 18:23:54.000000000 +0200
> @@ -3197,6 +3197,96 @@ struct ir_scancode_table ir_codes_videom
>  };
>  EXPORT_SYMBOL_GPL(ir_codes_videomate_s350_table);
> +/*
> +Compro videomate vista T750F remote
> +-----------------------------------
> +Emard 2010-05-09 <davoremard@gmail.com>
> +                                            POWER
> +VIDEO           RADIO       AUDIO          CAMERA
> +PVR             EPG         TV      DVD  SUBTITLE
> +
> +                      UP
> +                 LEFT OK RIGHT
> +                     DOWN
> +
> +BACKSPACE            MENU                    INFO
> +
> +VOLUMEUP                                CHANNELUP
> +                     MUTE
> +VOLUMEDOWN                            CHANNELDOWN
> +
> +RECORD                                       STOP
> +REWIND               PLAY             FASTFORWARD
> +PREVIOUSSONG       PLAYPAUSE             NEXTSONG
> +
> +NUMERIC_1          NUMERIC_2         NUMERIC_3
> +NUMERIC_4          NUMERIC_5         NUMERIC_6
> +NUMERIC_7          NUMERIC_8         NUMERIC_9
> +NUMERIC_STAR       NUMEIRC_0         NUMERIC_POUND
> +
> +CLEAR                ZOOM                 ENTER
> +
> +RED      GREEN      YELLOW     BLUE        TEXT
> +*/
> +static struct ir_scancode ir_codes_videomate_t750[] = {
> +	{ 0x01, KEY_POWER},
> +	{ 0x31, KEY_VIDEO},
> +	{ 0x33, KEY_RADIO},
> +	{ 0x2f, KEY_AUDIO},
> +	{ 0x30, KEY_CAMERA}, /* pictures */
> +	{ 0x2d, KEY_PVR},    /* Recordings */
> +	{   23, KEY_EPG},
> +	{   44, KEY_TV},
> +	{   43, KEY_DVD},
> +	{ 0x32, KEY_SUBTITLE},
> +	{   17, KEY_UP},
> +	{   19, KEY_LEFT},
> +	{   21, KEY_OK},
> +	{   20, KEY_RIGHT},
> +	{   18, KEY_DOWN},
> +	{   22, KEY_BACKSPACE},
> +	{ 0x02, KEY_MENU},
> +	{ 0x04, KEY_INFO},
> +	{ 0x05, KEY_VOLUMEUP},
> +	{ 0x06, KEY_VOLUMEDOWN},
> +	{ 0x03, KEY_MUTE},
> +	{ 0x07, KEY_CHANNELUP},
> +	{ 0x08, KEY_CHANNELDOWN},
> +	{ 0x0c, KEY_RECORD},
> +	{ 0x0e, KEY_STOP},
> +	{ 0x0a, KEY_REWIND},
> +	{ 0x0b, KEY_PLAY},
> +	{ 0x09, KEY_FASTFORWARD},
> +	{ 0x10, KEY_PREVIOUSSONG},
> +	{ 0x0d, KEY_PLAYPAUSE},
> +	{ 0x0f, KEY_NEXTSONG},
> +	{   30, KEY_NUMERIC_1},
> +	{ 0x1f, KEY_NUMERIC_2},
> +	{ 0x20, KEY_NUMERIC_3},
> +	{ 0x21, KEY_NUMERIC_4},
> +	{ 0x22, KEY_NUMERIC_5},
> +	{ 0x23, KEY_NUMERIC_6},
> +	{ 0x24, KEY_NUMERIC_7},
> +	{ 0x25, KEY_NUMERIC_8},
> +	{ 0x26, KEY_NUMERIC_9},
> +	{ 0x2a, KEY_NUMERIC_STAR},
> +	{   29, KEY_NUMERIC_0},
> +	{   41, KEY_NUMERIC_POUND},
> +	{   39, KEY_CLEAR},
> +	{ 0x34, KEY_ZOOM},
> +	{ 0x28, KEY_ENTER},
> +	{   25, KEY_RED},
> +	{   26, KEY_GREEN},
> +	{   27, KEY_YELLOW},
> +	{   28, KEY_BLUE},
> +	{   24, KEY_TEXT},
> +};
> +struct ir_scancode_table ir_codes_videomate_t750_table = {
> +	.scan = ir_codes_videomate_t750,
> +	.size = ARRAY_SIZE(ir_codes_videomate_t750),
> +};
> +EXPORT_SYMBOL_GPL(ir_codes_videomate_t750_table);
> +
>  /* GADMEI UTV330+ RM008Z remote
>     Shine Liu <shinel@foxmail.com>
>   */
> --- linux-2.6.33.3/include/media/ir-common.h.orig	2010-04-26  
> 16:48:30.000000000 +0200
> +++ linux-2.6.33.3/include/media/ir-common.h	2010-05-09  
> 17:30:24.000000000 +0200
> @@ -160,6 +160,7 @@ extern struct ir_scancode_table ir_codes
>  extern struct ir_scancode_table ir_codes_evga_indtube_table;
>  extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table;
>  extern struct ir_scancode_table ir_codes_videomate_s350_table;
> +extern struct ir_scancode_table ir_codes_videomate_t750_table;
>  extern struct ir_scancode_table ir_codes_gadmei_rm008z_table;
>  extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table;
>  #endif


-- 
Lorem ipsum

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-09 18:35           ` Samuel Rakitničan
@ 2010-05-09 18:48             ` Emard
  2010-05-27 17:18               ` Mauro Carvalho Chehab
  2010-05-09 23:15             ` Emard
  1 sibling, 1 reply; 25+ messages in thread
From: Emard @ 2010-05-09 18:48 UTC (permalink / raw)
  To: linux-media; +Cc: semirocket

Yes, almost everything:
DVB-T, Analog TV, FM Radio, IR Remote control.

I haven't tested too much analog TV (it seems to work,
receivers some snowy channels but I don't have good antenna).
Also didn't test video inputs at all.

Not supported is onboard RTC timer that can wake up the 
computer.

Here's a cleaned up patch
-------------------------

--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig	2010-05-08 16:13:28.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c	2010-05-09 20:19:03.000000000 +0200
@@ -4881,12 +4881,14 @@ struct saa7134_board saa7134_boards[] =
 	},
 	[SAA7134_BOARD_VIDEOMATE_T750] = {
 		/* John Newbigin <jn@it.swin.edu.au> */
+		/* Emard 2010-05-09 v16 <davoremard@gmail.com> */
 		.name           = "Compro VideoMate T750",
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_addr	= ADDR_UNSET,
+		.tuner_addr	= 0x61,
 		.radio_addr	= ADDR_UNSET,
+		.mpeg           = SAA7134_MPEG_DVB,
 		.inputs = {{
 			.name   = name_tv,
 			.vmux   = 3,
@@ -6550,6 +6552,11 @@ static int saa7134_xc2028_callback(struc
 			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;
 	}
@@ -6955,6 +6962,11 @@ int saa7134_board_init1(struct saa7134_d
 		dev->has_remote = SAA7134_REMOTE_GPIO;
 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
+		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;
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig	2010-05-08 16:20:12.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c	2010-05-09 15:33:30.000000000 +0200
@@ -55,6 +55,7 @@
 #include "tda8290.h"
 
 #include "zl10353.h"
+#include "qt1010.h"
 
 #include "zl10036.h"
 #include "zl10039.h"
@@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c
 	.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
  */
@@ -1556,6 +1568,24 @@ static int dvb_init(struct saa7134_dev *
 					__func__);
 
 		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;
 	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
 		fe0->dvb.frontend = dvb_attach(tda10048_attach,
 					       &zolid_tda10048_config,
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c.orig	2010-05-08 16:52:20.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c	2010-05-09 17:32:25.000000000 +0200
@@ -671,6 +671,11 @@ int saa7134_input_init1(struct saa7134_d
 		mask_keycode = 0x003f00;
 		mask_keydown = 0x040000;
 		break;
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		ir_codes     = &ir_codes_videomate_t750_table;
+		mask_keycode = 0x003f00;
+		mask_keyup   = 0x040000;
+		break;
 	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
 		ir_codes     = &ir_codes_winfast_table;
 		mask_keycode = 0x5f00;
--- linux-2.6.33.3/drivers/media/IR/ir-keymaps.c.orig	2010-05-08 17:03:35.000000000 +0200
+++ linux-2.6.33.3/drivers/media/IR/ir-keymaps.c	2010-05-09 19:35:27.000000000 +0200
@@ -3197,6 +3197,96 @@ struct ir_scancode_table ir_codes_videom
 };
 EXPORT_SYMBOL_GPL(ir_codes_videomate_s350_table);
 
+/*
+Compro videomate vista T750F remote
+-----------------------------------
+Emard 2010-05-09 <davoremard@gmail.com>
+                                            POWER
+VIDEO           RADIO       AUDIO          CAMERA 
+PVR             EPG         TV      DVD  SUBTITLE
+
+                      UP
+                 LEFT OK RIGHT
+                     DOWN
+
+BACKSPACE            MENU                    INFO
+
+VOLUMEUP                                CHANNELUP
+                     MUTE
+VOLUMEDOWN                            CHANNELDOWN
+
+RECORD                                       STOP
+REWIND               PLAY             FASTFORWARD
+PREVIOUSSONG       PLAYPAUSE             NEXTSONG
+
+NUMERIC_1          NUMERIC_2         NUMERIC_3
+NUMERIC_4          NUMERIC_5         NUMERIC_6
+NUMERIC_7          NUMERIC_8         NUMERIC_9
+NUMERIC_STAR       NUMERIC_0         NUMERIC_POUND
+
+CLEAR                ZOOM                 ENTER
+
+RED      GREEN      YELLOW     BLUE        TEXT
+*/
+static struct ir_scancode ir_codes_videomate_t750[] = {
+	{ 0x01, KEY_POWER},
+	{ 0x31, KEY_VIDEO},
+	{ 0x33, KEY_RADIO},
+	{ 0x2f, KEY_AUDIO},
+	{ 0x30, KEY_CAMERA}, /* pictures */
+	{ 0x2d, KEY_PVR},    /* Recordings */
+	{   23, KEY_EPG},
+	{   44, KEY_TV},
+	{   43, KEY_DVD},
+	{ 0x32, KEY_SUBTITLE},
+	{   17, KEY_UP},
+	{   19, KEY_LEFT},
+	{   21, KEY_OK},
+	{   20, KEY_RIGHT},
+	{   18, KEY_DOWN},
+	{   22, KEY_BACKSPACE},
+	{ 0x02, KEY_MENU},
+	{ 0x04, KEY_INFO},
+	{ 0x05, KEY_VOLUMEUP},
+	{ 0x06, KEY_VOLUMEDOWN},
+	{ 0x03, KEY_MUTE},
+	{ 0x07, KEY_CHANNELUP},
+	{ 0x08, KEY_CHANNELDOWN},
+	{ 0x0c, KEY_RECORD},
+	{ 0x0e, KEY_STOP},
+	{ 0x0a, KEY_REWIND},
+	{ 0x0b, KEY_PLAY},
+	{ 0x09, KEY_FASTFORWARD},
+	{ 0x10, KEY_PREVIOUSSONG},
+	{ 0x0d, KEY_PLAYPAUSE},
+	{ 0x0f, KEY_NEXTSONG},
+	{   30, KEY_NUMERIC_1},
+	{ 0x1f, KEY_NUMERIC_2},
+	{ 0x20, KEY_NUMERIC_3},
+	{ 0x21, KEY_NUMERIC_4},
+	{ 0x22, KEY_NUMERIC_5},
+	{ 0x23, KEY_NUMERIC_6},
+	{ 0x24, KEY_NUMERIC_7},
+	{ 0x25, KEY_NUMERIC_8},
+	{ 0x26, KEY_NUMERIC_9},
+	{ 0x2a, KEY_NUMERIC_STAR},
+	{   29, KEY_NUMERIC_0},
+	{   41, KEY_NUMERIC_POUND},
+	{   39, KEY_CLEAR},
+	{ 0x34, KEY_ZOOM},
+	{ 0x28, KEY_ENTER},
+	{   25, KEY_RED},
+	{   26, KEY_GREEN},
+	{   27, KEY_YELLOW},
+	{   28, KEY_BLUE},
+	{   24, KEY_TEXT},
+};
+struct ir_scancode_table ir_codes_videomate_t750_table = {
+	.scan = ir_codes_videomate_t750,
+	.size = ARRAY_SIZE(ir_codes_videomate_t750),
+};
+EXPORT_SYMBOL_GPL(ir_codes_videomate_t750_table);
+
 /* GADMEI UTV330+ RM008Z remote
    Shine Liu <shinel@foxmail.com>
  */
--- linux-2.6.33.3/include/media/ir-common.h.orig	2010-04-26 16:48:30.000000000 +0200
+++ linux-2.6.33.3/include/media/ir-common.h	2010-05-09 17:30:24.000000000 +0200
@@ -160,6 +160,7 @@ extern struct ir_scancode_table ir_codes
 extern struct ir_scancode_table ir_codes_evga_indtube_table;
 extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table;
 extern struct ir_scancode_table ir_codes_videomate_s350_table;
+extern struct ir_scancode_table ir_codes_videomate_t750_table;
 extern struct ir_scancode_table ir_codes_gadmei_rm008z_table;
 extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table;
 #endif



^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-09 18:35           ` Samuel Rakitničan
  2010-05-09 18:48             ` Emard
@ 2010-05-09 23:15             ` Emard
  2010-05-16 10:38               ` semiRocket
  1 sibling, 1 reply; 25+ messages in thread
From: Emard @ 2010-05-09 23:15 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: Emard, linux-media

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


--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig	2010-05-08 16:13:28.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c	2010-05-10 00:48:08.000000000 +0200
@@ -4881,12 +4881,14 @@ struct saa7134_board saa7134_boards[] =
 	},
 	[SAA7134_BOARD_VIDEOMATE_T750] = {
 		/* John Newbigin <jn@it.swin.edu.au> */
+		/* Emard 2010-05-10 v17 <davoremard@gmail.com> */
 		.name           = "Compro VideoMate T750",
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_addr	= ADDR_UNSET,
+		.tuner_addr	= 0x61,
 		.radio_addr	= ADDR_UNSET,
+		.mpeg           = SAA7134_MPEG_DVB,
 		.inputs = {{
 			.name   = name_tv,
 			.vmux   = 3,
@@ -6550,6 +6552,11 @@ static int saa7134_xc2028_callback(struc
 			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;
 	}
@@ -6955,6 +6962,11 @@ int saa7134_board_init1(struct saa7134_d
 		dev->has_remote = SAA7134_REMOTE_GPIO;
 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
+		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;
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig	2010-05-08 16:20:12.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c	2010-05-10 00:47:23.000000000 +0200
@@ -55,6 +55,7 @@
 #include "tda8290.h"
 
 #include "zl10353.h"
+#include "qt1010.h"
 
 #include "zl10036.h"
 #include "zl10039.h"
@@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c
 	.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
  */
@@ -1556,6 +1568,21 @@ static int dvb_init(struct saa7134_dev *
 					__func__);
 
 		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;
 	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
 		fe0->dvb.frontend = dvb_attach(tda10048_attach,
 					       &zolid_tda10048_config,
--- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c.orig	2010-05-08 16:52:20.000000000 +0200
+++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c	2010-05-09 17:32:25.000000000 +0200
@@ -671,6 +671,11 @@ int saa7134_input_init1(struct saa7134_d
 		mask_keycode = 0x003f00;
 		mask_keydown = 0x040000;
 		break;
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		ir_codes     = &ir_codes_videomate_t750_table;
+		mask_keycode = 0x003f00;
+		mask_keyup   = 0x040000;
+		break;
 	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
 		ir_codes     = &ir_codes_winfast_table;
 		mask_keycode = 0x5f00;
--- linux-2.6.33.3/drivers/media/IR/ir-keymaps.c.orig	2010-05-08 17:03:35.000000000 +0200
+++ linux-2.6.33.3/drivers/media/IR/ir-keymaps.c	2010-05-10 00:39:05.000000000 +0200
@@ -3197,6 +3197,96 @@ struct ir_scancode_table ir_codes_videom
 };
 EXPORT_SYMBOL_GPL(ir_codes_videomate_s350_table);
 
+/*
+Compro videomate vista T750F remote
+-----------------------------------
+Emard 2010-05-09 <davoremard@gmail.com>
+                                            POWER
+VIDEO           RADIO       AUDIO          CAMERA 
+PVR             EPG         TV      DVD  SUBTITLE
+
+                      UP
+                 LEFT OK RIGHT
+                     DOWN
+
+BACK                 MENU                    INFO
+
+VOLUMEUP                                CHANNELUP
+                     MUTE
+VOLUMEDOWN                            CHANNELDOWN
+
+RECORD                                       STOP
+REWIND               PLAY             FASTFORWARD
+PREVIOUSSONG       PLAYPAUSE             NEXTSONG
+
+NUMERIC_1          NUMERIC_2         NUMERIC_3
+NUMERIC_4          NUMERIC_5         NUMERIC_6
+NUMERIC_7          NUMERIC_8         NUMERIC_9
+NUMERIC_STAR       NUMERIC_0         NUMERIC_POUND
+
+CLEAR                ZOOM                 ENTER
+
+RED      GREEN      YELLOW     BLUE        TEXT
+*/
+static struct ir_scancode ir_codes_videomate_t750[] = {
+	{ 0x01, KEY_POWER},
+	{ 0x31, KEY_VIDEO},
+	{ 0x33, KEY_RADIO},
+	{ 0x2f, KEY_AUDIO},
+	{ 0x30, KEY_CAMERA}, /* pictures */
+	{ 0x2d, KEY_PVR},    /* Recordings */
+	{   23, KEY_EPG},
+	{   44, KEY_TV},
+	{   43, KEY_DVD},
+	{ 0x32, KEY_SUBTITLE},
+	{   17, KEY_UP},
+	{   19, KEY_LEFT},
+	{   21, KEY_OK},
+	{   20, KEY_RIGHT},
+	{   18, KEY_DOWN},
+	{   22, KEY_BACK},
+	{ 0x02, KEY_MENU},
+	{ 0x04, KEY_INFO},
+	{ 0x05, KEY_VOLUMEUP},
+	{ 0x06, KEY_VOLUMEDOWN},
+	{ 0x03, KEY_MUTE},
+	{ 0x07, KEY_CHANNELUP},
+	{ 0x08, KEY_CHANNELDOWN},
+	{ 0x0c, KEY_RECORD},
+	{ 0x0e, KEY_STOP},
+	{ 0x0a, KEY_REWIND},
+	{ 0x0b, KEY_PLAY},
+	{ 0x09, KEY_FASTFORWARD},
+	{ 0x10, KEY_PREVIOUSSONG},
+	{ 0x0d, KEY_PLAYPAUSE},
+	{ 0x0f, KEY_NEXTSONG},
+	{   30, KEY_NUMERIC_1},
+	{ 0x1f, KEY_NUMERIC_2},
+	{ 0x20, KEY_NUMERIC_3},
+	{ 0x21, KEY_NUMERIC_4},
+	{ 0x22, KEY_NUMERIC_5},
+	{ 0x23, KEY_NUMERIC_6},
+	{ 0x24, KEY_NUMERIC_7},
+	{ 0x25, KEY_NUMERIC_8},
+	{ 0x26, KEY_NUMERIC_9},
+	{ 0x2a, KEY_NUMERIC_STAR},
+	{   29, KEY_NUMERIC_0},
+	{   41, KEY_NUMERIC_POUND},
+	{   39, KEY_CLEAR},
+	{ 0x34, KEY_ZOOM},
+	{ 0x28, KEY_ENTER},
+	{   25, KEY_RED},
+	{   26, KEY_GREEN},
+	{   27, KEY_YELLOW},
+	{   28, KEY_BLUE},
+	{   24, KEY_TEXT},
+};
+struct ir_scancode_table ir_codes_videomate_t750_table = {
+	.scan = ir_codes_videomate_t750,
+	.size = ARRAY_SIZE(ir_codes_videomate_t750),
+};
+EXPORT_SYMBOL_GPL(ir_codes_videomate_t750_table);
+
 /* GADMEI UTV330+ RM008Z remote
    Shine Liu <shinel@foxmail.com>
  */
--- linux-2.6.33.3/include/media/ir-common.h.orig	2010-04-26 16:48:30.000000000 +0200
+++ linux-2.6.33.3/include/media/ir-common.h	2010-05-09 17:30:24.000000000 +0200
@@ -160,6 +160,7 @@ extern struct ir_scancode_table ir_codes
 extern struct ir_scancode_table ir_codes_evga_indtube_table;
 extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table;
 extern struct ir_scancode_table ir_codes_videomate_s350_table;
+extern struct ir_scancode_table ir_codes_videomate_t750_table;
 extern struct ir_scancode_table ir_codes_gadmei_rm008z_table;
 extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table;
 #endif

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-08 16:06 [PATCH] Compro Videomate T750F Vista digital+analog support Emard
       [not found] ` <op.vceiu5q13xmt7q@crni>
@ 2010-05-11 22:35 ` davor emard
  1 sibling, 0 replies; 25+ messages in thread
From: davor emard @ 2010-05-11 22:35 UTC (permalink / raw)
  To: linux-media

HI

I tried to fix unreliable IR remote keys (cca 10% lost key presses),
the similar problem has been reported on the same card with
windows driver too and I had other saa7134 analog tv card also
loosing IR keys

I have tried modifying saa7134-input.c to use gpio polling with interval
of 15ms and 5ms but it did not help - always some IR key presses are
lost.

Is it any workarond possible for lost keys, that's pretty annoying?

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-09 23:15             ` Emard
@ 2010-05-16 10:38               ` semiRocket
  2010-05-16 10:41                 ` Samuel Rakitničan
  2010-05-23 17:40                 ` Samuel Rakitničan
  0 siblings, 2 replies; 25+ messages in thread
From: semiRocket @ 2010-05-16 10:38 UTC (permalink / raw)
  To: Emard; +Cc: linux-media

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

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-16 10:38               ` semiRocket
@ 2010-05-16 10:41                 ` Samuel Rakitničan
  2010-05-23 17:40                 ` Samuel Rakitničan
  1 sibling, 0 replies; 25+ messages in thread
From: Samuel Rakitničan @ 2010-05-16 10:41 UTC (permalink / raw)
  To: Emard; +Cc: linux-media

[-- 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

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-16 10:38               ` semiRocket
  2010-05-16 10:41                 ` Samuel Rakitničan
@ 2010-05-23 17:40                 ` Samuel Rakitničan
  2010-05-27 16:55                   ` Davor Emard
                                     ` (3 more replies)
  1 sibling, 4 replies; 25+ messages in thread
From: Samuel Rakitničan @ 2010-05-23 17:40 UTC (permalink / raw)
  To: Emard, semiRocket; +Cc: linux-media

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

The good news is that it managed to load firmware after beign prepared by  
windows driver previously, but somehow unstable e.g. sometimes I can  
restart tvtime 3 times before stops working, sometimes it load firmware on  
modprobe but fails when I run tvtime.

Other than that analog seems to work fine when firmware successfully load.  
I didn't managed to get the sound though, previosly with the command like

	sox -c 2 -s -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -r 32000 /dev/dsp &
	
now doesn't work, I'm not sure yet if it's the driver problem.

I didn't test dvb at all (don't have good signal).


Best regards,
Samuel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-23 17:40                 ` Samuel Rakitničan
@ 2010-05-27 16:55                   ` Davor Emard
  2010-05-27 17:15                   ` Davor Emard
                                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-27 16:55 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

HI

This code is responsible to prepare the card to load the firmware
I have no true clue what it actually does, possible it is a
reset sequence for onboard tuner chips or just a matter of 
enabling some power to them. 

I have googled for compro 750 related discussions and seen various posts 
so I narrowed to this. Feel free to either comment out the code or
try slightly different values to see if they leat to more reliable
loading of the firmware at your hardware

+               case SAA7134_BOARD_VIDEOMATE_T750:
+                       saa7134_set_gpio(dev, 20, 0);
+                       msleep(10);
+                       saa7134_set_gpio(dev, 20, 1);
+               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;

some similar cards use instead of 0x00008000 use 0x0000C000
also it's possible to try other values if they can help on
your hardware (I tried a lots of them, some work, some don't 
but with not obvious improvement for my card so I left the 
minimum that works)

Emard

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  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  1:21                   ` Davor Emard
  3 siblings, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-27 17:15 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

Another idea:

compare syslog line 
May 27 14:33:42 emard kernel: saa7133[0]: board init: gpio is 84bf00

when trying to load firmware without preparing with windows and
after windows - see if there's a difference between bits of the hex
value (0x84bf00 in my case)

that's a probable clue to modify this 0x0008000 value to either
include the missing bits or remove the excess ones

Emard

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-09 18:48             ` Emard
@ 2010-05-27 17:18               ` Mauro Carvalho Chehab
  2010-05-28  6:48                 ` Davor Emard
  0 siblings, 1 reply; 25+ messages in thread
From: Mauro Carvalho Chehab @ 2010-05-27 17:18 UTC (permalink / raw)
  To: Emard; +Cc: linux-media, semirocket

Em Sun, 9 May 2010 20:48:22 +0200
Emard <davoremard@gmail.com> escreveu:

> Yes, almost everything:
> DVB-T, Analog TV, FM Radio, IR Remote control.
> 
> I haven't tested too much analog TV (it seems to work,
> receivers some snowy channels but I don't have good antenna).
> Also didn't test video inputs at all.
> 
> Not supported is onboard RTC timer that can wake up the 
> computer.
> 
> Here's a cleaned up patch
> -------------------------
> 
> --- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c.orig	2010-05-08 16:13:28.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-cards.c	2010-05-09 20:19:03.000000000 +0200
> @@ -4881,12 +4881,14 @@ struct saa7134_board saa7134_boards[] =
>  	},
>  	[SAA7134_BOARD_VIDEOMATE_T750] = {
>  		/* John Newbigin <jn@it.swin.edu.au> */
> +		/* Emard 2010-05-09 v16 <davoremard@gmail.com> */
>  		.name           = "Compro VideoMate T750",
>  		.audio_clock    = 0x00187de7,
>  		.tuner_type     = TUNER_XC2028,
>  		.radio_type     = UNSET,
> -		.tuner_addr	= ADDR_UNSET,
> +		.tuner_addr	= 0x61,
>  		.radio_addr	= ADDR_UNSET,
> +		.mpeg           = SAA7134_MPEG_DVB,
>  		.inputs = {{
>  			.name   = name_tv,
>  			.vmux   = 3,
> @@ -6550,6 +6552,11 @@ static int saa7134_xc2028_callback(struc
>  			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;
>  	}
> @@ -6955,6 +6962,11 @@ int saa7134_board_init1(struct saa7134_d
>  		dev->has_remote = SAA7134_REMOTE_GPIO;
>  		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00008000, 0x00008000);
>  		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
> +		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;
> --- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c.orig	2010-05-08 16:20:12.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-dvb.c	2010-05-09 15:33:30.000000000 +0200
> @@ -55,6 +55,7 @@
>  #include "tda8290.h"
>  
>  #include "zl10353.h"
> +#include "qt1010.h"
>  
>  #include "zl10036.h"
>  #include "zl10039.h"
> @@ -886,6 +887,17 @@ static struct zl10353_config behold_x7_c
>  	.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
>   */
> @@ -1556,6 +1568,24 @@ static int dvb_init(struct saa7134_dev *
>  					__func__);
>  
>  		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;
>  	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
>  		fe0->dvb.frontend = dvb_attach(tda10048_attach,
>  					       &zolid_tda10048_config,
> --- linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c.orig	2010-05-08 16:52:20.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/video/saa7134/saa7134-input.c	2010-05-09 17:32:25.000000000 +0200
> @@ -671,6 +671,11 @@ int saa7134_input_init1(struct saa7134_d
>  		mask_keycode = 0x003f00;
>  		mask_keydown = 0x040000;
>  		break;
> +	case SAA7134_BOARD_VIDEOMATE_T750:
> +		ir_codes     = &ir_codes_videomate_t750_table;
> +		mask_keycode = 0x003f00;
> +		mask_keyup   = 0x040000;
> +		break;
>  	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
>  		ir_codes     = &ir_codes_winfast_table;
>  		mask_keycode = 0x5f00;
> --- linux-2.6.33.3/drivers/media/IR/ir-keymaps.c.orig	2010-05-08 17:03:35.000000000 +0200
> +++ linux-2.6.33.3/drivers/media/IR/ir-keymaps.c	2010-05-09 19:35:27.000000000 +0200
> @@ -3197,6 +3197,96 @@ struct ir_scancode_table ir_codes_videom
>  };
>  EXPORT_SYMBOL_GPL(ir_codes_videomate_s350_table);
>  
> +/*
> +Compro videomate vista T750F remote
> +-----------------------------------
> +Emard 2010-05-09 <davoremard@gmail.com>
> +                                            POWER
> +VIDEO           RADIO       AUDIO          CAMERA 
> +PVR             EPG         TV      DVD  SUBTITLE
> +
> +                      UP
> +                 LEFT OK RIGHT
> +                     DOWN
> +
> +BACKSPACE            MENU                    INFO
> +
> +VOLUMEUP                                CHANNELUP
> +                     MUTE
> +VOLUMEDOWN                            CHANNELDOWN
> +
> +RECORD                                       STOP
> +REWIND               PLAY             FASTFORWARD
> +PREVIOUSSONG       PLAYPAUSE             NEXTSONG
> +
> +NUMERIC_1          NUMERIC_2         NUMERIC_3
> +NUMERIC_4          NUMERIC_5         NUMERIC_6
> +NUMERIC_7          NUMERIC_8         NUMERIC_9
> +NUMERIC_STAR       NUMERIC_0         NUMERIC_POUND
> +
> +CLEAR                ZOOM                 ENTER
> +
> +RED      GREEN      YELLOW     BLUE        TEXT
> +*/
> +static struct ir_scancode ir_codes_videomate_t750[] = {
> +	{ 0x01, KEY_POWER},
> +	{ 0x31, KEY_VIDEO},
> +	{ 0x33, KEY_RADIO},
> +	{ 0x2f, KEY_AUDIO},
> +	{ 0x30, KEY_CAMERA}, /* pictures */
> +	{ 0x2d, KEY_PVR},    /* Recordings */
> +	{   23, KEY_EPG},
> +	{   44, KEY_TV},
> +	{   43, KEY_DVD},
> +	{ 0x32, KEY_SUBTITLE},
> +	{   17, KEY_UP},
> +	{   19, KEY_LEFT},
> +	{   21, KEY_OK},
> +	{   20, KEY_RIGHT},
> +	{   18, KEY_DOWN},
> +	{   22, KEY_BACKSPACE},
> +	{ 0x02, KEY_MENU},
> +	{ 0x04, KEY_INFO},
> +	{ 0x05, KEY_VOLUMEUP},
> +	{ 0x06, KEY_VOLUMEDOWN},
> +	{ 0x03, KEY_MUTE},
> +	{ 0x07, KEY_CHANNELUP},
> +	{ 0x08, KEY_CHANNELDOWN},
> +	{ 0x0c, KEY_RECORD},
> +	{ 0x0e, KEY_STOP},
> +	{ 0x0a, KEY_REWIND},
> +	{ 0x0b, KEY_PLAY},
> +	{ 0x09, KEY_FASTFORWARD},
> +	{ 0x10, KEY_PREVIOUSSONG},
> +	{ 0x0d, KEY_PLAYPAUSE},
> +	{ 0x0f, KEY_NEXTSONG},
> +	{   30, KEY_NUMERIC_1},
> +	{ 0x1f, KEY_NUMERIC_2},
> +	{ 0x20, KEY_NUMERIC_3},
> +	{ 0x21, KEY_NUMERIC_4},
> +	{ 0x22, KEY_NUMERIC_5},
> +	{ 0x23, KEY_NUMERIC_6},
> +	{ 0x24, KEY_NUMERIC_7},
> +	{ 0x25, KEY_NUMERIC_8},
> +	{ 0x26, KEY_NUMERIC_9},
> +	{ 0x2a, KEY_NUMERIC_STAR},
> +	{   29, KEY_NUMERIC_0},
> +	{   41, KEY_NUMERIC_POUND},
> +	{   39, KEY_CLEAR},
> +	{ 0x34, KEY_ZOOM},
> +	{ 0x28, KEY_ENTER},
> +	{   25, KEY_RED},
> +	{   26, KEY_GREEN},
> +	{   27, KEY_YELLOW},
> +	{   28, KEY_BLUE},
> +	{   24, KEY_TEXT},

The IR code suffered a major change during this development cycle. So, this patch doesn't apply
anymore.
> +};
> +struct ir_scancode_table ir_codes_videomate_t750_table = {
> +	.scan = ir_codes_videomate_t750,
> +	.size = ARRAY_SIZE(ir_codes_videomate_t750),
> +};
> +EXPORT_SYMBOL_GPL(ir_codes_videomate_t750_table);
> +
>  /* GADMEI UTV330+ RM008Z remote
>     Shine Liu <shinel@foxmail.com>
>   */
> --- linux-2.6.33.3/include/media/ir-common.h.orig	2010-04-26 16:48:30.000000000 +0200
> +++ linux-2.6.33.3/include/media/ir-common.h	2010-05-09 17:30:24.000000000 +0200
> @@ -160,6 +160,7 @@ extern struct ir_scancode_table ir_codes
>  extern struct ir_scancode_table ir_codes_evga_indtube_table;
>  extern struct ir_scancode_table ir_codes_terratec_cinergy_xs_table;
>  extern struct ir_scancode_table ir_codes_videomate_s350_table;
> +extern struct ir_scancode_table ir_codes_videomate_t750_table;
>  extern struct ir_scancode_table ir_codes_gadmei_rm008z_table;
>  extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table;
>  #endif
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




Cheers,
Mauro

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-27 17:18               ` Mauro Carvalho Chehab
@ 2010-05-28  6:48                 ` Davor Emard
  0 siblings, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-28  6:48 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media, semirocket

> The IR code suffered a major change during this development cycle. So, this patch doesn't apply
> anymore.

OK, let's delay IR part for a while I'd like to try the new IR code,
mainly because of keystroke loss issue if the new code perhaps
works better.

In this patch is just my suggestion of remote key events to generate, 
(this a MCE alike remote) as you can see I avoided normal key events 
from ordinary keyboard (numeric 0-9) because now in the kernel are more 
suitable events for this for the OS to immediately recognize related 
keypress "1" and start the related application (e.g. TV viewer)

Emard

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  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  7:52                     ` Davor Emard
  2010-05-31  1:21                   ` Davor Emard
  3 siblings, 2 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-30 23:48 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

HI!

I have downloaded latest hg v4l and adapted the compro 
t750f support patch. The patch is the same but v4l code is
newer so there's some improvement

Restarting VDR is now stable. Tried it cca 10x VDR restarts, 
DVB-T tuner always worked. Remote still has 10% keys lost.

ALSA device now appears with alsa=1 in the list
arecord -l (but I haven't tried to capture anything yet)

Someone mentioned that MCE-alike remote is the same to all 
f-series of the cards so I called it rc-videomate-f.

Here's the patch

diff -r 304cfde05b3f linux/drivers/media/IR/keymaps/Makefile
--- a/linux/drivers/media/IR/keymaps/Makefile	Tue May 25 23:50:51 2010 -0400
+++ b/linux/drivers/media/IR/keymaps/Makefile	Mon May 31 01:18:12 2010 +0200
@@ -63,5 +63,6 @@
 			rc-tt-1500.o \
 			rc-videomate-s350.o \
 			rc-videomate-tv-pvr.o \
+			rc-videomate-f.o \
 			rc-winfast.o \
 			rc-winfast-usbii-deluxe.o
diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c	Tue May 25 23:50:51 2010 -0400
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c	Mon May 31 01:18:12 2010 +0200
@@ -4920,12 +4920,14 @@
 	},
 	[SAA7134_BOARD_VIDEOMATE_T750] = {
 		/* John Newbigin <jn@it.swin.edu.au> */
+		/* Emard 2010-05-10 v18-v4l <davoremard@gmail.com> */
 		.name           = "Compro VideoMate T750",
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_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,6 +7178,11 @@
 		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;
 }
diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-dvb.c
--- a/linux/drivers/media/video/saa7134/saa7134-dvb.c	Tue May 25 23:50:51 2010 -0400
+++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c	Mon May 31 01:18:12 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
  */
@@ -1569,6 +1581,21 @@
 					__func__);
 
 		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;
 	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
 		fe0->dvb.frontend = dvb_attach(tda10048_attach,
 					       &zolid_tda10048_config,
diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c	Tue May 25 23:50:51 2010 -0400
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c	Mon May 31 01:18:12 2010 +0200
@@ -865,6 +865,11 @@
 		mask_keycode = 0x003f00;
 		mask_keydown = 0x040000;
 		break;
+	case SAA7134_BOARD_VIDEOMATE_T750:
+		ir_codes     = RC_MAP_VIDEOMATE_F;
+		mask_keycode = 0x003f00;
+		mask_keyup   = 0x040000;
+		break;
 	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
 		ir_codes     = RC_MAP_WINFAST;
 		mask_keycode = 0x5f00;
diff -r 304cfde05b3f linux/include/media/rc-map.h
--- a/linux/include/media/rc-map.h	Tue May 25 23:50:51 2010 -0400
+++ b/linux/include/media/rc-map.h	Mon May 31 01:18:12 2010 +0200
@@ -113,6 +113,7 @@
 #define RC_MAP_TT_1500                   "rc-tt-1500"
 #define RC_MAP_VIDEOMATE_S350            "rc-videomate-s350"
 #define RC_MAP_VIDEOMATE_TV_PVR          "rc-videomate-tv-pvr"
+#define RC_MAP_VIDEOMATE_F               "rc-videomate-f"
 #define RC_MAP_WINFAST                   "rc-winfast"
 #define RC_MAP_WINFAST_USBII_DELUXE      "rc-winfast-usbii-deluxe"
 /*
--- v4l-dvb/linux/drivers/media/IR/keymaps/rc-videomate-f.c.orig	2010-05-31 01:31:03.000000000 +0200
+++ v4l-dvb/linux/drivers/media/IR/keymaps/rc-videomate-f.c	2010-05-31 00:54:31.000000000 +0200
@@ -0,0 +1,119 @@
+/* videomate-f.h - Keytable for videomate f series Remote Controller
+ *
+ * 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.
+ */
+
+#include <media/rc-map.h>
+
+/*
+Compro videomate vista T750F remote
+-----------------------------------
+Emard 2010-05-09 <davoremard@gmail.com>
+                                            POWER
+VIDEO           RADIO       AUDIO          CAMERA 
+PVR             EPG         TV      DVD  SUBTITLE
+
+                      UP
+                 LEFT OK RIGHT
+                     DOWN
+
+BACK                 MENU                    INFO
+
+VOLUMEUP                                CHANNELUP
+                     MUTE
+VOLUMEDOWN                            CHANNELDOWN
+
+RECORD                                       STOP
+REWIND               PLAY             FASTFORWARD
+PREVIOUSSONG       PLAYPAUSE             NEXTSONG
+
+NUMERIC_1          NUMERIC_2         NUMERIC_3
+NUMERIC_4          NUMERIC_5         NUMERIC_6
+NUMERIC_7          NUMERIC_8         NUMERIC_9
+NUMERIC_STAR       NUMERIC_0         NUMERIC_POUND
+
+CLEAR                ZOOM                 ENTER
+
+RED      GREEN      YELLOW     BLUE        TEXT
+*/
+static struct ir_scancode videomate_f[] = {
+	{ 0x01, KEY_POWER},
+	{ 0x31, KEY_VIDEO},
+	{ 0x33, KEY_RADIO},
+	{ 0x2f, KEY_AUDIO},
+	{ 0x30, KEY_CAMERA}, /* pictures */
+	{ 0x2d, KEY_PVR},    /* Recordings */
+	{   23, KEY_EPG},
+	{   44, KEY_TV},
+	{   43, KEY_DVD},
+	{ 0x32, KEY_SUBTITLE},
+	{   17, KEY_UP},
+	{   19, KEY_LEFT},
+	{   21, KEY_OK},
+	{   20, KEY_RIGHT},
+	{   18, KEY_DOWN},
+	{   22, KEY_BACK},
+	{ 0x02, KEY_MENU},
+	{ 0x04, KEY_INFO},
+	{ 0x05, KEY_VOLUMEUP},
+	{ 0x06, KEY_VOLUMEDOWN},
+	{ 0x03, KEY_MUTE},
+	{ 0x07, KEY_CHANNELUP},
+	{ 0x08, KEY_CHANNELDOWN},
+	{ 0x0c, KEY_RECORD},
+	{ 0x0e, KEY_STOP},
+	{ 0x0a, KEY_REWIND},
+	{ 0x0b, KEY_PLAY},
+	{ 0x09, KEY_FASTFORWARD},
+	{ 0x10, KEY_PREVIOUSSONG},
+	{ 0x0d, KEY_PLAYPAUSE},
+	{ 0x0f, KEY_NEXTSONG},
+	{   30, KEY_NUMERIC_1},
+	{ 0x1f, KEY_NUMERIC_2},
+	{ 0x20, KEY_NUMERIC_3},
+	{ 0x21, KEY_NUMERIC_4},
+	{ 0x22, KEY_NUMERIC_5},
+	{ 0x23, KEY_NUMERIC_6},
+	{ 0x24, KEY_NUMERIC_7},
+	{ 0x25, KEY_NUMERIC_8},
+	{ 0x26, KEY_NUMERIC_9},
+	{ 0x2a, KEY_NUMERIC_STAR},
+	{   29, KEY_NUMERIC_0},
+	{   41, KEY_NUMERIC_POUND},
+	{   39, KEY_CLEAR},
+	{ 0x34, KEY_ZOOM},
+	{ 0x28, KEY_ENTER},
+	{   25, KEY_RED},
+	{   26, KEY_GREEN},
+	{   27, KEY_YELLOW},
+	{   28, KEY_BLUE},
+	{   24, KEY_TEXT},
+};
+
+static struct rc_keymap videomate_f_map = {
+	.map = {
+		.scan    = videomate_f,
+		.size    = ARRAY_SIZE(videomate_f),
+		.ir_type = IR_TYPE_UNKNOWN,	/* Legacy IR type */
+		.name    = RC_MAP_VIDEOMATE_F,
+	}
+};
+
+static int __init init_rc_map_videomate_f(void)
+{
+	return ir_register_map(&videomate_f_map);
+}
+
+static void __exit exit_rc_map_videomate_f(void)
+{
+	ir_unregister_map(&videomate_f_map);
+}
+
+module_init(init_rc_map_videomate_f)
+module_exit(exit_rc_map_videomate_f)
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Davor Emard <davoremard@gmail.com>");


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-30 23:48                   ` Davor Emard
@ 2010-05-31  0:27                     ` hermann pitton
  2010-05-31  0:33                       ` hermann pitton
  2010-05-31  7:52                     ` Davor Emard
  1 sibling, 1 reply; 25+ messages in thread
From: hermann pitton @ 2010-05-31  0:27 UTC (permalink / raw)
  To: Davor Emard; +Cc: Samuel Rakitničan, semiRocket, linux-media


Hi Davor,

Am Montag, den 31.05.2010, 01:48 +0200 schrieb Davor Emard:
> HI!
> 
> I have downloaded latest hg v4l and adapted the compro 
> t750f support patch. The patch is the same but v4l code is
> newer so there's some improvement
> 
> Restarting VDR is now stable. Tried it cca 10x VDR restarts, 
> DVB-T tuner always worked. Remote still has 10% keys lost.
> 
> ALSA device now appears with alsa=1 in the list
> arecord -l (but I haven't tried to capture anything yet)
> 
> Someone mentioned that MCE-alike remote is the same to all 
> f-series of the cards so I called it rc-videomate-f.
> 
> Here's the patch

likely one of the most difficult cards on that driver during the last
time.

Does't look such bad to me, after all, without having one.

Hmm, somehow its #define in the saa7134.h header is missing?

I'm also wondering, why we don't see the usual three lines offset on the
end of current patches.

Cheers,
Hermann


> diff -r 304cfde05b3f linux/drivers/media/IR/keymaps/Makefile
> --- a/linux/drivers/media/IR/keymaps/Makefile	Tue May 25 23:50:51 2010 -0400
> +++ b/linux/drivers/media/IR/keymaps/Makefile	Mon May 31 01:18:12 2010 +0200
> @@ -63,5 +63,6 @@
>  			rc-tt-1500.o \
>  			rc-videomate-s350.o \
>  			rc-videomate-tv-pvr.o \
> +			rc-videomate-f.o \
>  			rc-winfast.o \
>  			rc-winfast-usbii-deluxe.o
> diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-cards.c
> --- a/linux/drivers/media/video/saa7134/saa7134-cards.c	Tue May 25 23:50:51 2010 -0400
> +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c	Mon May 31 01:18:12 2010 +0200
> @@ -4920,12 +4920,14 @@
>  	},
>  	[SAA7134_BOARD_VIDEOMATE_T750] = {
>  		/* John Newbigin <jn@it.swin.edu.au> */
> +		/* Emard 2010-05-10 v18-v4l <davoremard@gmail.com> */
>  		.name           = "Compro VideoMate T750",
>  		.audio_clock    = 0x00187de7,
>  		.tuner_type     = TUNER_XC2028,
>  		.radio_type     = UNSET,
> -		.tuner_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,6 +7178,11 @@
>  		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;
>  }
> diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-dvb.c
> --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c	Tue May 25 23:50:51 2010 -0400
> +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c	Mon May 31 01:18:12 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
>   */
> @@ -1569,6 +1581,21 @@
>  					__func__);
>  
>  		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;
>  	case SAA7134_BOARD_ZOLID_HYBRID_PCI:
>  		fe0->dvb.frontend = dvb_attach(tda10048_attach,
>  					       &zolid_tda10048_config,
> diff -r 304cfde05b3f linux/drivers/media/video/saa7134/saa7134-input.c
> --- a/linux/drivers/media/video/saa7134/saa7134-input.c	Tue May 25 23:50:51 2010 -0400
> +++ b/linux/drivers/media/video/saa7134/saa7134-input.c	Mon May 31 01:18:12 2010 +0200
> @@ -865,6 +865,11 @@
>  		mask_keycode = 0x003f00;
>  		mask_keydown = 0x040000;
>  		break;
> +	case SAA7134_BOARD_VIDEOMATE_T750:
> +		ir_codes     = RC_MAP_VIDEOMATE_F;
> +		mask_keycode = 0x003f00;
> +		mask_keyup   = 0x040000;
> +		break;
>  	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
>  		ir_codes     = RC_MAP_WINFAST;
>  		mask_keycode = 0x5f00;
> diff -r 304cfde05b3f linux/include/media/rc-map.h
> --- a/linux/include/media/rc-map.h	Tue May 25 23:50:51 2010 -0400
> +++ b/linux/include/media/rc-map.h	Mon May 31 01:18:12 2010 +0200
> @@ -113,6 +113,7 @@
>  #define RC_MAP_TT_1500                   "rc-tt-1500"
>  #define RC_MAP_VIDEOMATE_S350            "rc-videomate-s350"
>  #define RC_MAP_VIDEOMATE_TV_PVR          "rc-videomate-tv-pvr"
> +#define RC_MAP_VIDEOMATE_F               "rc-videomate-f"
>  #define RC_MAP_WINFAST                   "rc-winfast"
>  #define RC_MAP_WINFAST_USBII_DELUXE      "rc-winfast-usbii-deluxe"
>  /*
> --- v4l-dvb/linux/drivers/media/IR/keymaps/rc-videomate-f.c.orig	2010-05-31 01:31:03.000000000 +0200
> +++ v4l-dvb/linux/drivers/media/IR/keymaps/rc-videomate-f.c	2010-05-31 00:54:31.000000000 +0200
> @@ -0,0 +1,119 @@
> +/* videomate-f.h - Keytable for videomate f series Remote Controller
> + *
> + * 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.
> + */
> +
> +#include <media/rc-map.h>
> +
> +/*
> +Compro videomate vista T750F remote
> +-----------------------------------
> +Emard 2010-05-09 <davoremard@gmail.com>
> +                                            POWER
> +VIDEO           RADIO       AUDIO          CAMERA 
> +PVR             EPG         TV      DVD  SUBTITLE
> +
> +                      UP
> +                 LEFT OK RIGHT
> +                     DOWN
> +
> +BACK                 MENU                    INFO
> +
> +VOLUMEUP                                CHANNELUP
> +                     MUTE
> +VOLUMEDOWN                            CHANNELDOWN
> +
> +RECORD                                       STOP
> +REWIND               PLAY             FASTFORWARD
> +PREVIOUSSONG       PLAYPAUSE             NEXTSONG
> +
> +NUMERIC_1          NUMERIC_2         NUMERIC_3
> +NUMERIC_4          NUMERIC_5         NUMERIC_6
> +NUMERIC_7          NUMERIC_8         NUMERIC_9
> +NUMERIC_STAR       NUMERIC_0         NUMERIC_POUND
> +
> +CLEAR                ZOOM                 ENTER
> +
> +RED      GREEN      YELLOW     BLUE        TEXT
> +*/
> +static struct ir_scancode videomate_f[] = {
> +	{ 0x01, KEY_POWER},
> +	{ 0x31, KEY_VIDEO},
> +	{ 0x33, KEY_RADIO},
> +	{ 0x2f, KEY_AUDIO},
> +	{ 0x30, KEY_CAMERA}, /* pictures */
> +	{ 0x2d, KEY_PVR},    /* Recordings */
> +	{   23, KEY_EPG},
> +	{   44, KEY_TV},
> +	{   43, KEY_DVD},
> +	{ 0x32, KEY_SUBTITLE},
> +	{   17, KEY_UP},
> +	{   19, KEY_LEFT},
> +	{   21, KEY_OK},
> +	{   20, KEY_RIGHT},
> +	{   18, KEY_DOWN},
> +	{   22, KEY_BACK},
> +	{ 0x02, KEY_MENU},
> +	{ 0x04, KEY_INFO},
> +	{ 0x05, KEY_VOLUMEUP},
> +	{ 0x06, KEY_VOLUMEDOWN},
> +	{ 0x03, KEY_MUTE},
> +	{ 0x07, KEY_CHANNELUP},
> +	{ 0x08, KEY_CHANNELDOWN},
> +	{ 0x0c, KEY_RECORD},
> +	{ 0x0e, KEY_STOP},
> +	{ 0x0a, KEY_REWIND},
> +	{ 0x0b, KEY_PLAY},
> +	{ 0x09, KEY_FASTFORWARD},
> +	{ 0x10, KEY_PREVIOUSSONG},
> +	{ 0x0d, KEY_PLAYPAUSE},
> +	{ 0x0f, KEY_NEXTSONG},
> +	{   30, KEY_NUMERIC_1},
> +	{ 0x1f, KEY_NUMERIC_2},
> +	{ 0x20, KEY_NUMERIC_3},
> +	{ 0x21, KEY_NUMERIC_4},
> +	{ 0x22, KEY_NUMERIC_5},
> +	{ 0x23, KEY_NUMERIC_6},
> +	{ 0x24, KEY_NUMERIC_7},
> +	{ 0x25, KEY_NUMERIC_8},
> +	{ 0x26, KEY_NUMERIC_9},
> +	{ 0x2a, KEY_NUMERIC_STAR},
> +	{   29, KEY_NUMERIC_0},
> +	{   41, KEY_NUMERIC_POUND},
> +	{   39, KEY_CLEAR},
> +	{ 0x34, KEY_ZOOM},
> +	{ 0x28, KEY_ENTER},
> +	{   25, KEY_RED},
> +	{   26, KEY_GREEN},
> +	{   27, KEY_YELLOW},
> +	{   28, KEY_BLUE},
> +	{   24, KEY_TEXT},
> +};
> +
> +static struct rc_keymap videomate_f_map = {
> +	.map = {
> +		.scan    = videomate_f,
> +		.size    = ARRAY_SIZE(videomate_f),
> +		.ir_type = IR_TYPE_UNKNOWN,	/* Legacy IR type */
> +		.name    = RC_MAP_VIDEOMATE_F,
> +	}
> +};
> +
> +static int __init init_rc_map_videomate_f(void)
> +{
> +	return ir_register_map(&videomate_f_map);
> +}
> +
> +static void __exit exit_rc_map_videomate_f(void)
> +{
> +	ir_unregister_map(&videomate_f_map);
> +}
> +
> +module_init(init_rc_map_videomate_f)
> +module_exit(exit_rc_map_videomate_f)
> +
> +MODULE_LICENSE("GPL");
> +MODULE_AUTHOR("Davor Emard <davoremard@gmail.com>");
> 
> --


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-31  0:27                     ` hermann pitton
@ 2010-05-31  0:33                       ` hermann pitton
  2010-05-31  1:07                         ` Davor Emard
  0 siblings, 1 reply; 25+ messages in thread
From: hermann pitton @ 2010-05-31  0:33 UTC (permalink / raw)
  To: Davor Emard; +Cc: Samuel Rakitničan, semiRocket, linux-media


> 
> Hmm, somehow its #define in the saa7134.h header is missing?
> 
> I'm also wondering, why we don't see the usual three lines offset on the
> end of current patches.

Forget about the later, is in new file mode.

Hermann




^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-31  0:33                       ` hermann pitton
@ 2010-05-31  1:07                         ` Davor Emard
  0 siblings, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-31  1:07 UTC (permalink / raw)
  To: hermann pitton; +Cc: Samuel Rakitničan, semiRocket, linux-media

HI

> 
> Forget about the later, is in new file mode.

I wanted the new file but I don't know hg diff too much
so I just manually cat >> to append to the hg diff output...

d.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-23 17:40                 ` Samuel Rakitničan
                                     ` (2 preceding siblings ...)
  2010-05-30 23:48                   ` Davor Emard
@ 2010-05-31  1:21                   ` Davor Emard
  3 siblings, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-05-31  1:21 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

HI!

Can you also try this GPIO settings? It's my try to use last summer's
registers dump to setup gpio mask and value

	case SAA7134_BOARD_VIDEOMATE_T750:
		dev->has_remote = SAA7134_REMOTE_GPIO;
		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8082c000, 0x8082c000);
		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x8082c000, 0x0080c000);
		break;

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-05-30 23:48                   ` Davor Emard
  2010-05-31  0:27                     ` hermann pitton
@ 2010-05-31  7:52                     ` Davor Emard
  2010-06-02 11:28                       ` semiRocket
  1 sibling, 1 reply; 25+ messages in thread
From: Davor Emard @ 2010-05-31  7:52 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

HI!

I just went to compro website and have seen that *f cards
have some identical MCE-alike but also slightly different remotes, 
so we have to invent some better names to distinguish between 
them (compro itself might have some names for them)

d.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  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
  0 siblings, 2 replies; 25+ messages in thread
From: semiRocket @ 2010-06-02 11:28 UTC (permalink / raw)
  To: Davor Emard; +Cc: semiRocket, linux-media

On Mon, 31 May 2010 09:52:14 +0200, Davor Emard <davoremard@gmail.com>  
wrote:

> HI!
>
> I just went to compro website and have seen that *f cards
> have some identical MCE-alike but also slightly different remotes,
> so we have to invent some better names to distinguish between
> them (compro itself might have some names for them)
>
> d.

Hi,


Tested your new patch with Gerd's input-events utility. input-events is  
reporting wrong key (KEY_MIN_INTERESTING) for KEY_MUTE, not sure why.

input-events is reporting ??? for all KEY_NUMERIC_*.


Perhaps you could use KEY_PREVIOUS and KEY_NEXT instead of  
KEY_PREVIOUSSONG and KEY_NEXTSONG.

For the naming you could use K100

     http://www.comprousa.com/en/pctv_remote.php

Lirc has definitions for K300 and it seems that it's using totally  
different codes:
     http://lirc.sourceforge.net/remotes/compro/VideoMate-K300

So I think too this would be a better naming sheme.


Regards,
Samuel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-06-02 11:28                       ` semiRocket
@ 2010-06-02 17:22                         ` Davor Emard
  2010-06-02 18:27                         ` Davor Emard
  1 sibling, 0 replies; 25+ messages in thread
From: Davor Emard @ 2010-06-02 17:22 UTC (permalink / raw)
  To: semiRocket; +Cc: linux-media

> >HI!
> >
> >I just went to compro website and have seen that *f cards
> >have some identical MCE-alike but also slightly different remotes,
> >so we have to invent some better names to distinguish between
> >them (compro itself might have some names for them)
> >
> Tested your new patch with Gerd's input-events utility. input-events
> is reporting wrong key (KEY_MIN_INTERESTING) for KEY_MUTE, not sure
> why.

HI! Is at least tuner (and loading of the firmware) working now without 
preinitialization with windows?

About remote keys:
My evtest in debian is outdated (probably also your input-events). 
Not only it doesn't support all KEY_*s but also for some existing keys it 
reports the wrong names (like KEY_MIN_INTERESTING). 

Try it with xev, at least MUTE should work correctly there (reports XF86AudioMute).
However KEY_NUMERIC_* won't be recognized by xev because X11 doesn't map
them to anything by default

However only the input layer keycodes matter, we can ignore it's name interpreted 
by some application (every app may name it different or even wrong...).

The tools should be compiled against latest /usr/include/linux/input.h
and have all new key names there (and corrected some existing names).

My intention was to map remote key pictograms to most appropriate
event in latest kernel's input.h, avoiding PC keyboard ambiguity as
much as I can.

Because in the kernel they have expanded input.h with a number of new keys to 
better cover MCE remotes and new media keyboards, so you get those ??? for
old apps but the keycode numbers should still be correct according to the 
kernel's input layer. input layer Applications map key events to the keycode 
numbers, and have freedom to give any name to the key.

The KEY_PREVIOUS and KEY_NEXT are actually keys for prev page and
next page on the keyboard, used for scrolling text. PREVIOUSSONG 
NEXTSIONG are used to skip to songs and are also expanded to skipping
to video DVD chapters, so I thought they are more appropriate for the
remote pictograms "|<" ">|" at VCR key group. I wanted to avoid ambiguity
between keyboard events and remote, however I still have KEY_ENTER
and KEY_BACKSPACE and the cursors, which is in ambiguity to the
normal keyboard - any idea what to replace them with in MCE style?

I have no issue of mapping all current keys to VDR. If you have any real issue of
mapping keys to some other TV view application or to the linux console or X11, 
feel free to change them and suggest a patch

d.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  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 17:15                           ` semiRocket
  1 sibling, 2 replies; 25+ messages in thread
From: Davor Emard @ 2010-06-02 18:27 UTC (permalink / raw)
  To: semiRocket; +Cc: linux-media

HI!

Have you tested my lastest GPIO suggestion, or come up
with your own initialization? Does it allow
to load firmware without windows booting?

Key namings of the remote must be some from linux input.h
I welcome you to change whatever is needed to fit any of your
application if current scheme is not suitable. I use VDR whcih 
can adapt to just anything event layer gives.

d.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  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:15                           ` semiRocket
  1 sibling, 1 reply; 25+ messages in thread
From: Samuel Rakitničan @ 2010-06-02 22:50 UTC (permalink / raw)
  To: semiRocket, Davor Emard; +Cc: linux-media

On Wed, 02 Jun 2010 20:27:59 +0200, Davor Emard <davoremard@gmail.com>  
wrote:

> HI!
>
> Have you tested my lastest GPIO suggestion, or come up
> with your own initialization? Does it allow
> to load firmware without windows booting?
>

Didn't have time to look for gpios, tomorrow I will have. But I can tell  
that this change is not working for me:

	case SAA7134_BOARD_VIDEOMATE_T750:
		dev->has_remote = SAA7134_REMOTE_GPIO;
		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8082c000, 0x8082c000);
		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x8082c000, 0x0080c000);
		break;

> Key namings of the remote must be some from linux input.h
> I welcome you to change whatever is needed to fit any of your
> application if current scheme is not suitable. I use VDR whcih
> can adapt to just anything event layer gives.
>
> d.

OK, I'm not having any personal opinion about the keys nor a application  
which I'm using, I'm just noticed that the keys differ against standard  
keys defined at linuxtv wiki. But if the keys at wiki are not correct,  
then perhaps should we change them there and let all use the same keys.

If we have standard keys, than userspace applications programmers can make  
a use of it and assign the keys to their applications and to have just  
work experience to their users. But maybe I'm terrible wrong...


Best regards,
Samuel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-06-02 22:50                           ` Samuel Rakitničan
@ 2010-06-03 14:04                             ` Davor Emard
  2010-06-03 17:17                               ` semiRocket
  0 siblings, 1 reply; 25+ messages in thread
From: Davor Emard @ 2010-06-03 14:04 UTC (permalink / raw)
  To: Samuel Rakitničan; +Cc: semiRocket, linux-media

> Didn't have time to look for gpios, tomorrow I will have. But I can
> tell that this change is not working for me:
> 
> 	case SAA7134_BOARD_VIDEOMATE_T750:
> 		dev->has_remote = SAA7134_REMOTE_GPIO;
> 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8082c000, 0x8082c000);
> 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x8082c000, 0x0080c000);
> 		break;

Thanx for testing it out, If it doesn't work, try this:

saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   /* keep */ 0x8082c000, /* keep */   0x8082c000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, /* keep */ 0x8082c000, /* modify */ 0x0080c000);

modify only the indicated number, try 0, try 0x8082c000 and if
you have time try all combinations of bits 0x8082c000 optionally set to 0
e.g. 0x8002c000, 0x8080c000, 0x80828000, 0x0080c000 etc...

It is possible that you and I don't have same revision of the
card and you need a slightly different initialization procedure.
If you get something to work for your card then I can try it back at
mine there's a changes that we get a common setup which works for both.

> OK, I'm not having any personal opinion about the keys nor a
> application which I'm using, I'm just noticed that the keys differ
> against standard keys defined at linuxtv wiki. But if the keys at
> wiki are not correct, then perhaps should we change them there and
> let all use the same keys.
> 
> If we have standard keys, than userspace applications programmers
> can make a use of it and assign the keys to their applications and
> to have just work experience to their users. But maybe I'm terrible
> wrong...

Yeah I know, almost every remote has its own logic so it seems my version
is yet-another-bla... I'm hoping for upcoming X11 xinput2 layer hopefully 
get full support of MCE remotes and nicely integrate with X applications
therefore I produced MCE stuff here for a challenge to the xinput2

For integrated TV and PC to work well we need all remote keys be different 
than any other existing key used by keyboard.

Without this, when X11 based TV view application gets "out of input focus"
means it becomes irresponsive to ambiguity keys on the remote controller 
(in this example cursor keys) and we need to first use mouse to click on 
TV application and then continue using cursors on remote control 
(imagine how practical it is to make mouse click when watching TV from sofa) 

best regards, d.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-06-02 18:27                         ` Davor Emard
  2010-06-02 22:50                           ` Samuel Rakitničan
@ 2010-06-03 17:15                           ` semiRocket
  1 sibling, 0 replies; 25+ messages in thread
From: semiRocket @ 2010-06-03 17:15 UTC (permalink / raw)
  To: semiRocket, Davor Emard; +Cc: linux-media

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

On Wed, 02 Jun 2010 20:27:59 +0200, Davor Emard <davoremard@gmail.com>  
wrote:

> HI!
>
> Have you tested my lastest GPIO suggestion, or come up
> with your own initialization? Does it allow
> to load firmware without windows booting?
>

No luck with this...

Remainder: It can't load firmware doing cold boot. If I restart from  
windows firmware loads, and can start tvtime a few times and watch analog  
tv.

I've uninstalled the driver and compro software from windows in order to  
track thing more carefully.

My card cold boot gpstatus value is 0080bf00. When windows driver loads,  
it sets it to 0080ff00. And sets the GPMODE to 82c000 among the other  
values. When compro remote tray utility loads sets mask to 84ff00 (94ff00)  
and value begins to constantly change.

So, I tried with something like:
	case SAA7134_BOARD_VIDEOMATE_T750:
		dev->has_remote = SAA7134_REMOTE_GPIO;
		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x0082c000, 0x0082c000);
		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0000f000, 0x0000f000);
		break;

And I get this line in dmesg after loading the driver for the second time:
saa7133[0]: board init: gpio is 94ff00

That doesn't help with firmware load. But it seems to help get to work  
analog stable, e.g when  windows prepare device I can restart tvtime as  
many times as I want without analog stop working.


Audio clock changes (xx187de7) when switching from inputs. It uses  
03187de7 for analog and DVB, and 43187de7 for S Video and Composite. Maybe  
this enables audio line in connector.


I tried to log GPMODE additional activity before it stabilizes at 0082c000  
by enabling/disabling windows driver and attached it to this mail.

here follows windows driver initialization from cold boot (without  
software installed) I know it shows GPMODE 0002c000 but later (a second  
after loading) it stabilizes at 0082c000 (didn't cach it here.):

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b


3 states dumped

----------------------------------------------------------------------------------

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             00000000 * (00000000 00000000 00000000  
00000000)
SAA7134_GPIO_GPSTATUS:           0080bf00 * (00000000 10000000 10111111  
00000000)
SAA7134_ANALOG_IN_CTRL1:         00 *       (00000000)
SAA7133_ANALOG_IO_SELECT:        00 *       (00000000)
SAA7133_AUDIO_CLOCK_NOMINAL:     00187de7 * (00000000 00011000 01111101  
11100111)
SAA7133_PLL_CONTROL:             00 *       (00000000)
SAA7133_AUDIO_CLOCKS_PER_FIELD:  00000000 * (00000000 00000000 00000000  
00000000)
SAA7134_VIDEO_PORT_CTRL0:        0000b000 * (00000000 00000000 10110000  
00000000)
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000  
00000000)
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)
SAA7134_I2S_AUDIO_OUTPUT:        10 *       (00010000)
SAA7134_TS_PARALLEL:             6c *       (01101100)
SAA7134_TS_PARALLEL_SERIAL:      b9 *       (10111001)
SAA7134_TS_SERIAL0:              50 *       (01010000)
SAA7134_TS_SERIAL1:              01 *       (00000001)
SAA7134_TS_DMA0:                 35 *       (00110101)
SAA7134_TS_DMA1:                 01 *       (00000001)
SAA7134_TS_DMA2:                 00         (00000000)
SAA7134_SPECIAL_MODE:            00 *       (00000000)


Changes: State 0 -> State 1:
SAA7134_GPIO_GPMODE:             00000000 -> 0002c000  (-------- ------0-  
00------ --------)
SAA7134_GPIO_GPSTATUS:           0080bf00 -> 0080ff00  (-------- --------  
-0------ --------)
SAA7134_ANALOG_IN_CTRL1:         00       -> 88        (0---0---)
SAA7133_ANALOG_IO_SELECT:        00       -> 02        (------0-)
SAA7133_AUDIO_CLOCK_NOMINAL:     00187de7 -> 03187de7  (------00 --------  
-------- --------)
SAA7133_PLL_CONTROL:             00       -> 03        (------00)
SAA7133_AUDIO_CLOCKS_PER_FIELD:  00000000 -> 0001e000  (-------- -------0  
000----- --------)
SAA7134_VIDEO_PORT_CTRL0:        0000b000 -> 00000000  (-------- --------  
1-11---- --------)
SAA7134_I2S_AUDIO_OUTPUT:        10       -> 11        (-------0)
SAA7134_TS_PARALLEL:             6c       -> 04        (-11-1---)
SAA7134_TS_PARALLEL_SERIAL:      b9       -> 00        (1-111--1)
SAA7134_TS_SERIAL0:              50       -> 00        (-1-1----)
SAA7134_TS_SERIAL1:              01       -> 00        (-------1)
SAA7134_TS_DMA0:                 35       -> 00        (--11-1-1)
SAA7134_TS_DMA1:                 01       -> 00        (-------1)
SAA7134_SPECIAL_MODE:            00       -> 01        (-------0)

16 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             0002c000 * (00000000 00000010 11000000  
00000000)  (was: 00000000)
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111  
00000000)  (was: 0080bf00)
SAA7134_ANALOG_IN_CTRL1:         88          
(10001000)                             (was: 00)
SAA7133_ANALOG_IO_SELECT:        02          
(00000010)                             (was: 00)
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101  
11100111)  (was: 00187de7)
SAA7133_PLL_CONTROL:             03          
(00000011)                             (was: 00)
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000  
00000000)  (was: 00000000)
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000  
00000000)  (was: 0000b000)
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000  
00000000)
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)
SAA7134_I2S_AUDIO_OUTPUT:        11          
(00010001)                             (was: 10)
SAA7134_TS_PARALLEL:             04          
(00000100)                             (was: 6c)
SAA7134_TS_PARALLEL_SERIAL:      00          
(00000000)                             (was: b9)
SAA7134_TS_SERIAL0:              00          
(00000000)                             (was: 50)
SAA7134_TS_SERIAL1:              00          
(00000000)                             (was: 01)
SAA7134_TS_DMA0:                 00          
(00000000)                             (was: 35)
SAA7134_TS_DMA1:                 00          
(00000000)                             (was: 01)
SAA7134_TS_DMA2:                 00         (00000000)
SAA7134_SPECIAL_MODE:            01          
(00000001)                             (was: 00)


Changes: State 1 -> Register Dump:
SAA7134_GPIO_GPMODE:             0002c000 -> 0082c000  (-------- 0-------  
-------- --------)

1 changes


=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000  
00000000)  (was: 0002c000)
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111  
00000000)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)
SAA7133_ANALOG_IO_SELECT:        02         (00000010)
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101  
11100111)
SAA7133_PLL_CONTROL:             03         (00000011)
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000  
00000000)
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000  
00000000)
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000  
00000000)
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)
SAA7134_TS_PARALLEL:             04         (00000100)
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)
SAA7134_TS_SERIAL0:              00         (00000000)
SAA7134_TS_SERIAL1:              00         (00000000)
SAA7134_TS_DMA0:                 00         (00000000)
SAA7134_TS_DMA1:                 00         (00000000)
SAA7134_TS_DMA2:                 00         (00000000)
SAA7134_SPECIAL_MODE:            01         (00000001)

end of dump

[-- Attachment #2: SAA7133_0.txt --]
[-- Type: text/plain, Size: 26212 bytes --]

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b


11 states dumped

----------------------------------------------------------------------------------

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094bf00 * (00000000 10010100 10111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 0 -> State 1:
SAA7134_GPIO_GPSTATUS:           0094bf00 -> 00943f00  (-------- -------- 1------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00   (00000000 10010100 00111111 00000000)  (was: 0094bf00)
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 1 -> State 2:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 2:
SAA7134_GPIO_GPMODE:             00028000 * (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00 * (00000000 10010100 00111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         80 *       (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 2 -> State 3:
SAA7134_GPIO_GPMODE:             00028000 -> 0002c000  (-------- -------- -0------ --------)  
SAA7134_GPIO_GPSTATUS:           00943f00 -> 0094ff00  (-------- -------- 00------ --------)  
SAA7134_ANALOG_IN_CTRL1:         80       -> 88        (----0---)                             

3 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 3:
SAA7134_GPIO_GPMODE:             0002c000   (00000000 00000010 11000000 00000000)  (was: 00028000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)  (was: 00943f00)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                             (was: 80)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 3 -> State 4:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 4:
SAA7134_GPIO_GPMODE:             0002c000   (00000000 00000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 4 -> State 5:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 5:
SAA7134_GPIO_GPMODE:             0002c000   (00000000 00000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 5 -> State 6:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 6:
SAA7134_GPIO_GPMODE:             0002c000   (00000000 00000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 6 -> State 7:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 7:
SAA7134_GPIO_GPMODE:             0002c000 * (00000000 00000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 7 -> State 8:
SAA7134_GPIO_GPMODE:             0002c000 -> 0082c000  (-------- 0------- -------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 8:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)  (was: 0002c000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 8 -> State 9:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 9:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 9 -> Register Dump:

0 changes


=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump

[-- Attachment #3: SAA7133_0_01.txt --]
[-- Type: text/plain, Size: 15702 bytes --]

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b


6 states dumped

----------------------------------------------------------------------------------

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0080bf00   (00000000 10000000 10111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         00         (00000000)                                            
SAA7133_ANALOG_IO_SELECT:        00         (00000000)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     00187de7   (00000000 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             00         (00000000)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        0000b000   (00000000 00000000 10110000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        10         (00010000)                                            
SAA7134_TS_PARALLEL:             6c         (01101100)                                            
SAA7134_TS_PARALLEL_SERIAL:      b9         (10111001)                                            
SAA7134_TS_SERIAL0:              50         (01010000)                                            
SAA7134_TS_SERIAL1:              01         (00000001)                                            
SAA7134_TS_DMA0:                 35         (00110101)                                            
SAA7134_TS_DMA1:                 01         (00000001)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            00         (00000000)                                            


Changes: State 0 -> State 1:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             00000000 * (00000000 00000000 00000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0080bf00 * (00000000 10000000 10111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         00 *       (00000000)                                            
SAA7133_ANALOG_IO_SELECT:        00 *       (00000000)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     00187de7 * (00000000 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             00 *       (00000000)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  00000000 * (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        0000b000 * (00000000 00000000 10110000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        10 *       (00010000)                                            
SAA7134_TS_PARALLEL:             6c *       (01101100)                                            
SAA7134_TS_PARALLEL_SERIAL:      b9 *       (10111001)                                            
SAA7134_TS_SERIAL0:              50 *       (01010000)                                            
SAA7134_TS_SERIAL1:              01 *       (00000001)                                            
SAA7134_TS_DMA0:                 35 *       (00110101)                                            
SAA7134_TS_DMA1:                 01 *       (00000001)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            00 *       (00000000)                                            


Changes: State 1 -> State 2:
SAA7134_GPIO_GPMODE:             00000000 -> 0002c000  (-------- ------0- 00------ --------)  
SAA7134_GPIO_GPSTATUS:           0080bf00 -> 0080ff00  (-------- -------- -0------ --------)  
SAA7134_ANALOG_IN_CTRL1:         00       -> 88        (0---0---)                             
SAA7133_ANALOG_IO_SELECT:        00       -> 02        (------0-)                             
SAA7133_AUDIO_CLOCK_NOMINAL:     00187de7 -> 03187de7  (------00 -------- -------- --------)  
SAA7133_PLL_CONTROL:             00       -> 03        (------00)                             
SAA7133_AUDIO_CLOCKS_PER_FIELD:  00000000 -> 0001e000  (-------- -------0 000----- --------)  
SAA7134_VIDEO_PORT_CTRL0:        0000b000 -> 00000000  (-------- -------- 1-11---- --------)  
SAA7134_I2S_AUDIO_OUTPUT:        10       -> 11        (-------0)                             
SAA7134_TS_PARALLEL:             6c       -> 04        (-11-1---)                             
SAA7134_TS_PARALLEL_SERIAL:      b9       -> 00        (1-111--1)                             
SAA7134_TS_SERIAL0:              50       -> 00        (-1-1----)                             
SAA7134_TS_SERIAL1:              01       -> 00        (-------1)                             
SAA7134_TS_DMA0:                 35       -> 00        (--11-1-1)                             
SAA7134_TS_DMA1:                 01       -> 00        (-------1)                             
SAA7134_SPECIAL_MODE:            00       -> 01        (-------0)                             

16 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 2:
SAA7134_GPIO_GPMODE:             0002c000 * (00000000 00000010 11000000 00000000)  (was: 00000000)
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111 00000000)  (was: 0080bf00)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                             (was: 00)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                             (was: 00)      
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)  (was: 00187de7)
SAA7133_PLL_CONTROL:             03         (00000011)                             (was: 00)      
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)  (was: 00000000)
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)  (was: 0000b000)
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                             (was: 10)      
SAA7134_TS_PARALLEL:             04         (00000100)                             (was: 6c)      
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                             (was: b9)      
SAA7134_TS_SERIAL0:              00         (00000000)                             (was: 50)      
SAA7134_TS_SERIAL1:              00         (00000000)                             (was: 01)      
SAA7134_TS_DMA0:                 00         (00000000)                             (was: 35)      
SAA7134_TS_DMA1:                 00         (00000000)                             (was: 01)      
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                             (was: 00)      


Changes: State 2 -> State 3:
SAA7134_GPIO_GPMODE:             0002c000 -> 0082c000  (-------- 0------- -------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 3:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)  (was: 0002c000)
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 3 -> State 4:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 4:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 4 -> Register Dump:

0 changes


=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0080ff00   (00000000 10000000 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump

[-- Attachment #4: SAA7133_0_02.txt --]
[-- Type: text/plain, Size: 2412 bytes --]

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b

=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump

[-- Attachment #5: SAA7133_0_03.txt --]
[-- Type: text/plain, Size: 23882 bytes --]

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b


10 states dumped

----------------------------------------------------------------------------------

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094bf00 * (00000000 10010100 10111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 0 -> State 1:
SAA7134_GPIO_GPSTATUS:           0094bf00 -> 00943f00  (-------- -------- 1------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00   (00000000 10010100 00111111 00000000)  (was: 0094bf00)
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 1 -> State 2:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 2:
SAA7134_GPIO_GPMODE:             00028000 * (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00 * (00000000 10010100 00111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         80 *       (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 2 -> State 3:
SAA7134_GPIO_GPMODE:             00028000 -> 0002c000  (-------- -------- -0------ --------)  
SAA7134_GPIO_GPSTATUS:           00943f00 -> 0094ff00  (-------- -------- 00------ --------)  
SAA7134_ANALOG_IN_CTRL1:         80       -> 88        (----0---)                             

3 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 3:
SAA7134_GPIO_GPMODE:             0002c000 * (00000000 00000010 11000000 00000000)  (was: 00028000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)  (was: 00943f00)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                             (was: 80)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 3 -> State 4:
SAA7134_GPIO_GPMODE:             0002c000 -> 0082c000  (-------- 0------- -------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 4:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)  (was: 0002c000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 4 -> State 5:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 5:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 5 -> State 6:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 6:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 6 -> State 7:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 7:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 7 -> State 8:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 8:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 8 -> Register Dump:

0 changes


=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump

[-- Attachment #6: SAA7133_0_04.txt --]
[-- Type: text/plain, Size: 21312 bytes --]

SAA7133 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7133
Subsystem ID:        0xc900185b


8 states dumped

----------------------------------------------------------------------------------

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7134_GPIO_GPSTATUS:           ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7134_ANALOG_IN_CTRL1:         ff *       (11111111)                                            
SAA7133_ANALOG_IO_SELECT:        ff *       (11111111)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7133_PLL_CONTROL:             ff *       (11111111)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7134_VIDEO_PORT_CTRL0:        ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7134_VIDEO_PORT_CTRL4:        ffffffff * (11111111 11111111 11111111 11111111)                 
SAA7134_VIDEO_PORT_CTRL8:        ff *       (11111111)                                            
SAA7134_I2S_OUTPUT_SELECT:       ff *       (11111111)                                            
SAA7134_I2S_OUTPUT_FORMAT:       ff *       (11111111)                                            
SAA7134_I2S_OUTPUT_LEVEL:        ff *       (11111111)                                            
SAA7134_I2S_AUDIO_OUTPUT:        ff *       (11111111)                                            
SAA7134_TS_PARALLEL:             ff *       (11111111)                                            
SAA7134_TS_PARALLEL_SERIAL:      ff *       (11111111)                                            
SAA7134_TS_SERIAL0:              ff *       (11111111)                                            
SAA7134_TS_SERIAL1:              ff *       (11111111)                                            
SAA7134_TS_DMA0:                 ff *       (11111111)                                            
SAA7134_TS_DMA1:                 ff *       (11111111)                                            
SAA7134_TS_DMA2:                 ff *       (11111111)                                            
SAA7134_SPECIAL_MODE:            ff *       (11111111)                                            


Changes: State 0 -> State 1:
SAA7134_GPIO_GPMODE:             ffffffff -> 00028000  (11111111 111111-1 -1111111 11111111)  
SAA7134_GPIO_GPSTATUS:           ffffffff -> 0094bf00  (11111111 -11-1-11 -1------ 11111111)  
SAA7134_ANALOG_IN_CTRL1:         ff       -> 80        (-1111111)                             
SAA7133_ANALOG_IO_SELECT:        ff       -> 02        (111111-1)                             
SAA7133_AUDIO_CLOCK_NOMINAL:     ffffffff -> 03187de7  (111111-- 111--111 1-----1- ---11---)  
SAA7133_PLL_CONTROL:             ff       -> 03        (111111--)                             
SAA7133_AUDIO_CLOCKS_PER_FIELD:  ffffffff -> 0001e000  (11111111 1111111- ---11111 11111111)  
SAA7134_VIDEO_PORT_CTRL0:        ffffffff -> 00000000  (11111111 11111111 11111111 11111111)  
SAA7134_VIDEO_PORT_CTRL4:        ffffffff -> 00000000  (11111111 11111111 11111111 11111111)  
SAA7134_VIDEO_PORT_CTRL8:        ff       -> 00        (11111111)                             
SAA7134_I2S_OUTPUT_SELECT:       ff       -> 00        (11111111)                             
SAA7134_I2S_OUTPUT_FORMAT:       ff       -> 00        (11111111)                             
SAA7134_I2S_OUTPUT_LEVEL:        ff       -> 00        (11111111)                             
SAA7134_I2S_AUDIO_OUTPUT:        ff       -> 11        (111-111-)                             
SAA7134_TS_PARALLEL:             ff       -> 04        (11111-11)                             
SAA7134_TS_PARALLEL_SERIAL:      ff       -> 00        (11111111)                             
SAA7134_TS_SERIAL0:              ff       -> 00        (11111111)                             
SAA7134_TS_SERIAL1:              ff       -> 00        (11111111)                             
SAA7134_TS_DMA0:                 ff       -> 00        (11111111)                             
SAA7134_TS_DMA1:                 ff       -> 00        (11111111)                             
SAA7134_TS_DMA2:                 ff       -> 00        (11111111)                             
SAA7134_SPECIAL_MODE:            ff       -> 01        (1111111-)                             

22 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)  (was: ffffffff)
SAA7134_GPIO_GPSTATUS:           0094bf00 * (00000000 10010100 10111111 00000000)  (was: ffffffff)
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                             (was: ff)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                             (was: ff)      
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)  (was: ffffffff)
SAA7133_PLL_CONTROL:             03         (00000011)                             (was: ff)      
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)  (was: ffffffff)
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)  (was: ffffffff)
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)  (was: ffffffff)
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                             (was: ff)      
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                             (was: ff)      
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                             (was: ff)      
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                             (was: ff)      
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                             (was: ff)      
SAA7134_TS_PARALLEL:             04         (00000100)                             (was: ff)      
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                             (was: ff)      
SAA7134_TS_SERIAL0:              00         (00000000)                             (was: ff)      
SAA7134_TS_SERIAL1:              00         (00000000)                             (was: ff)      
SAA7134_TS_DMA0:                 00         (00000000)                             (was: ff)      
SAA7134_TS_DMA1:                 00         (00000000)                             (was: ff)      
SAA7134_TS_DMA2:                 00         (00000000)                             (was: ff)      
SAA7134_SPECIAL_MODE:            01         (00000001)                             (was: ff)      


Changes: State 1 -> State 2:
SAA7134_GPIO_GPSTATUS:           0094bf00 -> 00943f00  (-------- -------- 1------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 2:
SAA7134_GPIO_GPMODE:             00028000   (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00   (00000000 10010100 00111111 00000000)  (was: 0094bf00)
SAA7134_ANALOG_IN_CTRL1:         80         (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 2 -> State 3:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 3:
SAA7134_GPIO_GPMODE:             00028000 * (00000000 00000010 10000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           00943f00 * (00000000 10010100 00111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         80 *       (10000000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 3 -> State 4:
SAA7134_GPIO_GPMODE:             00028000 -> 0002c000  (-------- -------- -0------ --------)  
SAA7134_GPIO_GPSTATUS:           00943f00 -> 0094ff00  (-------- -------- 00------ --------)  
SAA7134_ANALOG_IN_CTRL1:         80       -> 88        (----0---)                             

3 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 4:
SAA7134_GPIO_GPMODE:             0002c000   (00000000 00000010 11000000 00000000)  (was: 00028000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)  (was: 00943f00)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                             (was: 80)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 4 -> State 5:

0 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 5:
SAA7134_GPIO_GPMODE:             0002c000 * (00000000 00000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 5 -> State 6:
SAA7134_GPIO_GPMODE:             0002c000 -> 0082c000  (-------- 0------- -------- --------)  

1 changes


----------------------------------------------------------------------------------

SAA7133 Card - State 6:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)  (was: 0002c000)
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 6 -> Register Dump:

0 changes


=================================================================================

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0082c000   (00000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0094ff00   (00000000 10010100 11111111 00000000)                 
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             03         (00000011)                                            
SAA7133_AUDIO_CLOCKS_PER_FIELD:  0001e000   (00000000 00000001 11100000 00000000)                 
SAA7134_VIDEO_PORT_CTRL0:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL4:        00000000   (00000000 00000000 00000000 00000000)                 
SAA7134_VIDEO_PORT_CTRL8:        00         (00000000)                                            
SAA7134_I2S_OUTPUT_SELECT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_FORMAT:       00         (00000000)                                            
SAA7134_I2S_OUTPUT_LEVEL:        00         (00000000)                                            
SAA7134_I2S_AUDIO_OUTPUT:        11         (00010001)                                            
SAA7134_TS_PARALLEL:             04         (00000100)                                            
SAA7134_TS_PARALLEL_SERIAL:      00         (00000000)                                            
SAA7134_TS_SERIAL0:              00         (00000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 00         (00000000)                                            
SAA7134_TS_DMA1:                 00         (00000000)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PATCH] Compro Videomate T750F Vista digital+analog support
  2010-06-03 14:04                             ` Davor Emard
@ 2010-06-03 17:17                               ` semiRocket
  0 siblings, 0 replies; 25+ messages in thread
From: semiRocket @ 2010-06-03 17:17 UTC (permalink / raw)
  To: Davor Emard; +Cc: semiRocket, linux-media

On Thu, 03 Jun 2010 16:04:07 +0200, Davor Emard <davoremard@gmail.com>  
wrote:

>> Didn't have time to look for gpios, tomorrow I will have. But I can
>> tell that this change is not working for me:
>>
>> 	case SAA7134_BOARD_VIDEOMATE_T750:
>> 		dev->has_remote = SAA7134_REMOTE_GPIO;
>> 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8082c000, 0x8082c000);
>> 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x8082c000, 0x0080c000);
>> 		break;
>
> Thanx for testing it out, If it doesn't work, try this:
>
> saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   /* keep */ 0x8082c000, /* keep  
> */   0x8082c000);
> saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, /* keep */ 0x8082c000, /* modify  
> */ 0x0080c000);
>
> modify only the indicated number, try 0, try 0x8082c000 and if
> you have time try all combinations of bits 0x8082c000 optionally set to 0
> e.g. 0x8002c000, 0x8080c000, 0x80828000, 0x0080c000 etc...
>
> It is possible that you and I don't have same revision of the
> card and you need a slightly different initialization procedure.
> If you get something to work for your card then I can try it back at
> mine there's a changes that we get a common setup which works for both.
>

OK, do I need to do cold boot or reboot anytime I try different gpio value?

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2010-06-03 17:17 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.