Subject: [Fwd: NetBSD WinTV help]
To: None <port-i386@netbsd.org>
From: Robert Anderson <robertoanderson@eaton.com>
List: port-i386
Date: 03/13/2002 08:07:14
I thought you might be able to quickly help me with my Hauppauge WinTV
card or steer me in a direction where I might find the answer.  The card
works with MSWindows '98 but with NetBSD and fxtv from the NetBSD
packages the screen is blank.

Below is dmesg ; fxtv -debug ; fxtv >& stuff

NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000
    fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (586-class)
total memory = 65152 KB
avail memory = 55272 KB
using 840 buffers containing 3360 KB of memory
BIOS32 rev. 0 found at 0xfb0d0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
(rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC34300L>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 4104 MB, 8896 cyl, 15 head, 63 sec, 512 bytes/sect x 8406720
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 1: <ATAPI CDROM, , V2.30> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 1
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:1): using PIO mode 0, DMA mode 1 (using DMA data
transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller
(PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge,
revision 0x01) at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 11 function 0: S3 ViRGE/DX (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev.
0x24)
ex0: interrupting at irq 9
ex0: MAC address 00:10:4b:9e:2e:86
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bktr0 at pci0 dev 15 function 0
bktr0: interrupting at irq 11
bktr0: Hauppauge Model 38101 B410
bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
Brooktree product 0x0878 (miscellaneous multimedia, revision 0x11) at
pci0 dev 15 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
ym0 at isapnp0 port 0x220/16,0x530/8,0x388/4,0x330/2,0x370/2 irq 5 drq
0,1
ym0: OPL3-SAX Sound Board : OPL3-SA3
audio0 at ym0: full duplex, mmap
opl0 at ym0: model OPL3
midi1 at opl0: OPL3-SA3 Yamaha OPL3
mpu0 at ym0
midi2 at mpu0: OPL3-SA3 MPU-401 MIDI UART
joy0 at isapnp0 port 0x201/1
joy0: OPL3-SAX Sound Board 
joy0: joystick not connected
biomask fd4d netmask ff4d ttymask ffcf
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0



Fxtv v1.02

DETECTED CAPTURE CARD(S) [DRIVER PROBES]:
    bktr0 at pci0 dev 15 function 0
    bktr0: interrupting at irq 11
    bktr0: Hauppauge Model 38101 B410
    bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c
    bktr0: ioctl: tsleep error 35 200001c

SYSCTL MIB VALUES:
    kern.version = NetBSD 1.5 (mobi) #1: Sun Feb 17 10:13:14 PST 2002
        omura@:/usr/src/sys/arch/i386/compile/mobi
    

TUNER SIGNATURE (0x01 - 0xff):
    00 00 00 00 00 00 00 00 00 00 01 00 02 00 00 00

TUNER I2C DEVICES FOUND AT:
    0xa0, 0xc2

CAPTURE CARD EEPROM CONTENTS:
   Read 256 EEPROM bytes (0x00 - 0xff)
    84 12 00 00 05 50 0e 7f 08 0a 01 d5 94 50 44 89
    00 00 00 00 00 84 0a 00 01 01 20 77 00 40 30 88
    1c 00 74 02 01 00 02 79 c2 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70
    84 12 00 00 05 50 0e 7f 08 0a 01 d5 94 50 44 89
    00 00 00 00 00 84 0a 00 01 01 20 77 00 40 30 88
    1c 00 74 02 01 00 02 79 c2 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70

SUPPORTED FREQUENCY SETS:
     1 nabcst
     2 cableirc
     3 cablehrc
     4 weurope
     5 jpnbcst
     6 jpncable
     7 xussr
     8 australia
     9 france

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


XSERVER: 'The XFree86 Project, Inc' v3360,  Protocol Verson 11.0
         Screen Res = 1280x1024, DefDepth = 8; NumScreens = 1
         Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder =
LSBFirst

XF86DGAQueryVersion() succeeded - vers = 1.01
   BaseAddr = 0xe0000000, Pitch = 1280, BankSize/RamSize =
2097152/2097152

Rating Available Visuals:
   Rating  Class        bpp  Bpp  R,G,B Masks                   Swap 
DirectVid
   ------  -----------  ---  ---  ----------------------------  ---- 
---------
     2     PseudoColor    8  1,1  00000000, 00000000, 00000000   --     
No 
     0     DirectColor    8  1,1  00000007, 00000038, 000000c0   --     
No 
     1     GrayScale      8  1,1  00000000, 00000000, 00000000   --     
No 
     0     StaticColor    8  1,1  00000007, 00000038, 000000c0   --     
No 
     0     TrueColor      8  1,1  00000007, 00000038, 000000c0   --     
No 
     0     StaticGray     8  1,1  00000000, 00000000, 00000000   --     
No 
Chosen Visual is 8-bpp PseudoColor

XF86VidModeQueryVersion() succeeded - version = 0.08



open("/dev/mixer") failed
Xlib:  extension "MIT-SHM" missing on display ":0.0".
Direct Video not supported by visual...using XImages


*******************************************




I noticed alot of ioctl tsleep errors, missing MIT-SHM, and no Direct
Video.  Also device 15 function 1 not configured.  Also uhci0 interrupt
is 11 which is same as bktr0.  How can I fix the BIOS assignment of
interrupts?
Any suggestions on how to get a picture on the screen?  I'm not an
expert and any help would be much appreciated.  I can compile kernels
without trouble if I know the proper configuration parameters.
It works with MSWindows '98 but I'd rather not use MSWindows even to
watch TV.

Regards,
Robert Anderson