public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: D <therealisttruest@gmail.com>
To: hermann pitton <hermann-pitton@arcor.de>
Cc: video4linux-list@redhat.com
Subject: Re: Help with Chinese card
Date: Sun, 20 Jul 2008 21:48:30 -0800	[thread overview]
Message-ID: <4884232E.8040803@gmail.com> (raw)
In-Reply-To: <1215459667.3762.35.camel@pc10.localdom.local>

hermann pitton wrote:
> Am Sonntag, den 06.07.2008, 17:10 -0800 schrieb D:
>   
>>> "garbled video" can mean lots of different things.
>>> Black and white only would be simplest, since indicating some wrong
>>> vmux.
>>>
>>>   
>>>       
>> When I added card 145, I did have one of the 8 cameras that are set up
>> showing grainy, black and white video with a very bad jitter to
>> it(this was using ntsc, not pal). This was with vmux=2 I believe. I
>> tried 0,1, and 3 as well just to see if it was a bit off, but only
>> ended up with black output. The other videos were black as well, even
>> though there should have been video in at least one or two others.
>>     
>>>>> [44494.080206] saa7134:   card=145 -> AOPVision AOP-8008A 16CH/240fps 
>>>>> Capture
>>>>> [44494.080210] saa7130[0]: subsystem: 1131:0000, board: 
>>>>> UNKNOWN/GENERIC [card=0,autodetected]
>>>>> [44494.080220] saa7130[0]: board init: gpio is c013ef0
>>>>>       
>>>>>           
>>> ^^^^^^^^^^^^^^^
>>>
>>> In such a case, this is the only indication if it might have been seen
>>> already previously. 
>>>
>>> If this is after a boot prior to mess around with other card entries or
>>> trying something yourself on gpios, it looks like this device was not
>>> seen yet then.
>>>
>>>   
>>>       
>>>>> [44494.807913] saa7134:   card=145 -> AOPVision AOP-8008A 16CH/240fps 
>>>>> Capture
>>>>> [44494.807917] saa7130[7]: subsystem: 1131:0000, board: 
>>>>> UNKNOWN/GENERIC [card=0,autodetected]
>>>>> [44494.807930] saa7130[7]: board init: gpio is 10000
>>>>>       
>>>>>           
>>> ^^^^^^^^^^              ^^^^^^^^^^^^^
>>> Seems to be still unique here.
>>>   
>>>       
>> As far as autodetection goes, when I originally started working on
>> this, it was card number 0, by default. What I did above to get it
>> back to that point was modprobe saa7134, without the 'card=' argument,
>> so that tells me it doesn't autodetect it correctly or recognize it.
>> As I said before card number 145 is my own, but it's not correct
>> either. Do you have any tips on what I can do next. I know this card
>> is not yet supported as is, but would like to get it working and
>> perhaps get support added to it for other users in the future.  My
>> idea was to change the gpio values, but it sounds like that could be a
>> problem unless I can find what the correct values are. Any ideas? I'm
>> willing to do what I can, but I need some guidance on this one.
>>
>>     
>
> A valid input for composite video is also vmux = 4 and is used by
> several manufactures. Higher vmux inputs are for s-video.
> For composite over s-video vmux = 0 is usually used.
>
> If you thing gpios are in use for some switching, regspy.exe might be
> your friend (DScaler - deinterlace.sf.net) to investigate the other
> driver and software.
>
> Still don't know which device it exactly is, but they seem to use a PLX
> PCI bridge. Identifying that device and getting the datasheet might give
> you some further hints too.
> http://www.plxtech.com
>
> Good Luck,
> Hermann
>
>
>
>
>   
It's been awhile and I've tried the different vmux settings with no 
luck. I did manage to get a card here locally and now I have one sitting 
in my machine as well. Before putting it in the Linux box, I put it in 
Windows and used RegSpy and got seven dumps, one for each recognized 
card( even though there is one card, it recognizes seven). I tried doing 
.gpio = ...... but not much success. Hopefully, by posting these dumps 
this will provide more info and hopefully more help. I also can't find 
much info on what the pci bridge is(or at least I think that's what I 
was trying to find). So I'll post the numbers I got off the card and 
hopefully they'll be familiar or at least easily identifiable by someone 
else.  Firstly, the model number on the card is LE-8008A, part number 
looks like 8008A0803008479. There are 8 chips with heat sinks(8 'cards') 
with 2 vga outs and 1 svideo out. The pci chip has a logo that as best 
as I can describe is the letter P with a lightning bolt through it. It 
does not look like the other PLX logos on the site you gave me nor like 
the ones on the site with the many, many other cards that include pics. 
The numbers on it are P17C, then below that 8150BMAE, then below that 
B0750BT. I've found nothing like that anywhere I've looked yet. Also, to 
answer a previous inquiry, I don't believe that there is a tuner on this 
thing as it is a card that is included in a security camera setup. 
Finally, probably the most important part is the RegSpy dumps. They are 
like this-----

Card 0
SAA7130 Card [0]:

Vendor ID:           0x1131
Device ID:           0x7130
Subsystem ID:        0x00001131


3 states dumped

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

SAA7130 Card - State 0:
SAA7134_GPIO_GPMODE:             00000000 * (00000000 00000000 00000000 
00000000)                
SAA7134_GPIO_GPSTATUS:           0c013ef0 * (00001100 00000001 00111110 
11110000)                
SAA7134_ANALOG_IN_CTRL1:         00 *       
(00000000)                                           
SAA7134_ANALOG_IO_SELECT:        00         
(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:        00         
(00000000)                                           
SAA7134_TS_PARALLEL:             6c         
(01101100)                                           
SAA7134_TS_PARALLEL_SERIAL:      bb         
(10111011)                                           
SAA7134_TS_SERIAL0:              50         
(01010000)                                           
SAA7134_TS_SERIAL1:              01         
(00000001)                                           
SAA7134_TS_DMA0:                 37         
(00110111)                                           
SAA7134_TS_DMA1:                 01         
(00000001)                                           
SAA7134_TS_DMA2:                 00         
(00000000)                                           
SAA7134_SPECIAL_MODE:            00         
(00000000)                                           


Changes: State 0 -> State 1:
SAA7134_GPIO_GPMODE:             00000000 -> 0c0e3c00  (----00-- 
----000- --0000-- --------) 
SAA7134_GPIO_GPSTATUS:           0c013ef0 -> 040dfef0  (----1--- 
----00-- 00------ --------) 
SAA7134_ANALOG_IN_CTRL1:         00       -> c2        
(00----0-)                            

3 changes


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

SAA7130 Card - State 1:
SAA7134_GPIO_GPMODE:             0c0e3c00   (00001100 00001110 00111100 
00000000)  (was: 00000000)
SAA7134_GPIO_GPSTATUS:           040dfef0   (00000100 00001101 11111110 
11110000)  (was: 0c013ef0)
SAA7134_ANALOG_IN_CTRL1:         c2         
(11000010)                             (was: 00)     
SAA7134_ANALOG_IO_SELECT:        00         
(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:        00         
(00000000)                                           
SAA7134_TS_PARALLEL:             6c         
(01101100)                                           
SAA7134_TS_PARALLEL_SERIAL:      bb         
(10111011)                                           
SAA7134_TS_SERIAL0:              50         
(01010000)                                           
SAA7134_TS_SERIAL1:              01         
(00000001)                                           
SAA7134_TS_DMA0:                 37         
(00110111)                                           
SAA7134_TS_DMA1:                 01         
(00000001)                                           
SAA7134_TS_DMA2:                 00         
(00000000)                                           
SAA7134_SPECIAL_MODE:            00         
(00000000)                                           


Changes: State 1 -> Register Dump:

0 changes


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

SAA7130 Card - Register Dump:
SAA7134_GPIO_GPMODE:             0c0e3c00   (00001100 00001110 00111100 
00000000)                
SAA7134_GPIO_GPSTATUS:           040dfef0   (00000100 00001101 11111110 
11110000)                
SAA7134_ANALOG_IN_CTRL1:         c2         
(11000010)                                           
SAA7134_ANALOG_IO_SELECT:        00         
(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:        00         
(00000000)                                           
SAA7134_TS_PARALLEL:             6c         
(01101100)                                           
SAA7134_TS_PARALLEL_SERIAL:      bb         
(10111011)                                           
SAA7134_TS_SERIAL0:              50         
(01010000)                                           
SAA7134_TS_SERIAL1:              01         
(00000001)                                           
SAA7134_TS_DMA0:                 37         
(00110111)                                           
SAA7134_TS_DMA1:                 01         
(00000001)                                           
SAA7134_TS_DMA2:                 00         
(00000000)                                           
SAA7134_SPECIAL_MODE:            00         
(00000000)                                           

end of dump

Cards 1,2,4,5,6, and 7 (3 is different for some odd reason)
SAA7130 Card [2]:

Vendor ID:           0x1131
Device ID:           0x7130
Subsystem ID:        0x00001131

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

SAA7130 Card - Register Dump:
SAA7134_GPIO_GPMODE:             000e3c00   (00000000 00001110 00111100 
00000000)                
SAA7134_GPIO_GPSTATUS:           000d0000   (00000000 00001101 00000000 
00000000)                
SAA7134_ANALOG_IN_CTRL1:         c2         
(11000010)                                           
SAA7134_ANALOG_IO_SELECT:        00         
(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:        00         
(00000000)                                           
SAA7134_TS_PARALLEL:             6c         
(01101100)                                           
SAA7134_TS_PARALLEL_SERIAL:      bb         
(10111011)                                           
SAA7134_TS_SERIAL0:              50         
(01010000)                                           
SAA7134_TS_SERIAL1:              01         
(00000001)                                           
SAA7134_TS_DMA0:                 37         
(00110111)                                           
SAA7134_TS_DMA1:                 01         
(00000001)                                           
SAA7134_TS_DMA2:                 00         
(00000000)                                           
SAA7134_SPECIAL_MODE:            00         
(00000000)                                           

end of dump

Card 3
SAA7130 Card [3]:

Vendor ID:           0x1131
Device ID:           0x7130
Subsystem ID:        0x00001131

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

SAA7130 Card - Register Dump:
SAA7134_GPIO_GPMODE:             000effff   (00000000 00001110 11111111 
11111111)                
SAA7134_GPIO_GPSTATUS:           000d1000   (00000000 00001101 00010000 
00000000)                
SAA7134_ANALOG_IN_CTRL1:         c2         
(11000010)                                           
SAA7134_ANALOG_IO_SELECT:        00         
(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:        00         
(00000000)                                           
SAA7134_TS_PARALLEL:             6c         
(01101100)                                           
SAA7134_TS_PARALLEL_SERIAL:      bb         
(10111011)                                           
SAA7134_TS_SERIAL0:              50         
(01010000)                                           
SAA7134_TS_SERIAL1:              01         
(00000001)                                           
SAA7134_TS_DMA0:                 37         
(00110111)                                           
SAA7134_TS_DMA1:                 01         
(00000001)                                           
SAA7134_TS_DMA2:                 00         
(00000000)                                           
SAA7134_SPECIAL_MODE:            00         
(00000000)                                           

end of dump


Hope this helps more as I'm still a bit lost at this point.

Thanks much
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

  reply	other threads:[~2008-07-21  5:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-05 22:10 Help with Chinese card D
2008-07-05 22:48 ` hermann pitton
2008-07-05 23:15   ` D
2008-07-06  1:00     ` D
2008-07-06 11:30       ` hermann pitton
2008-07-07  1:10         ` D
2008-07-07 19:41           ` hermann pitton
2008-07-21  5:48             ` D [this message]
2008-07-30  6:03               ` D

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=4884232E.8040803@gmail.com \
    --to=therealisttruest@gmail.com \
    --cc=hermann-pitton@arcor.de \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

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

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