Undo part of the last commit. OBJFORMAT_PATH controls how the cross
[dragonfly.git] / share / man / man4 / bktr.4
1 .\"
2 .\" $FreeBSD: src/share/man/man4/bktr.4,v 1.9.2.9 2002/03/29 09:55:39 schweikh Exp $
3 .\" $DragonFly: src/share/man/man4/bktr.4,v 1.3 2003/09/07 17:04:00 hmp Exp $
4 .\"
5 .Dd January 28, 1998
6 .Dt BKTR 4
7 .Os
8 .Sh NAME
9 .Nm brooktree
10 .Nd video capture driver
11 .Sh SYNOPSIS
12 .Cd device bktr
13 .Pp
14 .Cd device iicbus
15 .Cd device iicbb
16 .Cd device smbus
17 .Sh DESCRIPTION
18 The
19 .Nm bktr
20 driver provides support for PCI
21 .Em video
22 capture and
23 .Em VBI
24 capture on low cost, high performance boards.
25 The driver is based on the Matrox Meteor driver and uses the same API.
26 The bktr driver should support most video cards
27 based on the
28 .Em "Brooktree Bt848/849/878/879 Video Capture Chip" .
29 The driver also supports
30 .Em FM Radio
31 if the tuner supports it.
32 .Pp
33 Specifically, the following cards are known to work:
34 .Bd -unfilled -offset indent
35 .Em Hauppauge Wincast TV and WinTV/PCI
36 .Em STB TV PCI Television Tuner
37 .Em Miro PC TV
38 .Em Intel Smart Video Recorder III
39 .Em AverMedia cards
40 .Em Video Highway XTreme
41 .Em VideoLogic Captivator PCI
42 .Ed
43 .Pp
44 The driver currently supports the following features:
45 .Bd -unfilled -offset indent
46 PCI to PCI dma transfer
47 clipping
48 yuv
49 rgb16
50 rgb24
51 rgb32
52 .Ed
53 .Pp
54 On these cards, tuners and other components are interconnected with an I2C bus.
55 The Brooktree848 chips act as a master device on the bus to control them.
56 Therefore,
57 .Xr iicbus 4 ,
58 .Xr iicbb 4
59 and
60 .Xr smbus 4
61 controller declarations are mandatory to activate bktr support.
62 .Pp
63 The following kernel parameters may be used to further configure the driver:
64 .Pp
65 .Em options "BROOKTREE_ALLOC_PAGES=xxx"
66 specifies the number of contiguous pages to allocate when successfully
67 probed.
68 The default number of pages allocated by the kernel is 216.
69 This means that there are (216*4096) bytes available for use.
70 .Bd -unfilled
71 .Em options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
72 .Em options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC
73 .Ed
74 One of these options can be used to set the default video format for the driver.
75 This fixed random hangs and lockups with the VideoLogic Captivator PCI card.
76 .Pp
77 The following sysctls may be used to further configure the driver:
78 .Pp
79 .Em sysctl hw.bt848.card=nnnn
80 This can be used to override the card make which was detected at boot time.
81 .Ql nnnn
82 is set to an integer from 1 to 13 taken from the following table:
83 .Pp
84 .Bl -tag -compact -width 22n
85 .It MIRO
86 1
87 .It HAUPPAUGE
88 2
89 .It STB
90 3
91 .It INTEL
92 4
93 .It IMS_TURBO
94 5
95 .It AVER_MEDIA
96 6
97 .It OSPREY
98 7
99 .It NEC_PK
100 8
101 .It IO_GV
102 9
103 .It FLYVIDEO
104 10
105 .It ZOLTRIX
106 11
107 .It KISS
108 12
109 .It VIDEO_HIGHWAY_XTREME
110 13
111 .El
112 .Pp
113 .Em sysctl hw.bt848.tuner=nnnn
114 This can be used to override the tuner make which was detected at boot time.
115 .Ql nnnn
116 is set to an integer from 1 to 13 taken from the following table:
117 .Pp
118 .Bl -tag -compact -width 22n
119 .It NO_TUNER
120 0
121 .It TEMIC_NTSC
122 1
123 .It TEMIC_PAL
124 2
125 .It TEMIC_SECAM
126 3
127 .It PHILIPS_NTSC
128 4
129 .It PHILIPS_PAL
130 5
131 .It PHILIPS_SECAM
132 6
133 .It TEMIC_PALI
134 7
135 .It PHILIPS_PALI
136 8
137 .It PHILIPS_FR1236_NTSC
138 9       /* These have FM Radio support */
139 .It PHILIPS_FR1216_PAL
140 10      /* These have FM Radio support */
141 .It PHILIPS_FR1236_SECAM
142 11      /* These have FM Radio support */
143 .It ALPS_TSCH5
144 12
145 .It ALPS_TSBH1
146 13
147 .El
148 .Sh AUTHORS
149 .An -nosplit
150 This driver is based on the work of
151 .An Jim Lowe Aq james@miller.cs.uwm.edu ,
152 .An Mark Tinguely Aq tinguely@plains.nodak.edu ,
153 .An Amancio Hasty Aq hasty@star\-gate.com ,
154 .An Roger Hardiman Aq roger@FreeBSD.org
155 and a bunch of other people.
156 .Sh FILES
157 .Bl -tag -width /usr/share/examples/meteor -compact
158 .It Pa /usr/share/examples/meteor
159 Examples of what you can do with the (similarly designed) Meteor driver.
160 .It Pa /usr/ports/graphics/fxtv
161 A TV and Camera display program utilizing the bktr driver - requires that
162 .Em The X Window System
163 and
164 .Em The Ports Collection
165 also be installed.
166 .It Pa /usr/ports/misc/alevt
167 A program to capture and display Teletext (VideoText) pages - requires that
168 .Em The X Window System
169 and
170 .Em The Ports Collection
171 also be installed.
172 .It Pa /usr/ports/audio/xmradio
173 An FM Radio Tuner for cards which have an FM Radio tuner fitted. - requires that
174 .Em The X Window System
175 and
176 .Em The Ports Collection
177 also be installed.
178 It also requires
179 .Em Motif
180 or the
181 .Em lesstif
182 port.
183 .El
184 .Sh SEE ALSO
185 .Xr meteor 4
186 .Sh HISTORY
187 The
188 .Nm
189 driver first appeared in
190 .Fx 2.2 .