Page 1 of 2

saa7134 >8 channels

Posted: Wed Mar 19, 2008 5:35 pm
by liviud
Hello

I want to use 4 china boards with saa7x chipsets, so i have 16 channels.
everything ok, i tested this boards with ZM and it worked, but the problem appears when i need to use options, becouse when i try :

[root@atlantis usr]# modprobe saa7134 card=33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33
FATAL: Error inserting saa7134 (/lib/modules/2.6.24.3-12.fc8/kernel/drivers/media/video/saa7134/saa7134.ko): Invalid argument

dmesg:
card: can only take 8 arguments
saa7134: `33' invalid for parameter `card'

first 8 channels work, but the rest ... the same story:
saa7134[4]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]

any ideeas ?

Re: saa7134 >8 channels

Posted: Wed Mar 19, 2008 5:42 pm
by cordel
liviud wrote: FATAL: Error inserting saa7134 (/lib/modules/2.6.24.3-12.fc8/kernel/drivers/media/video/saa7134/saa7134.ko): Invalid argument

dmesg:
card: can only take 8 arguments
saa7134: `33' invalid for parameter `card'

first 8 channels work, but the rest ... the same story:
saa7134[4]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]

any ideeas ?
I'd say that it's a limit of either the driver and/or the chip.

Posted: Wed Mar 19, 2008 5:48 pm
by liviud
yea, i know that, but any ideea how to jump over that ?

Posted: Wed Mar 19, 2008 6:22 pm
by cordel
Sorry mate, I don't code driver stuff so I can't be of any use there.

problem solved

Posted: Wed Mar 19, 2008 10:15 pm
by liviud
For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help

Posted: Wed Mar 19, 2008 10:59 pm
by cordel
Yeah but the question remains, does it work, meaning can you get all the inputs functioning at once?
I am sure the cap was there for a reason, maybe for the old pci buss since it can't handle much. So what results are you getting?

Posted: Sun Mar 23, 2008 6:07 pm
by liviud
Yes is workin', i have video on all 16 inputs, i don't realy know why that limit is there but i see the same limit in bt* driver, and i think is the same limit in the driver.

PS. i've tested on nvidia and via moterboard's.

Posted: Sun Mar 23, 2008 10:46 pm
by cordel
What chipsets?
Certain chipsets from both manufactures have issues with at least bttv, so this would be useful to know.

Posted: Sat Mar 29, 2008 3:34 pm
by liviud
right now is workin' with saa7134, for bt* i will test soon

Posted: Sat Mar 29, 2008 7:46 pm
by cordel
No I mean mainboard chip sets. Sorry I was a bit vague. BT878 has issues with some Nvidia, SiS, and Via chipsets. Mostly around the earliy P4 release time frame.

Re: problem solved

Posted: Wed May 14, 2008 3:25 pm
by azir
liviud wrote:For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help
Thanks, that a helpful post mate. I have the same problem with 2 cards (8 ch and 4 ch) and now solved :)
this is my lspci:

Code: Select all

00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)
02:01.0 PCI bridge: Hint Corp HiNT HB4 PCI-PCI Bridge (PCI6150) (rev 04)
02:02.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 11)
02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
03:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:09.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0a.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0b.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0c.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0d.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0e.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
03:0f.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0c.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0d.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0e.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
04:0f.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)

Posted: Wed May 14, 2008 3:46 pm
by cordel
Glad to hear it :)
Still would be interested to hear how it performs though ;)

Posted: Thu May 15, 2008 12:37 am
by azir
It runs well anyway, but I'm quite unsatisfied with full 8 monitor in montage so I grouped into 2 groups, each 4 monitor ..

It runs Zoneminder-1.23.2 on Slackware-12, just run as server, no monitor, keyboard, mouse. Only run services required by zm and me :) I need ssh
cam settings:
func = modect
size = 320x240, RGB24
buffer = default
MaxFPS = AlarmMaxFPS = 12

Browser Firefox 2.0.0.4 w/ config:
network.http.pipelining = true
network.http.proxy.pipelining = true
network.http.pipelining.maxrequest = 32
network.http.max-connections-* = 32
network.http.max-persistent-connections-* = 32

cpu load
idle = 0.51
peak = 1.96
this post http://www.zoneminder.com/forums/viewtopic.php?t=6419 seems work for me

Posted: Thu May 15, 2008 12:43 am
by cordel
Thank you for posting back, sounds great ;)

Re: problem solved

Posted: Thu Mar 26, 2009 10:11 am
by foreverg
liviud wrote:For saa7134 chipset this problem can be solved in few steps

1. download kernel sources
2. edit drivers/media/video/saa7134/saa7134.h , search for
#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8
and change values in what you need
3. compile
4. reboot and play

i hoppe this will help
I'm having the same iusse making work two 8 chip saa7134 cards at the same time on ubuntu server..

Have anyone got a patch to solve that?