Leadtek WinFast 2000: Difference between revisions
(GPIO table) |
m (fixed link) |
||
Line 85: | Line 85: | ||
<br> |
<br> |
||
==Getting sound from the sound card== |
==Getting 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. |
It is unknown if the [[btaudio (878)|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== |
==Setting up the remote== |
Revision as of 18:53, 25 August 2007
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 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. On recent kernels up to at least 2.6.17 the module ir_kbd_gpio is not needed anymore. However, you will need to apply this patch. Otherwise this card will not work unfortunately.
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
GPIO pin table
The General Purpose I/O pins have the following functions on the Winfast 2000 XP Global card:
GPIO Pin Description 1-0 Driver used 2 Mute 7-3 remote control code from PIC 8 remote control pulse sent 9 FM id 0: No FM tuner 1: FM tuner present 11-10 remote control code from PIC 12 Xceive tuner reset: active low 14 remote id 0: disabled remote control 1: enabled remote control 15 Tuner id 0: reserved 1: xceive xc2028 18 select SIF to 88x 0: FM audio 1: TV audio 19 select audio output line 0: TV/FM audio 1: Line in audio 22 0: remote bootup 1: no remote bootup 23 driver used. default -1
The table was posted by Alex Deucher to the v4l mailing list in April 2007.