3 ## 16.5 Setting Up TV Cards
\r
5 ***Original contribution by Josef El-Rayes. Enhanced and adapted by Marc Fonvieille. ***
\r
7 ### 16.5.1 Introduction
\r
9 TV cards allow you to watch broadcast or cable TV on your computer. Most of them accept composite video via an RCA or S-video input and some of these cards come with a FM radio tuner.
\r
11 DragonFly provides support for PCI-based TV cards using a Brooktree Bt848/849/878/879 or a Conexant CN-878/Fusion 878a Video Capture Chip with the [bktr(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#bktr§ion4) driver. You must also ensure the board comes with a supported tuner, consult the [bktr(4)](http://leaf.dragonflybsd.org/cgi/web-man?command=bktr§ion=4) manual page for a list of supported tuners.
\r
13 ### 16.5.2 Adding the Driver
\r
15 To use your card, you will need to load the [bktr(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#bktr§ion4) driver, this can be done by adding the following line to the `/boot/loader.conf` file like this:
\r
21 Alternatively, you may statically compile the support for the TV card in your kernel, in that case add the following lines to your kernel configuration:
\r
30 These additional device drivers are necessary because of the card components being interconnected via an I2C bus. Then build and install a new kernel.
\r
32 Once the support was added to your system, you have to reboot your machine. During the boot process, your TV card should show up, like this:
\r
35 bktr0: <BrookTree 848A> mem 0xd7000000-0xd7000fff irq 10 at device 10.0 on pci0
\r
36 iicbb0: <I2C bit-banging driver on bti2c0
\r
37 iicbus0: <Philips I2C bus> on iicbb0 master-only
\r
38 iicbus1: <Philips I2C bus> on iicbb0 master-only>
\r
39 smbus0: <System Management Bus&> on bti2c0
\r
40 bktr0: Pinnacle/Miro TV, Philips SECAM tuner.
\r
43 Of course these messages can differ according to your hardware. However you should check if the tuner is correctly detected; it is still possible to override some of the detected parameters with [sysctl(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#sysctl§ion8) MIBs and kernel configuration file options. For example, if you want to force the tuner to a Philips SECAM tuner, you should add the following line to your kernel configuration file:
\r
46 options OVERRIDE_TUNER=6
\r
49 or you can directly use [sysctl(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#sysctl§ion8):
\r
52 # sysctl hw.bt848.tuner=6
\r
55 See the [bktr(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#bktr§ion4) manual page and the `/usr/src/sys/config/LINT` file for more details on the available options.
\r
57 ### 16.5.3 Useful Applications
\r
59 To use your TV card you need to install one of the following applications:
\r
62 * [multimedia/fxtv](http://pkgsrc.se/multimedia/fxtv) provides TV-in-a-window and image/audio/video capture capabilities.
\r
64 * [multimedia/xawtv](http://pkgsrc.se/multimedia/xawtv) is also a TV application, with the same features as **fxtv** .
\r
66 * [multimedia/alevt](http://pkgsrc.se/multimedia/alevt) decodes and displays Videotext/Teletext.
\r
68 * [audio/xmradio](http://pkgsrc.se/audio/xmradio), an application to use the FM radio tuner coming with some TV cards.
\r
70 More applications are available in the pkgsrcĀ® tree.
\r
72 ### 16.5.4 Troubleshooting
\r
74 If you encounter any problem with your TV card, you should check at first if the video capture chip and the tuner are really supported by the [bktr(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#bktr§ion4) driver and if you used the right configuration options. For more support and various questions about your TV card you may want to contact and use the archives of the [DragonFly User related mailing list](http://leaf.dragonflybsd.org/mailarchive/).
\r
79 CategoryHandbook-multimedia
\r