linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (no subject)
@ 2014-06-30 22:30 Vlăduţ Frăţiman
  2014-07-01  8:39 ` bt878A card with 16 inputs Daniel Glöckner
  0 siblings, 1 reply; 5+ messages in thread
From: Vlăduţ Frăţiman @ 2014-06-30 22:30 UTC (permalink / raw)
  To: linux-media

I have an capture card with two bt878A fusion chip and 16 imputs.
Linux don't recognize and cannot get to work. How can do to resolve that?
This is message from lspci (i put only for one decive)
12:0c.0 Multimedia video controller [0400]: Brooktree Corporation
Bt878 Video Capture [109e:036e] (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 132 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 22
Region 0: Memory at d0000000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
pcilib: sysfs_read_vpd: read failed: Connection timed out
Not readable
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: bttv

With regspy on indows i have this:
BT878 Card [0]:

Vendor ID:           0x109e
Device ID:           0x036e
Subsystem ID:        0x00000000

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

BT878 Card - Register Dump:
BT848_IFORM:                     49         (01001001)
BT848_FCNTR:                     54         (01010100)
BT848_PLL_F_LO:                  00         (00000000)
BT848_PLL_F_HI:                  00         (00000000)
BT848_PLL_XCI:                   00         (00000000)
BT848_TGCTRL:                    00         (00000000)
BT848_TDEC:                      00         (00000000)
BT848_E_CROP:                    12         (00010010)
BT848_O_CROP:                    12         (00010010)
BT848_E_VDELAY_LO:               1a         (00011010)
BT848_O_VDELAY_LO:               1a         (00011010)
BT848_E_VACTIVE_LO:              e0         (11100000)
BT848_O_VACTIVE_LO:              e0         (11100000)
BT848_E_HDELAY_LO:               82         (10000010)
BT848_O_HDELAY_LO:               82         (10000010)
BT848_E_HACTIVE_LO:              d0         (11010000)
BT848_O_HACTIVE_LO:              d0         (11010000)
BT848_E_HSCALE_HI:               00         (00000000)
BT848_O_HSCALE_HI:               00         (00000000)
BT848_E_HSCALE_LO:               c1         (11000001)
BT848_O_HSCALE_LO:               c1         (11000001)
BT848_BRIGHT:                    14         (00010100)
BT848_E_CONTROL:                 00         (00000000)
BT848_O_CONTROL:                 00         (00000000)
BT848_CONTRAST_LO:               cf         (11001111)
BT848_SAT_U_LO:                  fe         (11111110)
BT848_SAT_V_LO:                  db         (11011011)
BT848_HUE:                       00         (00000000)
BT848_E_SCLOOP:                  40         (01000000)
BT848_O_SCLOOP:                  40         (01000000)
BT848_WC_UP:                     cf         (11001111)
BT848_WC_DOWN:                   7f         (01111111)
BT848_VTOTAL_LO:                 00         (00000000)
BT848_VTOTAL_HI:                 00         (00000000)
BT848_DVSIF:                     00         (00000000)
BT848_OFORM:                     06         (00000110)
BT848_E_VSCALE_HI:               60         (01100000)
BT848_O_VSCALE_HI:               60         (01100000)
BT848_E_VSCALE_LO:               00         (00000000)
BT848_O_VSCALE_LO:               00         (00000000)
BT848_ADC:                       41         (01000001)
BT848_E_VTC:                     00         (00000000)
BT848_O_VTC:                     00         (00000000)
BT848_COLOR_FMT:                 44         (01000100)
BT848_COLOR_CTL:                 00         (00000000)
BT848_CAP_CTL:                   00         (00000000)
BT848_VBI_PACK_SIZE:             90         (10010000)
BT848_VBI_PACK_DEL:              01         (00000001)
BT848_INT_MASK:                  00000000   (00000000 00000000
00000000 00000000)
BT848_GPIO_OUT_EN:               0000b8ff   (00000000 00000000
10111000 11111111)
BT848_GPIO_OUT_EN_HIBYTE:        00000000   (00000000 00000000
00000000 00000000)
BT848_GPIO_DATA:                 00ffcd00   (00000000 11111111
11001101 00000000)
BT848_RISC_STRT_ADD:             00000000   (00000000 00000000
00000000 00000000)
BT848_GPIO_DMA_CTL:              00fc       (00000000 11111100)

end of dump

and with btspy:
### BtSpy Report ###

General information:
 Name:Broktree
 Chip: Bt878 , Rev: 0x00
 Subsystem: 0x00000000
 Vendor: Gammagraphx, Inc.
 Values to MUTE audio:
  Mute_GPOE  : 0x00b8ff
  Mute_GPDATA: 0x008803
 Has TV Tuner: No
 Number of Composite Ins: 2
  Composite in #1
   Composite1_Mux   : 2
   Composite1_GPOE  : 0x00b8ff
   Composite1_GPDATA: 0x008803
  Composite in #2
   Composite2_Mux   : 2
   Composite2_GPOE  : 0x00b8ff
   Composite2_GPDATA: 0x008803
 Has SVideo: Yes
  SVideo_Mux   : 2
  SVideo_GPOE  : 0x00b8ff
  SVideo_GPDATA: 0x008803
 Has Radio: No

I try't all card numbers when load bttv module but in the best case
only one camera i can see per device on channel 0 (using zoneminder).
Because is a tunerless card, probably my problem is to make tuner on
chip to work.
Any advice?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bt878A card with 16 inputs
  2014-06-30 22:30 Vlăduţ Frăţiman
@ 2014-07-01  8:39 ` Daniel Glöckner
  2014-07-01  9:03   ` Vlăduţ Frăţiman
  2014-07-01 18:30   ` Charlie X. Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Glöckner @ 2014-07-01  8:39 UTC (permalink / raw)
  To: Vlăduţ Frăţiman; +Cc: linux-media

Hi,

On Tue, Jul 01, 2014 at 01:30:55AM +0300, Vlăduţ Frăţiman wrote:
> I have an capture card with two bt878A fusion chip and 16 imputs.
> Linux don't recognize and cannot get to work. How can do to resolve that?

> With regspy on indows i have this:
> BT878 Card [0]:
> 
> Vendor ID:           0x109e
> Device ID:           0x036e
> Subsystem ID:        0x00000000

No Subsystem ID => no automatic recognition possible.


> I try't all card numbers when load bttv module but in the best case
> only one camera i can see per device on channel 0 (using zoneminder).
> Because is a tunerless card, probably my problem is to make tuner on
> chip to work.

What we need is most likely the GPIO output enable and data values
reported by regspy and btspy. They should differ for each input.

It also helps if you make a high resolution scan of both sides of the
card and put it online somewhere (don't send it to the list!).

  Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bt878A card with 16 inputs
  2014-07-01  8:39 ` bt878A card with 16 inputs Daniel Glöckner
@ 2014-07-01  9:03   ` Vlăduţ Frăţiman
  2014-07-01  9:56     ` Vlăduţ Frăţiman
  2014-07-01 18:30   ` Charlie X. Liu
  1 sibling, 1 reply; 5+ messages in thread
From: Vlăduţ Frăţiman @ 2014-07-01  9:03 UTC (permalink / raw)
  To: Vlăduţ Frăţiman, linux-media

Thanks for reply!
After few testings, best result right now is this:
modprobe bttv gbuffers=16 card=125,125 pll=1,1 bttv_gpio=1 radio=0,0
tuner=0,0 gpiomask=0x00b8ff
With this parameters, dmesg show this output:
[81622.722734] bttv: Bt8xx card found (0)
[81622.722749] bttv: 0: Bt878 (rev 17) at 0000:12:0c.0, irq: 22,
latency: 132, mmio: 0xd0000000
[81622.722762] bttv: 0: using: MATRIX Vision Sigma-SQ [card=125,insmod option]
[81622.722909] bttv: 0: tuner type=0
[81622.731506] bttv: 0: audio absent, no audio device found!
[81622.739205] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[81622.756024] bttv: PLL set ok
[81622.756090] bttv: 0: registered device video0
[81622.756133] bttv: 0: registered device vbi0
[81622.759232] bttv: Bt8xx card found (1)
[81622.759247] bttv: 1: Bt878 (rev 17) at 0000:12:0d.0, irq: 23,
latency: 132, mmio: 0xd0002000
[81622.759261] bttv: 1: using: MATRIX Vision Sigma-SQ [card=125,insmod option]
[81622.759430] bttv: 1: tuner type=0
[81622.768076] bttv: 1: audio absent, no audio device found!
[81622.775495] bttv: 1: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[81622.788014] bttv: PLL set ok
[81622.788078] bttv: 1: registered device video1
[81622.788574] bttv: 1: registered device vbi1

In zoneminder i can see each channel on both device but when config
two monitors on same device they look same output.
At this stage i don't know if is an bug from zoneminder (probably not)
or is something related to card driver.
This is my post on zoneminder forum:
http://www.zoneminder.com/forums/viewtopic.php?p=85049#p85049

So, from here, how can enable gpio output to get data values?
How can do an high resolution scan?
Sorry, i'm not very familiar with this subject but i want to help to
find an solution, and maybe an driver for this card.

Fratiman Vladut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bt878A card with 16 inputs
  2014-07-01  9:03   ` Vlăduţ Frăţiman
@ 2014-07-01  9:56     ` Vlăduţ Frăţiman
  0 siblings, 0 replies; 5+ messages in thread
From: Vlăduţ Frăţiman @ 2014-07-01  9:56 UTC (permalink / raw)
  To: Vlăduţ Frăţiman, linux-media

Sorry, after I write previous message, i found an settings in
zoneminder wich allow me to see multiple inputs on same device.
So now, my card work as expected! In fact i found two cards type that
work: 125 and 150.
But if is possibil to make something more specific to my card will be
nice to put on wiki!
What is unclear, why misssing from dmesg output any reference to gpio.
My card is something from Intotech Koreea.
Thanks!

Fratiman Vladut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: bt878A card with 16 inputs
  2014-07-01  8:39 ` bt878A card with 16 inputs Daniel Glöckner
  2014-07-01  9:03   ` Vlăduţ Frăţiman
@ 2014-07-01 18:30   ` Charlie X. Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Charlie X. Liu @ 2014-07-01 18:30 UTC (permalink / raw)
  To: 'Daniel Glöckner',
	'Vlăduţ Frăţiman'
  Cc: linux-media

Per: http://www.pcidatabase.com/vendor_details.php?id=542, it's "AVerMediaAverTV WDM AudioCapture (878)". 
Windows driver is at: http://www.mmnt.net/db/0/0/usftp.clevo.com.tw/888E/Optional . You would be able to get device info from there.


-----Original Message-----
From: linux-media-owner@vger.kernel.org [mailto:linux-media-owner@vger.kernel.org] On Behalf Of Daniel Glöckner
Sent: Tuesday, July 01, 2014 1:40 AM
To: Vlăduţ Frăţiman
Cc: linux-media@vger.kernel.org
Subject: Re: bt878A card with 16 inputs

Hi,

On Tue, Jul 01, 2014 at 01:30:55AM +0300, Vlăduţ Frăţiman wrote:
> I have an capture card with two bt878A fusion chip and 16 imputs.
> Linux don't recognize and cannot get to work. How can do to resolve that?

> With regspy on indows i have this:
> BT878 Card [0]:
> 
> Vendor ID:           0x109e
> Device ID:           0x036e
> Subsystem ID:        0x00000000

No Subsystem ID => no automatic recognition possible.


> I try't all card numbers when load bttv module but in the best case 
> only one camera i can see per device on channel 0 (using zoneminder).
> Because is a tunerless card, probably my problem is to make tuner on 
> chip to work.

What we need is most likely the GPIO output enable and data values reported by regspy and btspy. They should differ for each input.

It also helps if you make a high resolution scan of both sides of the card and put it online somewhere (don't send it to the list!).

  Daniel
--
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-01 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-30 22:30 Vlăduţ Frăţiman
2014-07-01  8:39 ` bt878A card with 16 inputs Daniel Glöckner
2014-07-01  9:03   ` Vlăduţ Frăţiman
2014-07-01  9:56     ` Vlăduţ Frăţiman
2014-07-01 18:30   ` Charlie X. Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).