diff mbox

Report: Compro Videomate Vista T750F

Message ID 1247434386.5152.28.camel@pc07.localdom.local (mailing list archive)
State RFC
Headers show

Commit Message

hermann pitton July 12, 2009, 9:33 p.m. UTC
Hi Samuel,

Am Sonntag, den 12.07.2009, 13:30 +0200 schrieb Samuel Rakitnican:
> As the card=139 (Compro Videomate T750)
> 
> DVB: Not working, not implemented
> Analog: Not working
> Audio In: ? (my T750F has additional connector ?)

if amux LINE2 doesn't work it is usually LINE1.
If both don't work, there is a external gpio controlled switch/mux chip.

Default is loop through for external audio in.
Means, if the saa7134 driver is unloaded, should be passed through to
audio out. If not, there is such a mux chip involved.

> Composite In: Working
> S-Video In: Working
> IR: Works with T300 codes and different keymap (needs to be implemented)
> 	(http://www.spinics.net/lists/linux-media/msg07705.html)

Should not be a problem anymore, since you have already unique codes for
all keys. 

It works with the same gpios, but generates different codes and the MCE
remote has more and different buttons. We likely need a new entry for
the T750F later and will have auto detection problems, because of the
same PCI subsystem. Detecting from eeprom does not work well with two
different remotes.

This is currently because the ir init happens already at hardware init
level 1, but epprom detection nedds working i2c at hardware level init
2. Unless ir init is not moved to hardware init 2, it needs to set the
card=number option to get the right keymap then.

> 
> Analog TV and XCeive:
> 
> Although John Newbigins reported that Analog is working in Apr 25 2007  
> with a patch. I did not try to implement this patch (by hand) because tree  
> changed big from that date, so it seems that this can not be done. At  
> least I can't.
> (http://www.linuxtv.org/pipermail/linux-dvb/2007-April/017449.html)
> 
> With stock Slackware 12.2 it's showing a single channel (although tuner  
> does't work) that previously was selected in a windows application and  
> restarted.
> Thought I had to select in tvtime: Input configuration > Television  
> standard > PAL (Default was NTSC). And then Restart with new settings to  
> show up that channel. Otherwise it would still remain blue. XCeive is  
> recognized at 0xc2
> 
> With new v4l-dvb tree channel is not showing up any more no mather what I  
> do.
> New v4l also recognizes XCeive at 0xc2:
> tuner' 0-0061: chip found @ 0xc2 (saa7133[0])
> xc2028 0-0061: creating new instance
> xc2028 0-0061: type set to XCeive xc2028/xc3028 tuner
> 
> 
> tvtime startup and shuting off:
> (Complete dump: http://pastebin.com/f376a8272)
> 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
> (and then shutting off tvtime gives a line)
> xc2028 1-0061: Error on line 1141: -5

Hm, if I get it right, without using windows previously the XCeive at
0x61 is not found and then it is tried in vain to use the qt1010 at
0x62.

Also, after using windows gpio20 seems to be high.
Maybe that is the gpio to get the tuner out of reset.

Please try the attached patch as a shot into the dark.

> 
> eeproms T750 and T750F (maybe needed for automatic IR keymap selection)
> 
> T750
> 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 03 03 01 03 01 08 ff 00 89 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 ff ff ff 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: 30 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
> 
> T750F
> 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
> 

We could use that 0xc6 byte for eeprom detection.
I don't know what it means here, but in this one 0xc4 is the qt1010
DVB-T tuner, 0x1e the demodulator and 0xc2 the analog tuner.

Cheers,
Hermann

Comments

Samuel Rakitnican July 13, 2009, 2:36 p.m. UTC | #1
Hi Hermann,

  On Sun, 12 Jul 2009 23:33:06 +0200, hermann pitton
  <hermann-pitton@arcor.de> wrote:

  [snip]
> Hm, if I get it right, without using windows previously the XCeive at
> 0x61 is not found and then it is tried in vain to use the qt1010 at
> 0x62.
>
> Also, after using windows gpio20 seems to be high.
> Maybe that is the gpio to get the tuner out of reset.
>
> Please try the attached patch as a shot into the dark.
>
  [snip]

No, I pay attention when I test for channel that XCeive gets recognized
as 0x61. When I do cold boot, or windows reboot its always gets
recognized at 0x61. Sometimes (I don't know exactly what triggers that)
the 0x61 gets omitted, and the result is that XCeive get recognized as
0x62. The result is that channel is not showing any more, apparently.

I think that xc2028-27.fw file load failures triggers that behavior,
because when I reboot linux with loading firmware failures, that
behavior is showing (from what I have noticed).

Sorry for the gpio alert, but I did some logging, and the gpio value
varies, and depends on computer state. But it seems that is same in both
cases after all. (details http://pastebin.com/f4c511dfc)

I tried your patch, too, and it's not working. Thank you for trying.
--
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
hermann pitton July 15, 2009, 12:51 a.m. UTC | #2
Am Montag, den 13.07.2009, 16:36 +0200 schrieb Samuel Rakitnican:
> Hi Hermann,
> 
>   On Sun, 12 Jul 2009 23:33:06 +0200, hermann pitton
>   <hermann-pitton@arcor.de> wrote:
> 
>   [snip]
> > Hm, if I get it right, without using windows previously the XCeive at
> > 0x61 is not found and then it is tried in vain to use the qt1010 at
> > 0x62.
> >
> > Also, after using windows gpio20 seems to be high.
> > Maybe that is the gpio to get the tuner out of reset.
> >
> > Please try the attached patch as a shot into the dark.
> >
>   [snip]
> 
> No, I pay attention when I test for channel that XCeive gets recognized
> as 0x61. When I do cold boot, or windows reboot its always gets
> recognized at 0x61. Sometimes (I don't know exactly what triggers that)
> the 0x61 gets omitted, and the result is that XCeive get recognized as
> 0x62. The result is that channel is not showing any more, apparently.
> 
> I think that xc2028-27.fw file load failures triggers that behavior,
> because when I reboot linux with loading firmware failures, that
> behavior is showing (from what I have noticed).
> 
> Sorry for the gpio alert, but I did some logging, and the gpio value
> varies, and depends on computer state. But it seems that is same in both
> cases after all. (details http://pastebin.com/f4c511dfc)
> 
> I tried your patch, too, and it's not working. Thank you for trying.

Hi Samuel,

thanks for that clarification.

I don't know, if Markus has something better in his binary blob
meanwhile, he was initially interested at least, but how to comment on
stuff not shown anymore ...

At least, the remote will be operable for cheap.

Does anybody know, why Compro doesn't clear the eeprom byte for the
analog demodulator since years (0x86)? F* it.

Cheers,
Hermann





--
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
Samuel Rakitnican July 15, 2009, 6:35 p.m. UTC | #3
On Sun, 12 Jul 2009 23:33:06 +0200, hermann pitton  
<hermann-pitton@arcor.de> wrote:

> Hi Samuel,
>
> Am Sonntag, den 12.07.2009, 13:30 +0200 schrieb Samuel Rakitnican:
>> As the card=139 (Compro Videomate T750)
>>
>> DVB: Not working, not implemented
>> Analog: Not working
>> Audio In: ? (my T750F has additional connector ?)
>
> if amux LINE2 doesn't work it is usually LINE1.
> If both don't work, there is a external gpio controlled switch/mux chip.
>
> Default is loop through for external audio in.
> Means, if the saa7134 driver is unloaded, should be passed through to
> audio out. If not, there is such a mux chip involved.
>
[snip]



Well, I haven't managed to get sound from Audio In connector, it's  
possible however that I'm doing something wrong. I tried selecting in  
tvtime both Composite and S-Video, and I've tried using SoX:
console$> ls /dev/dsp*
dsp dsp1
console$> sox -c 2 -s -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -r 32000  
/dev/dsp &

for both .amux = LINE1 and LINE2 in saa7134-cards.c source file.




RegSpy log:

I have used RegSpy that comes with DScaler version 4.1.15. I'm hoping that  
they are of some use for both Analog television and Audio In.

I have found out values crucial to changing inputs for both audio and  
video. Note that SAA7134_GPIO_GPSTATUS keeps changing all the time between  
84ff00 and 94bf00 nevertheless of the device status.

I have used VirtualDub (v1.7.7) as capturing application because it gives  
more control on input selecting (I can change audio input, not depending  
on video). From that I manage to distinguish values changing between video  
and audio.

The crucial value for video seems to be SAA7134_ANALOG_IN_CTRL1 while for  
audio seems to be values SAA7133_AUDIO_CLOCK_NOMINAL and  
SAA7133_PLL_CONTROL.

Changes: State 0 -> State 1: *****************************(Switch: Analog  
TV -> Composite)
SAA7134_GPIO_GPSTATUS:           0094ff00 -> 0494ff00  (-----0-- --------  
-------- --------)
SAA7134_ANALOG_IN_CTRL1:         83       -> 81        (------1-)
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7 -> 43187de7  (-0------ --------  
-------- --------)
SAA7133_PLL_CONTROL:             03       -> 43        (-0------)

Changes: State 1 -> State 2: *****************************(Switch:  
Composite -> S-Video)
SAA7134_GPIO_GPSTATUS:           0494ff00 -> 0284ff00  (-----10- ---1----  
-------- --------)
SAA7134_ANALOG_IN_CTRL1:         81       -> 88        (----0--1)

Changes: State 2 -> State 3: ***(Switch: Audio Source -> Audio Tuner  
(Still in S-Video mode))
SAA7134_GPIO_GPSTATUS:           0284ff00 -> 0294ff00  (-------- ---0----  
-------- --------)
SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7 -> 03187de7  (-1------ --------  
-------- --------)  (same as 0)
SAA7133_PLL_CONTROL:             43       -> 03         
(-1------)                             (same as 0)

Changes: State 3 -> State 4: ******(Switch: Audio Source -> Audio Line  
(Still in S-Video mode))
SAA7134_GPIO_GPSTATUS:           0294ff00 -> 0484ff00  (-----01- ---1----  
-------- --------)
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7 -> 43187de7  (-0------ --------  
-------- --------)  (same as 1, 2)
SAA7133_PLL_CONTROL:             03       -> 43         
(-0------)                             (same as 1, 2)

(full log: http://pastebin.com/f5f8e6184)
--
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
hermann pitton July 18, 2009, 12:58 a.m. UTC | #4
Am Mittwoch, den 15.07.2009, 20:35 +0200 schrieb Samuel Rakitnican:
> On Sun, 12 Jul 2009 23:33:06 +0200, hermann pitton  
> <hermann-pitton@arcor.de> wrote:
> 
> > Hi Samuel,
> >
> > Am Sonntag, den 12.07.2009, 13:30 +0200 schrieb Samuel Rakitnican:
> >> As the card=139 (Compro Videomate T750)
> >>
> >> DVB: Not working, not implemented
> >> Analog: Not working
> >> Audio In: ? (my T750F has additional connector ?)
> >
> > if amux LINE2 doesn't work it is usually LINE1.
> > If both don't work, there is a external gpio controlled switch/mux chip.
> >
> > Default is loop through for external audio in.
> > Means, if the saa7134 driver is unloaded, should be passed through to
> > audio out. If not, there is such a mux chip involved.
> >
> [snip]
> 
> 
> 
> Well, I haven't managed to get sound from Audio In connector, it's  
> possible however that I'm doing something wrong. I tried selecting in  
> tvtime both Composite and S-Video, and I've tried using SoX:
> console$> ls /dev/dsp*
> dsp dsp1
> console$> sox -c 2 -s -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -r 32000  
> /dev/dsp &
> 
> for both .amux = LINE1 and LINE2 in saa7134-cards.c source file.
> 
> 
> 
> 
> RegSpy log:
> 
> I have used RegSpy that comes with DScaler version 4.1.15. I'm hoping that  
> they are of some use for both Analog television and Audio In.
> 
> I have found out values crucial to changing inputs for both audio and  
> video. Note that SAA7134_GPIO_GPSTATUS keeps changing all the time between  
> 84ff00 and 94bf00 nevertheless of the device status.
> 
> I have used VirtualDub (v1.7.7) as capturing application because it gives  
> more control on input selecting (I can change audio input, not depending  
> on video). From that I manage to distinguish values changing between video  
> and audio.
> 
> The crucial value for video seems to be SAA7134_ANALOG_IN_CTRL1 while for  
> audio seems to be values SAA7133_AUDIO_CLOCK_NOMINAL and  
> SAA7133_PLL_CONTROL.
> 
> Changes: State 0 -> State 1: *****************************(Switch: Analog  
> TV -> Composite)
> SAA7134_GPIO_GPSTATUS:           0094ff00 -> 0494ff00  (-----0-- --------  
> -------- --------)
> SAA7134_ANALOG_IN_CTRL1:         83       -> 81        (------1-)
> SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7 -> 43187de7  (-0------ --------  
> -------- --------)
> SAA7133_PLL_CONTROL:             03       -> 43        (-0------)
> 
> Changes: State 1 -> State 2: *****************************(Switch:  
> Composite -> S-Video)
> SAA7134_GPIO_GPSTATUS:           0494ff00 -> 0284ff00  (-----10- ---1----  
> -------- --------)
> SAA7134_ANALOG_IN_CTRL1:         81       -> 88        (----0--1)
> 
> Changes: State 2 -> State 3: ***(Switch: Audio Source -> Audio Tuner  
> (Still in S-Video mode))
> SAA7134_GPIO_GPSTATUS:           0284ff00 -> 0294ff00  (-------- ---0----  
> -------- --------)
> SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7 -> 03187de7  (-1------ --------  
> -------- --------)  (same as 0)
> SAA7133_PLL_CONTROL:             43       -> 03         
> (-1------)                             (same as 0)
> 
> Changes: State 3 -> State 4: ******(Switch: Audio Source -> Audio Line  
> (Still in S-Video mode))
> SAA7134_GPIO_GPSTATUS:           0294ff00 -> 0484ff00  (-----01- ---1----  
> -------- --------)
> SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7 -> 43187de7  (-0------ --------  
> -------- --------)  (same as 1, 2)
> SAA7133_PLL_CONTROL:             03       -> 43         
> (-0------)                             (same as 1, 2)
> 
> (full log: http://pastebin.com/f5f8e6184)

Hi Samuel,

the above link still gives error not found.

For an external audio mux it is always a single gpio pin for that.

It is some same pin in the same state for composite and s-video,
but different for TV mode.

The above seems not to show such a pattern.

Also you missed to print GPIO_GPMODE, which is the gpio mask.
In that, pins actively used for switching are high, but m$ drivers do
often also have for that specific card unrelated pins high.

Gpio 8 to 15 are the remote gpios and gpio18 should be the key
press/release.

The rest above seems not to be consistent for what we are searching for.

If you get some time again, do a cold boot and dump the gpio mode and
state before any application did use the card.

Then dump analog TV, composite and s-video and anything else you can
test. The GPMODE and the GPSTATUS on top of any mode used is what is
really interesting.

It also prints the state of all gpios for each mode in binary, so if you
manually mark the states you used, one can just copy and paste line by
line and see the changing pins.

As said, it should be a pin in the mask/GPMODE being the same for
composite and s-video, but different for analog TV. Maybe better use the
Compro software to get the logs.

Cheers,
Hermann


--
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
Samuel Rakitnican July 18, 2009, 10:40 a.m. UTC | #5
Hi,

On Sat, 18 Jul 2009 02:58:56 +0200, hermann pitton  
<hermann-pitton@arcor.de> wrote:

>> (full log: http://pastebin.com/f5f8e6184)
>
> Hi Samuel,
>
> the above link still gives error not found.
>

Strange, because to me works just fine. I'm going to add it directly as an  
email attachement this time.

> For an external audio mux it is always a single gpio pin for that.
>
> It is some same pin in the same state for composite and s-video,
> but different for TV mode.
>
> The above seems not to show such a pattern.
>
> Also you missed to print GPIO_GPMODE, which is the gpio mask.
> In that, pins actively used for switching are high, but m$ drivers do
> often also have for that specific card unrelated pins high.
>
> Gpio 8 to 15 are the remote gpios and gpio18 should be the key
> press/release.
>
> The rest above seems not to be consistent for what we are searching for.
>
> If you get some time again, do a cold boot and dump the gpio mode and
> state before any application did use the card.
>
> Then dump analog TV, composite and s-video and anything else you can
> test. The GPMODE and the GPSTATUS on top of any mode used is what is
> really interesting.
>

As I mentioned before GPSTATUS keeps changing all the time (And I mean  
frequent, measurable in miliseconds), and it seems that it hasn't any  
connection between other values.

> It also prints the state of all gpios for each mode in binary, so if you
> manually mark the states you used, one can just copy and paste line by
> line and see the changing pins.
>
> As said, it should be a pin in the mask/GPMODE being the same for
> composite and s-video, but different for analog TV. Maybe better use the
> Compro software to get the logs.
>

The mask/GPMODE doesn't change at all.

I have used Compro software this time.

> Cheers,
> Hermann
>
>


Regards
SAA7133 Card [0]:

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


11 states dumped

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

SAA7133 Card - State 0:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0284ff00 * (00000010 10000100 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 0 -> State 1: *****(Cold boot, nothing runs GPSTATUS keeps changing)
SAA7134_GPIO_GPSTATUS:           0284ff00 -> 0694ff00  (-----0-- ---0---- -------- --------)  

1 changes


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

SAA7133 Card - State 1:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0694ff00 * (00000110 10010100 11111111 00000000)  (was: 0284ff00)
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 1 -> State 2: *****(Nothing runs)
SAA7134_GPIO_GPSTATUS:           0694ff00 -> 0294ff00  (-----1-- -------- -------- --------)  

1 changes


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

SAA7133 Card - State 2:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0294ff00 * (00000010 10010100 11111111 00000000)  (was: 0694ff00)
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 2 -> State 3: *****(Nothing runs)
SAA7134_GPIO_GPSTATUS:           0294ff00 -> 0084ff00  (------1- ---1---- -------- --------)  

1 changes


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

SAA7133 Card - State 3:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0084ff00 * (00000000 10000100 11111111 00000000)  (was: 0294ff00)
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: *****(Nothing runs)
SAA7134_GPIO_GPSTATUS:           0084ff00 -> 0494ff00  (-----0-- ---0---- -------- --------)  

1 changes


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

SAA7133 Card - State 4:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0494ff00 * (00000100 10010100 11111111 00000000)  (was: 0084ff00)
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: *****(Turning on win software shows analog tv)
SAA7134_GPIO_GPSTATUS:           0494ff00 -> 0884ff00  (----01-- ---1---- -------- --------)  
SAA7134_ANALOG_IN_CTRL1:         88       -> 83        (----1-00)                             

2 changes


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

SAA7133 Card - State 5:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0884ff00 * (00001000 10000100 11111111 00000000)  (was: 0494ff00)
SAA7134_ANALOG_IN_CTRL1:         83 *       (10000011)                             (was: 88)      
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: *****(Switch to Composite)
SAA7134_GPIO_GPSTATUS:           0884ff00 -> 0494ff00  (----10-- ---0---- -------- --------)  (same as 4)
SAA7134_ANALOG_IN_CTRL1:         83       -> 81        (------1-)                             
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7 -> 43187de7  (-0------ -------- -------- --------)  
SAA7133_PLL_CONTROL:             03       -> 43        (-0------)                             

4 changes


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

SAA7133 Card - State 6:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0494ff00 * (00000100 10010100 11111111 00000000)  (was: 0884ff00)
SAA7134_ANALOG_IN_CTRL1:         81 *       (10000001)                             (was: 83)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7   (01000011 00011000 01111101 11100111)  (was: 03187de7)
SAA7133_PLL_CONTROL:             43         (01000011)                             (was: 03)      
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: *****(Switch to S-Video)
SAA7134_GPIO_GPSTATUS:           0494ff00 -> 0084ff00  (-----1-- ---1---- -------- --------)  (same as 3)
SAA7134_ANALOG_IN_CTRL1:         81       -> 88        (----0--1)                             (same as 0, 1, 2, 3, 4)

2 changes


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

SAA7133 Card - State 7:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0084ff00 * (00000000 10000100 11111111 00000000)  (was: 0494ff00)
SAA7134_ANALOG_IN_CTRL1:         88         (10001000)                             (was: 81)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7   (01000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             43         (01000011)                                            
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: *****(Switch to DVB-T, I can't see DVB-T yet, so it's showing a black screen)
SAA7134_GPIO_GPSTATUS:           0084ff00 -> 0694ff00  (-----00- ---0---- -------- --------)  (same as 1)
SAA7134_TS_PARALLEL:             04       -> e4        (000-----)                             
SAA7134_TS_PARALLEL_SERIAL:      00       -> b9        (0-000--0)                             
SAA7134_TS_SERIAL0:              00       -> 40        (-0------)                             
SAA7134_TS_DMA0:                 00       -> 35        (--00-0-0)                             
SAA7134_TS_DMA1:                 00       -> 01        (-------0)                             

6 changes


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

SAA7133 Card - State 8:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0694ff00 * (00000110 10010100 11111111 00000000)  (was: 0084ff00)
SAA7134_ANALOG_IN_CTRL1:         88 *       (10001000)                                            
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7 * (01000011 00011000 01111101 11100111)                 
SAA7133_PLL_CONTROL:             43 *       (01000011)                                            
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:             e4 *       (11100100)                             (was: 04)      
SAA7134_TS_PARALLEL_SERIAL:      b9         (10111001)                             (was: 00)      
SAA7134_TS_SERIAL0:              40         (01000000)                             (was: 00)      
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 35         (00110101)                             (was: 00)      
SAA7134_TS_DMA1:                 01         (00000001)                             (was: 00)      
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 8 -> State 9: *****(Switch back to analog)
SAA7134_GPIO_GPSTATUS:           0694ff00 -> 0c84ff00  (----0-1- ---1---- -------- --------)  
SAA7134_ANALOG_IN_CTRL1:         88       -> 83        (----1-00)                             (same as 5)
SAA7133_AUDIO_CLOCK_NOMINAL:     43187de7 -> 03187de7  (-1------ -------- -------- --------)  (same as 0, 1, 2, 3, 4, 5)
SAA7133_PLL_CONTROL:             43       -> 03        (-1------)                             (same as 0, 1, 2, 3, 4, 5)
SAA7134_TS_PARALLEL:             e4       -> 64        (1-------)                             

5 changes


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

SAA7133 Card - State 9:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0c84ff00 * (00001100 10000100 11111111 00000000)  (was: 0694ff00)
SAA7134_ANALOG_IN_CTRL1:         83         (10000011)                             (was: 88)      
SAA7133_ANALOG_IO_SELECT:        02         (00000010)                                            
SAA7133_AUDIO_CLOCK_NOMINAL:     03187de7   (00000011 00011000 01111101 11100111)  (was: 43187de7)
SAA7133_PLL_CONTROL:             03         (00000011)                             (was: 43)      
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:             64         (01100100)                             (was: e4)      
SAA7134_TS_PARALLEL_SERIAL:      b9         (10111001)                                            
SAA7134_TS_SERIAL0:              40         (01000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 35         (00110101)                                            
SAA7134_TS_DMA1:                 01         (00000001)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            


Changes: State 9 -> Register Dump:
SAA7134_GPIO_GPSTATUS:           0c84ff00 -> 0e94ff00  (------0- ---0---- -------- --------)  

1 changes


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

SAA7133 Card - Register Dump:
SAA7134_GPIO_GPMODE:             8082c000   (10000000 10000010 11000000 00000000)                 
SAA7134_GPIO_GPSTATUS:           0e94ff00   (00001110 10010100 11111111 00000000)  (was: 0c84ff00)
SAA7134_ANALOG_IN_CTRL1:         83         (10000011)                                            
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:             64         (01100100)                                            
SAA7134_TS_PARALLEL_SERIAL:      b9         (10111001)                                            
SAA7134_TS_SERIAL0:              40         (01000000)                                            
SAA7134_TS_SERIAL1:              00         (00000000)                                            
SAA7134_TS_DMA0:                 35         (00110101)                                            
SAA7134_TS_DMA1:                 01         (00000001)                                            
SAA7134_TS_DMA2:                 00         (00000000)                                            
SAA7134_SPECIAL_MODE:            01         (00000001)                                            

end of dump
hermann pitton July 19, 2009, 11:16 p.m. UTC | #6
Hi Samuel,

Am Samstag, den 18.07.2009, 12:40 +0200 schrieb Samuel Rakitničan:
> Hi,
> 
> On Sat, 18 Jul 2009 02:58:56 +0200, hermann pitton  
> <hermann-pitton@arcor.de> wrote:
> 
> >> (full log: http://pastebin.com/f5f8e6184)
> >
> > Hi Samuel,
> >
> > the above link still gives error not found.
> >
> 
> Strange, because to me works just fine. I'm going to add it directly as an  
> email attachement this time.

oops, it was just that bracket in that link.

> > For an external audio mux it is always a single gpio pin for that.
> >
> > It is some same pin in the same state for composite and s-video,
> > but different for TV mode.
> >
> > The above seems not to show such a pattern.
> >
> > Also you missed to print GPIO_GPMODE, which is the gpio mask.
> > In that, pins actively used for switching are high, but m$ drivers do
> > often also have for that specific card unrelated pins high.
> >
> > Gpio 8 to 15 are the remote gpios and gpio18 should be the key
> > press/release.
> >
> > The rest above seems not to be consistent for what we are searching for.
> >
> > If you get some time again, do a cold boot and dump the gpio mode and
> > state before any application did use the card.
> >
> > Then dump analog TV, composite and s-video and anything else you can
> > test. The GPMODE and the GPSTATUS on top of any mode used is what is
> > really interesting.
> >
> 
> As I mentioned before GPSTATUS keeps changing all the time (And I mean  
> frequent, measurable in miliseconds), and it seems that it hasn't any  
> connection between other values.
> 
> > It also prints the state of all gpios for each mode in binary, so if you
> > manually mark the states you used, one can just copy and paste line by
> > line and see the changing pins.
> >
> > As said, it should be a pin in the mask/GPMODE being the same for
> > composite and s-video, but different for analog TV. Maybe better use the
> > Compro software to get the logs.
> >
> 
> The mask/GPMODE doesn't change at all.

That is at least good ;)
Mask changes have been seen previously too.

> I have used Compro software this time.

Looked at it yesterday, but for an external gpio driven amux it seems
not to have anything consistent.

gpio dumps with virtualdub

8082c000   (10000000 10000010 11000000 00000000) gpio_mask

0094ff00 * (00000000 10010100 11111111 00000000) TV
0494ff00 * (00000100 10010100 11111111 00000000) Composite
0284ff00 * (00000010 10000100 11111111 00000000) S-Video

0294ff00 * (00000010 10010100 11111111 00000000) audio tuner still in S-Video
0484ff00 * (00000100 10000100 11111111 00000000) audio line still in S-Video

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

gpio dumps with Compro software

8082c000   (10000000 10000010 11000000 00000000) gpio mask

0284ff00 * (00000010 10000100 11111111 00000000) nothing runs
0694ff00 * (00000110 10010100 11111111 00000000) nothing runs
0294ff00 * (00000010 10010100 11111111 00000000) nothing runs
0084ff00 * (00000000 10000100 11111111 00000000) nothing runs
0494ff00 * (00000100 10010100 11111111 00000000) nothing runs
0884ff00 * (00001000 10000100 11111111 00000000) analog TV
0494ff00 * (00000100 10010100 11111111 00000000) Composite
0084ff00 * (00000000 10000100 11111111 00000000) S-Video
0694ff00 * (00000110 10010100 11111111 00000000) DVB-T
0c84ff00 * (00001100 10000100 11111111 00000000) back to analog

For an gpio switch of an external amux, that pin would be high in the
mask for all what was seen previously. Nothing like that.

Eventually gpio-27 high could mean something for the tuner, but why it
should mean something when virtualdub works for the tuner without it?

I leave it to those more experienced.

Cheers,
Hermann






--
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
diff mbox

Patch

diff -r d277b05c41fe linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c	Sun Jul 12 11:04:15 2009 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c	Sun Jul 12 22:02:30 2009 +0200
@@ -4828,7 +4828,7 @@ 
 		.audio_clock    = 0x00187de7,
 		.tuner_type     = TUNER_XC2028,
 		.radio_type     = UNSET,
-		.tuner_addr	= ADDR_UNSET,
+		.tuner_addr	= 0x61,
 		.radio_addr	= ADDR_UNSET,
 		.inputs = {{
 			.name   = name_tv,
@@ -6380,6 +6380,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;
 	}