BT848A Resource Conflicts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm still battling to get this Boser HS878 Mini PCI card working with
bttv. There are resource conflicts but I can't seem to track them down.
I would appreciate if someone familar with BT878 could look at this info
and see if this card looks different than the other working BT878 cards
(mem etc). I have the insmod options set to verbose levels ... 

insmod bttv bttv_verbose=2 bttv_debug=1 irq_debug=1 tuner=4 radio=0 

There is no tuner, audio chip, or radio on this card, just a BT878A,
however, two bttv devices are appearing on the PCI bus. Immediately
after insmod of bttv, dmesg shows the following ... 

Linux video capture interface: v1.00
i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
bttv: driver version 0.7.83 loaded
bttv: using 2 buffers with 2080k (4160k total) for capture
bttv: Host bridge is Transmeta Corporation LongRun Northbridge
bttv: Bt8xx card found (0).
PCI: Found IRQ 7 for device 00:0f.0
PCI: Sharing IRQ 7 with 00:0f.1
bttv0: Bt878 (rev 17) at 00:0f.0, irq: 7, latency: 32, memory:
0xe2101000
bttv0: using: BT878( *** UNKNOWN/GENERIC **) [card=0,autodetected]
bttv0: irq loop=0 risc=0, bits: HSYNC OFLOW HLOCK* VPRES*   HLOC =>
yes   PRES => yes
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW HLOCK* VPRES*   HLOC
=> no   PRES => no
bttv0: irq loop=0 risc=0, bits: HSYNC OFLOW HLOCK* VPRES*   HLOC =>
yes   PRES => yes
bttv0: irq loop=0 risc=0, bits: FMTCHG* HSYNC OFLOW   NUML => 625
i2c-algo-bit.o: Adapter: bt848 #0 scl: 0  sda: 0 -- testing...
i2c-algo-bit.o: bt848 #0 seems to be busy.
bttv0: irq loop=0 risc=0, bits: HSYNC OFLOW HLOCK*   HLOC => no
i2c-core.o: driver i2c TV tuner driver registered.

Right off the hop it says that bt848 #0 seems to be BUSY. But I can see
no obvious conflicts. Here are all of the bttv related entries in the
proc filesystem.

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

/proc/interrupts
           CPU0       
  0:      32769          XT-PIC  timer
  1:       1001          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  7:          5          XT-PIC  bttv
 10:          0          XT-PIC  eth0
 14:       1227          XT-PIC  ide0
NMI:          0 
ERR:          0

/proc/pci 

Bus  0, device  15, function  0:
  Multimedia video controller: Brooktree Corporation Bt878 (rev 17).
    IRQ 7.
    Master Capable.  Latency=32.  Min Gnt=16.Max Lat=40.
    Prefetchable 32 bit memory at 0xe2101000 [0xe2101fff].
Bus  0, device  15, function  1:
  Multimedia controller: Brooktree Corporation Bt878 (rev 17).
    IRQ 7.
    Master Capable.  Latency=32.  Min Gnt=4.Max Lat=255.
    Prefetchable 32 bit memory at 0xe2102000 [0xe2102fff].

/proc/bus/pci

0078	109e036e	7	e2101008	00000000	00000000	00000000	00000000	00000000
00000000	00001000	00000000	00000000	00000000	00000000	00000000	00000000
bttv

0079	109e0878	7	e2102008	00000000	00000000	00000000	00000000	00000000
00000000	00001000	00000000	00000000	00000000	00000000	00000000	00000000	

/proc/iomem

e2101000-e2101fff : Brooktree Corporation Bt878
e2101000-e2101fff : bttv
e2102000-e2102fff : Brooktree Corporation Bt878

/proc/video/dev/vbi0 

name            : bttv vbi
type            : VID_TYPE_CAPTURE|VID_TYPE_TELETEXT
hardware        : 0x1

/proc/video/dev/video0

name            : BT878( *** UNKNOWN/GENERIC **)
type            :
VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_TELETEXT|VID_TYPE_OVERLAY
hardware        : 0x1

/proc/modules

tuner                   7920   0 (autoclean) (unused)
bttv                   57008   0 (unused)
i2c-algo-bit            6976   0 [bttv]
i2c-core               12544   0 [tuner bttv i2c-algo-bit]
videodev                4416   2 [bttv]

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

Testing a jpeg capture with streamer (from xawtv)

$ streamer -n ntsc -f jpeg capture.jpeg
files / video: JPEG (JFIF) audio: none
movie writer initialization failed

And dmesg shows ...

bttv0: open called
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW VPRES*   PRES => no
bttv0: irq loop=0 risc=0, bits: FMTCHG* VSYNC HSYNC OFLOW   NUML => 525
bttv0: cap vgrab: queue 0 (15:48x32)
bttv0: cap sync: sleep on 0
bttv0: irq loop=0 risc=8, bits: VSYNC HSYNC OFLOW RISCI*
bttv0: cap irq: capture 0 [start]
bttv0: irq loop=0 risc=2, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: cap irq: done 0
bttv0: cap sync: buffer 0, retval 0

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

Testing a jpeg capture with xawtv ...
(xawtv verbose loggong shows) 

v4l: getimage
ioctl: VIDEOCMCAPTURE(0,fmt=3,size=384x288): Device or resource busy

And dmesg shows

bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* FBUS PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* FBUS PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: clip: ro=0df70000 re=0df68000
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR
bttv0: irq loop=0 risc=0, bits: VSYNC HSYNC OFLOW RISCI* PPERR

And many more of the same error messages ...
Does anyone know what these messages mean?
Is this in IRQ problem?

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

There are two brooktree devices on the same IRQ but as I said there is
no audio chip on this card, this is bare bones, all I see is BT848A.
There is a 26 Mhz crystal on the card, and yet when I use the pll=2
insmod option, the image is snow, when I don't use that option the image
looks great (so this is not a problem with the graphics framebuffer ...)
There are two versions of this card, one without audio and one with an
ES1938/1946 (ESS Solo 1). This is the one without audio. It's the same
card but there is a blank spot for the audio chip on the back.

Are there other BT848A (Conexant Fusion) based cards working with bare
bones (ie no audio, tuner, or radio chips?) I wonder what is different
about this chip, or maybe it's the board's bus. I wonder if the BTTV
driver is expecting that second device to respond ... should the driver
be okay with just the BT848A and no other parts???

This is the capture card and main board I'm using. 

http://www.boser.com.tw/product/minipci/hs878.htm
http://www.boser.com.tw/product/cpucard/hs1600.htm

I have tested this with 2.2.20 and 2.4.18 and tweaked the BIOS and
kernel options every which way but loose. Running out of ideas. I wonder
about latency on the PCI bus because it's a VIA south bridge
(VT82C868A), and I know there have been VIA latency issues re IDE
drives.

Can anyone suggest any troubleshooting/debugging procedures to try and
determine why this card says its busy immediately upon bttv driver load?
I did grab one jpeg image successfully using the mvc program written by
Merlin Ma, but then all subseqent tries of any capture program failed
with these same errors.

  -- Doug





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux