16 channel generic card, almost working...
Posted: Sun Sep 23, 2007 9:29 pm
Okay, I have a generic 16 channel 4 chip bt878a. I have 4 cameras connected to the card, although there are no markings which indicate which pigtail bnc corresponds to which video port. I have been able to get video only from /dev/video0(0). However, I also get the same video feed from /dev/video1(0) and /dev/video2(0) and /dev/video3(0). I am not sure where to go from here. I have attempted to change the card type to almost every card type available. type=77 seems to work the best. I will try to get a picture of the card and post it soon, until then here is dmesg, lspci and scanpci.
lspci:
Dmesg:
and of course scanpci
here is modprobe.d/bttv
using xawtv or tvtime I can only see the camera connected to /dev/video0(0), so I am at a loss now, any help will be appreciated.
Here is the link to the image of my card
Thank you
[EDIT By Cordel] Removed all the unneeded extra info from lspci and scanpci.
lspci:
ohnnylaww@HawkEye:/usr/share/zoneminder$ sudo lspci -vv
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
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 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 19
Region 0: Memory at d4000000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
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-
Interrupt: pin A routed to IRQ 19
Region 0: Memory at d4001000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
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 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 20
Region 0: Memory at d4002000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
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-
Interrupt: pin A routed to IRQ 20
Region 0: Memory at d4003000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
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 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 21
Region 0: Memory at d4004000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
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-
Interrupt: pin A routed to IRQ 21
Region 0: Memory at d4005000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
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 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 22
Region 0: Memory at d4006000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
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-
Interrupt: pin A routed to IRQ 22
Region 0: Memory at d4007000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Dmesg:
johnnylaww@HawkEye:/usr/share/zoneminder$ sudo dmesg | grep bttv
[ 41.460537] bttv: driver version 0.9.17 loaded
[ 41.460542] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 41.460609] bttv: Bt8xx card found (0).
[ 41.460658] bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 19, latency: 32, mmio: 0xd4000000
[ 41.460667] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.460701] bttv0: gpio: en=00000000, out=00000000 in=000fffff [init]
[ 41.525565] bttv0: using tuner=4
[ 41.525572] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.526043] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.526506] bttv0: i2c: checking for TDA9887 @ 0x86... not found
[ 41.585349] bttv0: registered device video0
[ 41.585380] bttv0: registered device vbi0
[ 41.585407] bttv0: PLL: 28636363 => 35468950 .ACPI: PCI Interrupt Link [APCJ] enabled at IRQ 22
[ 41.615938] bttv: Bt8xx card found (1).
[ 41.616211] bttv1: Bt878 (rev 17) at 0000:02:0d.0, irq: 20, latency: 32, mmio: 0xd4002000
[ 41.616230] bttv1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.616267] bttv1: gpio: en=00000000, out=00000000 in=009fffff [init]
[ 41.626234] bttv1: using tuner=4
[ 41.626238] bttv1: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.626711] bttv1: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.627174] bttv1: i2c: checking for TDA9887 @ 0x86... not found
[ 41.636593] bttv1: registered device video1
[ 41.636624] bttv1: registered device vbi1
[ 41.636651] bttv1: PLL: 28636363 => 35468950 .. ok
[ 41.667842] bttv: Bt8xx card found (2).
[ 41.668112] bttv2: Bt878 (rev 17) at 0000:02:0e.0, irq: 21, latency: 32, mmio: 0xd4004000
[ 41.668130] bttv2: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.668167] bttv2: gpio: en=00000000, out=00000000 in=002f7fff [init]
[ 41.678204] bttv2: using tuner=4
[ 41.678208] bttv2: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.678790] bttv2: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.679253] bttv2: i2c: checking for TDA9887 @ 0x86... not found
[ 41.688566] bttv2: registered device video2
[ 41.688608] bttv2: registered device vbi2
[ 41.688635] bttv2: PLL: 28636363 => 35468950 .. ok
[ 41.719753] bttv: Bt8xx card found (3).
[ 41.720025] bttv3: Bt878 (rev 17) at 0000:02:0f.0, irq: 22, latency: 32, mmio: 0xd4006000
[ 41.720042] bttv3: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.720078] bttv3: gpio: en=00000000, out=00000000 in=00bff5ff [init]
[ 41.730057] bttv3: using tuner=4
[ 41.730061] bttv3: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.730531] bttv3: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.730994] bttv3: i2c: checking for TDA9887 @ 0x86... not found
[ 41.740522] bttv3: registered device video3
[ 41.740557] bttv3: registered device vbi3
[ 41.740584] bttv3: PLL: 28636363 => 35468950 .. ok
[ 62.437976] bttv0: PLL can sleep, using XTAL (28636363).
[ 1217.691655] bttv0: OCERR @ 37c4b014,bits: HSYNC OCERR*
[ 1348.751343] bttv1: PLL can sleep, using XTAL (28636363).
[ 1676.828831] bttv2: PLL can sleep, using XTAL (28636363).
[ 1737.315212] bttv3: PLL can sleep, using XTAL (28636363).
[ 2116.202546] bttv3: OCERR @ 37dd0014,bits: HSYNC OCERR*
and of course scanpci
johnnylaww@HawkEye:/usr/share/zoneminder$ sudo scanpci -vv
pci bus 0x0002 cardnum 0x0c function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4000008 addr 0xd4000000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0002 cardnum 0x0c function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4001008 addr 0xd4001000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0002 cardnum 0x0d function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4002008 addr 0xd4002000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x05
pci bus 0x0002 cardnum 0x0d function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4003008 addr 0xd4003000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x05
pci bus 0x0002 cardnum 0x0e function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4004008 addr 0xd4004000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0002 cardnum 0x0e function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4005008 addr 0xd4005000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x0b
pci bus 0x0002 cardnum 0x0f function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4006008 addr 0xd4006000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x05
pci bus 0x0002 cardnum 0x0f function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4007008 addr 0xd4007000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x05
here is modprobe.d/bttv
options bttv card=77,77,77,77 tuner=4,4,4,4
using xawtv or tvtime I can only see the camera connected to /dev/video0(0), so I am at a loss now, any help will be appreciated.
Here is the link to the image of my card
Thank you
[EDIT By Cordel] Removed all the unneeded extra info from lspci and scanpci.