Date: Mon, 20 Sep 1999 15:33:27 +1200 From: "Craig Harding" <crh@outpost.co.nz> To: multimedia@freebsd.org Subject: Picture problems with Dynalink BT878 card with FreeBSD 3.2 Message-ID: <19990920033337.1FB9214A07@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
I've got a BT878 based tuner card I'm trying to get working with FreeBSD, and I'm hoping someone can give me some pointers as to what needs to be done to enable the bktr driver to speak nicely to this card. The card is labelled on the box as a "Magic TView +FM" by "MagicXpress" but is distributed in Australia and NZ by Dynalink (the modem people). It's a PAL card, and uses the BT878 and Philips FM1216 tuner. The model number is CPH051, they make a CPH061 without the FM radio. I'm wanting to use it as a video input source for a web camera, I'm not too worried about the clever tuner and FM radio functions at this point. As well as FXTV I've been playing with the grab.c program referenced at http://vulture.dmem.strath.ac.uk/bt848/. The problem is that the video displays as if the card is trying to read the signal as NTSC, even when I've tried everything to tell the driver to use PAL. You can see an example of the output of grab.c (converted from PPM to a JPG) at http://www.outpost.co.nz/output2.jpg and as you'll see it's quite a systematic corruption, as if something's getting the wrong line length. The image appears much the same in FXTV. Playing with FXTV, some operations (such as clicking the screen to zoom the image to 100%) will freeze the computer hard or reboot it. I can't get a clean picture on any of the input format options, but the picture is garbled differently in NTSC format than in PAL. I've tried all the various methods of hardcoding PAL operation into the driver (sysctl variable, defined constants in brooktree848.c including OVERRIDE_TUNER and OVERRIDE_CARD) but nothing has changed the output at all. I'm very keen to get this card working and I'm willing to do the legwork necessary to get the driver to talk to the card if someone could point me in the appropriate directions - I've always considered device drivers deep voodoo and never played with them. I've included the output of fxtv -debug startup below, don't be too alarmed at the comments about the X server not being local, I was just using a server on another machine to get something useful out of FXTV without installing X on that box, I eventually relented and installed X anyway, which revealed that the picture appeared the same to FXTV as it did to grab. bash-2.03# fxtv -debug startup Fxtv v0.48 DETECTED CAPTURE CARD(S) [DRIVER PROBES]: bktr0: <BrookTree 878> rev 0x02 int a irq 9 on pci0.17.0 bti2c0: <bt848 Hard/Soft I2C controller> SYSCTL MIB VALUES: kern.version: FreeBSD 3.2-RELEASE #0: Thu Sep 16 21:49:39 NZST 1999 root@evil-smelling-bugger.outpost.co.nz:/usr/src/sys/compile/E VIL-SMELLING-BUGGER hw.bt848.card: -1 hw.bt848.tuner: -1 hw.bt848.reverse_mute: -1 hw.bt848.format: 0 TUNER SIGNATURE (0x01 - 0xff): 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 54 da bf bf fe 9a 07 28 5c 48 11 28 ea 00 00 00 00 00 00 00 01 00 00 00 70 6c 08 28 18 db bf bf bc c7 14 30 1f 33 07 08 0a 00 00 00 2f da bf bf 01 00 00 00 00 00 00 00 00 a4 08 28 9d a8 07 28 4f 97 04 08 03 85 07 28 70 6c 08 28 00 00 00 00 4c 0a 23 28 01 da bf bf ac da bf bf e5 9d 07 28 70 6c 08 28 ac da bf bf 55 9b 07 28 6c 79 07 28 TUNER I2C DEVICES FOUND AT: 0xa0, 0xc0 ioctl(BT848_REEPROM) failed: Input/output error CAPTURE CARD EEPROM CONTENTS: Read 0 EEPROM bytes Supported RGB Capture Pixel Formats: bpp Bpp RGB Masks Swap --- --- ---------------------------- ---- 15 2 00007c00, 000003e0, 0000001f NB 16 2 0000f800, 000007e0, 0000001f NB 24 3 00ff0000, 0000ff00, 000000ff B 24 4 00ff0000, 0000ff00, 000000ff NBWb Supported YUV Capture Pixel Formats: YUVSize HSamp VSamp Pack CompOrder T->B L->R YTrans ------- ----- ----- ------ --------- ---- ---- ------ 8,8,8 1,2,2 1,1,1 PLANAR YUV Y Y N 8,8,8 1,2,2 1,1,1 PACKED YUYV Y Y N 8,8,8 1,2,2 1,2,2 PLANAR YUV Y Y N open("/dev/mixer") failed XSERVER: 'Pexus Systems, Inc' v6000, Protocol Verson 11.0 Screen Res = 1024x719, DefDepth = 16; NumScreens = 1 Bitmap Unit/BitOrder/Pad = 8/MSBFirst/32, Image ByteOrder = LSBFirst Shm Extension not available...X Server isn't local. Rating Available Visuals: Rating Class bpp Bpp R,G,B Masks Swap DirectVid ------ ----------- --- --- ---------------------------- ---- --------- 0 DirectColor 16 2,2 0000f800, 000007e0, 0000001f -- No 4 TrueColor 16 2,2 0000f800, 000007e0, 0000001f -- No Default Visual is 16-bpp TrueColor XF86VidMode probably isn't enabled, if even available...X Server isn't local. Direct Video not supported by visual...using XImages -- Craig Harding crh@outpost.co.nz "I don't know about God, I Outpost Digital Media Ltd crh@inspire.net.nz just think we're handmade" http://www.outpost.co.nz ICQ# 26701833 - Polly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990920033337.1FB9214A07>