chinese 4x saa7130 card working with zoneminder

Post here to indicate any hardware you have used and which is known to work with ZoneMinder. Not for questions.
Post Reply
avdleun
Posts: 2
Joined: Sun Mar 26, 2006 1:42 pm

chinese 4x saa7130 card working with zoneminder

Post by avdleun »

just for info:
After strugling around , I got a chinese card with 4 x saa7130 chip working with ZoneMinder.
The card has no brand on it. It is only marked MADE IN CHINA and VER:2.2
It has 4 coax input connectors and no other (video or sound) connectors
There are 2 Xtals : 24.576 and 12.00 Mhz (small)
First tested with kernel 2.6.11-1.1369_FC4. The card was incorrectly recognized (Sabrent ?, don't remember it exactly anymore).
Because later kernels supports a lot more saa713x cards I upgraded to 2.6.15-1.1833_FC4. Then the card was not recognized and installed as type 0 (UNKNOWN/GENERIC). But ZoneMinder or xawtv could not understand the data.
Both kernels (dmesg) complained that there was no eprom installed, so it could not detect the type of the card.
2.6.15-1 supports about 82 different cards, so i tested until I found one working. The following scenario was used :
1. stop zm (on fedora : service zm stop)
2. rmmod saa7134 (remove current driver)
3. modprobe saa7134 card=n,n,n,n (Install new driver, n = cardtype)
4. start zm (on fedora : service zm start)
5. See if you get a picture ....if not back to 1

On all not working drivers, I got a grey scaled picture with horizontal lines (black, grey and white)

on number 33 : BINGO (33 = AVermedia DVD EZmaker).
I did not try any number above 33 as it is now working fine.

The following is now in modprobe.conf to make it permanent :
alias char-major-81 saa7134
options saa7134 card=33,33,33,33

Finally the output of dmesg:
Linux video capture interface: v1.00
saa7130/34: v4l2 driver version 0.2.14 loaded
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:04:0c.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
saa7130[0]: found at 0000:04:0c.0, rev: 1, irq: 11, latency: 64, mmio: 0xd7fffc00
saa7130[0]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
saa7130[0]: board init: gpio is 100ff
saa7130[0]: Huh, no eeprom present (err=-5)?
saa7130[0]: registered device video0 [v4l2]
saa7130[0]: registered device vbi0
ACPI: PCI Interrupt 0000:04:0d.0[A] -> Link [LNKC] -> GSI 3 (level, low) -> IRQ 3
saa7130[1]: found at 0000:04:0d.0, rev: 1, irq: 3, latency: 64, mmio: 0xd7fff800
saa7130[1]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
saa7130[1]: board init: gpio is 10000
saa7130[1]: Huh, no eeprom present (err=-5)?
saa7130[1]: registered device video1 [v4l2]
saa7130[1]: registered device vbi1
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
ACPI: PCI Interrupt 0000:04:0e.0[A] -> Link [LNKD] -> GSI 5 (level, low) -> IRQ 5
saa7130[2]: found at 0000:04:0e.0, rev: 1, irq: 5, latency: 64, mmio: 0xd7fff400
saa7130[2]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
saa7130[2]: board init: gpio is 10000
saa7130[2]: Huh, no eeprom present (err=-5)?
saa7130[2]: registered device video2 [v4l2]
saa7130[2]: registered device vbi2
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
ACPI: PCI Interrupt 0000:04:0f.0[A] -> Link [LNKE] -> GSI 11 (level, low) -> IRQ 11
saa7130[3]: found at 0000:04:0f.0, rev: 1, irq: 11, latency: 64, mmio: 0xd7fff000
saa7130[3]: subsystem: 1131:0000, board: AVerMedia DVD EZMaker [card=33,insmod option]
saa7130[3]: board init: gpio is 10000
saa7130[3]: Huh, no eeprom present (err=-5)?
saa7130[3]: registered device video3 [v4l2]
saa7130[3]: registered device vbi3


Hope somebody can do something with this info...

anton van der leun
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Excellent. Thanks for posting the results of your investigation.
Phil
tux
Posts: 55
Joined: Wed Mar 16, 2005 1:18 pm

Post by tux »

Could you put link for see these cards?
thanks
avdleun
Posts: 2
Joined: Sun Mar 26, 2006 1:42 pm

Post by avdleun »

Here is a picture of the card...
http://www.xs4all.nl/~avdleun/P3300011.JPG

The only thing I have not tested yet, is how it works if more then one camera is attached. I will test this asap and report results
nswint
Posts: 5
Joined: Mon Oct 16, 2006 4:47 pm
Location: Union City, GA, USA
Contact:

Post by nswint »

I purchased mine from Asian Wolf. Xawtv recognizes the card as only having a composite and S-video input when you force it to be the AVermedia DVD EZmaker. Is there anyway to get the updated bttv drivers. There are 120 cards listed on their Wiki. I only have 94.

picture Below

Image
nswint
Posts: 5
Joined: Mon Oct 16, 2006 4:47 pm
Location: Union City, GA, USA
Contact:

Post by nswint »

Some More Info

pci bus 0x0001 cardnum 0x02 function 0x00: vendor 0x1131 device 0x7130
Philips Semiconductors SAA7130 Video Broadcast Decoder
CardVendor 0x1131 card 0x0000 (Philips Semiconductors, Card unknown)
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x80 0x00 REVISION 0x01
BIST 0x00 HEADER 0x00 LATENCY 0x20 CACHE 0x00
BASE0 0xfdefd000 addr 0xfdefd000 MEM
MAX_LAT 0x26 MIN_GNT 0x0f INT_PIN 0x01 INT_LINE 0x0f
BYTE_0 0x01 BYTE_1 0x00 BYTE_2 0x01 BYTE_3 0x06



01:02.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
Subsystem: Philips Semiconductors Unknown device 0000
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (3750ns min, 9500ns max)
Interrupt: pin A routed to IRQ 177
Region 0: Memory at fdefd000 (32-bit, non-prefetchable)
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-


0x7133
Chip Number: Philips SAA7135HL
Chip Description: Multi Media Capture Device
Notes: TV Audio + Video decoder (model name of tv card) tun-900 please.
dusman
Posts: 12
Joined: Mon Aug 14, 2006 6:10 am

It Works

Post by dusman »

Hi there,

Thanks for the post; I have the same problem; the card saa7130 not able to detect correctly, so i try your method to reload the card until .. wow la.. the image displayed on the ZM screen...

Thanks a lot ..

i create a simple script to reload the drive as the following; hope it could help the reader to get faster

#!/bin/sh

default=33;

if [ $1 ]
then
default=$1
fi

echo $default

/opt/zm/bin/zmdc.pl shutdown
rmmod -f /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko; \
insmod /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko card
=$default,$default,$default,$default,$default,$default,$default,$default
nswint
Posts: 5
Joined: Mon Oct 16, 2006 4:47 pm
Location: Union City, GA, USA
Contact:

Re: It Works

Post by nswint »

dusman wrote:Hi there,

Thanks for the post; I have the same problem; the card saa7130 not able to detect correctly, so i try your method to reload the card until .. wow la.. the image displayed on the ZM screen...

Thanks a lot ..

i create a simple script to reload the drive as the following; hope it could help the reader to get faster

#!/bin/sh

default=33;

if [ $1 ]
then
default=$1
fi

echo $default

/opt/zm/bin/zmdc.pl shutdown
rmmod -f /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko; \
insmod /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko card
=$default,$default,$default,$default,$default,$default,$default,$default
Do you have all 4 inputs available?
dusman
Posts: 12
Joined: Mon Aug 14, 2006 6:10 am

Re: It Works

Post by dusman »

Yes, I have for input available;
nswint wrote:
dusman wrote:Hi there,

Thanks for the post; I have the same problem; the card saa7130 not able to detect correctly, so i try your method to reload the card until .. wow la.. the image displayed on the ZM screen...

Thanks a lot ..

i create a simple script to reload the drive as the following; hope it could help the reader to get faster

#!/bin/sh

default=33;

if [ $1 ]
then
default=$1
fi

echo $default

/opt/zm/bin/zmdc.pl shutdown
rmmod -f /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko; \
insmod /lib/modules/2.6.18.3/kernel/drivers/media/video/saa7134/saa7134.ko card
=$default,$default,$default,$default,$default,$default,$default,$default
Do you have all 4 inputs available?
nswint
Posts: 5
Joined: Mon Oct 16, 2006 4:47 pm
Location: Union City, GA, USA
Contact:

Post by nswint »

Bummer.. I only have one and the video is garbled on that one :(
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Your card is different from the original posters card. He has four SAA chips where you only have one so your card type my be different. You option in modprobe would also be different for a single chip should only have one option ie. card=33 and not card=33,33,33,33
nswint
Posts: 5
Joined: Mon Oct 16, 2006 4:47 pm
Location: Union City, GA, USA
Contact:

Post by nswint »

I forgot to update this card does work

Add this to modprobe.conf

options saa7134 card=65,65,65,65 tuner=54






==================
Linux video capture interface: v2.00
saa7130/34: v4l2 driver version 0.2.14 loaded
ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 19 (level, low) -> IRQ 18
saa7130[0]: found at 0000:02:01.0, rev: 1, irq: 18, latency: 96, mmio: 0xd5000000
saa7130[0]: subsystem: 1131:0000, board: V-Stream Studio TV Terminator [card=65,insmod option]
saa7130[0]: board init: gpio is c0f3fff
input: saa7134 IR (V-Stream Studio TV as /class/input/input7
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1b.0 to 64
hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...
saa7130[0]: Huh, no eeprom present (err=-5)?
saa7130[0]: registered device video0 [v4l2]
saa7130[0]: registered device vbi0
saa7130[0]: registered device radio0
mrezmu
Posts: 2
Joined: Sun Jul 30, 2006 5:06 am

works but

Post by mrezmu »

thanks
I have two chinese 4 port cards from a company called spidernet , Xenon SN-6004V 4channel H.264 DVR board
pic: http://www.spidernet.tv/surveillance/im ... d_6004.jpg
this works but I don't think its quite right

modprobe.conf:

alias char-major-81 saa7134
options saa7134 card=33,33,33,33,33,33,33,33 i2c_scan=1 video_nr=0,1

camera source links randomly go red and sometimes individual cams stop and have to reboot to get them back up
any suggestion's
thanks
sl666
Posts: 6
Joined: Mon Feb 25, 2008 12:11 am
Location: The land downunder.. where women glow and men chunder, can you hear? can you hear the thunder?

Post by sl666 »

Hi Guys,

I have a 4 input version of the saa7134 chipset card, but i have brute forced my way through the 108 versions that i could use but none work.

Is there any other avenues to explore?

Cheers Steve.
Dreded
Posts: 26
Joined: Fri Dec 03, 2010 1:33 am

Post by Dreded »

Ok I have also managed to get my hands on a Xenon SN-6004V card and cant seem to get it working under linux... has anyone else had success?
Post Reply