Leadtek WinFast 2000

From LinuxTVWiki
Revision as of 18:40, 4 December 2006 by Stefantalpalaru (talk | contribs) (→‎Tuner Types)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Card 34 in the bttv cardlist works for a variety of Leadtek cards, including the Winfast 2000, Winfast TV2000 XP, Winfast 2000, Winfast TV2000 XP Deluxe edition, Winfast TV2000 XP RM and Winfast TV2000 XP FM. Most of them also have an IR remote built in.

Installing the card

This card shows up on the PCI bus as two devices, one for video capture and one for audio:

lspci:

0000:01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
0000:01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)

lspci -vn:

0000:01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
       Subsystem: LeadTek Research Inc.: Unknown device 6609
       Flags: bus master, medium devsel, latency 32, IRQ 12
       Memory at de000000 (32-bit, prefetchable)
       Capabilities: [44] Vital Product Data
       Capabilities: [4c] Power Management version 2
0000:01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
       Subsystem: LeadTek Research Inc.: Unknown device 6609
       Flags: bus master, medium devsel, latency 32, IRQ 12
       Memory at de001000 (32-bit, prefetchable)
       Capabilities: [44] Vital Product Data
       Capabilities: [4c] Power Management version 2

The card is recognized when the bttv module is loaded on boot; here's a typical dmesg log:

bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI Interrupt Link [LNK3] enabled at IRQ 5
ACPI: PCI interrupt 0000:01:06.0[A] -> GSI 5 (level, low) -> IRQ 5
bttv0: Bt878 (rev 17) at 0000:01:06.0, irq: 5, latency: 32, mmio: 0xde000000
bttv0: detected: Leadtek TV 2000 XP [card=34], PCI subsystem ID is 107d:6609
bttv0: using: Leadtek WinFast 2000/ WinFast 2000 XP [card=34,autodetected]
bttv0: using tuner=24
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
tuner: chip found at addr 0xc2 i2c-bus bt878 #0 [sw]
tuner: type set to 24 (Philips PAL/SECAM multi (FQ1216ME)) by bt878 #0 [sw]
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: add subdevice "remote0"
ir-kbd-gpio: bttv IR (card=34) detected at pci-0000:01:06.0/ir0

The second tuner line can also appear as one of:

tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by bt878 #0 [sw]
tuner: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by bt878 #0 [sw]
tuner: type set to 41 (Philips PAL_MK (FI1216 MK))


You may need to specify options to the bttv module in your /etc/modules.conf file. An example is:

options bttv tuner=24 card=34 lumafilter=1 combfilter=1 chroma_agc=1

Tuner Types

Number Type Countries
2 NTSC United States
3 SECAM+PAL_BG France
5 PAL default
24 PAL/SECAM multi South Africa
38 PAL Austria, Belgium (used for a Deluxe edition)
43 NTSC United States (newer cards)
56 PAL/SECAM multi Romania

Getting the sound from the sound card

It is unknown if the btaudio module works with this card. A patch cable from the tv card to the sound card does work. A patch cable from the tv card to the motherboard CD-in also works for those with onboard sound cards.

Setting up the remote

The notes below are for kernels <= 2.6.14. Status is unknown on kernels 2.6.15 and above.

On at least the Winfast TV2000 XP RM, the remote is detected as a standard input device. You do need to load the ir_kbd_gpio module. This can be done in your /etc/modules.conf as follows:

options bttv tuner=24 card=34 lumafilter=1 combfilter=1 chroma_agc=1
above bttv ir_kbd_gpio

Once the module is loaded, an entry should appear in /proc/bus/input/devices:

I: Bus=0001 Vendor=107d Product=6609 Version=0001
N: Name="bttv IR (card=34)"
P: Phys=pci-0000:01:06.0/ir0
H: Handlers=kbd event0
B: EV=100003
B: KEY=8fc736 2350000 0 0 0 10000 10000 190 40004801 1e0001 fff80 0 4002

You can point lircd to the new device by passing the following arguments to lircd:

-d /dev/input/event0 -H dev/input

Where the event number is the one reported above in /proc/bus/input/devices