Blame view

Documentation/dvb/README.dvb-usb 9.7 KB
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  Documentation for dvb-usb-framework module and its devices
  
  Idea behind the dvb-usb-framework
  =================================
  
  In March 2005 I got the new Twinhan USB2.0 DVB-T device. They provided specs and a firmware.
  
  Quite keen I wanted to put the driver (with some quirks of course) into dibusb.
  After reading some specs and doing some USB snooping, it realized, that the
  dibusb-driver would be a complete mess afterwards. So I decided to do it in a
  different way: With the help of a dvb-usb-framework.
  
  The framework provides generic functions (mostly kernel API calls), such as:
  
  - Transport Stream URB handling in conjunction with dvb-demux-feed-control
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
16
    (bulk and isoc are supported)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
17
18
19
20
  - registering the device for the DVB-API
  - registering an I2C-adapter if applicable
  - remote-control/input-device handling
  - firmware requesting and loading (currently just for the Cypress USB
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
21
    controllers)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
22
23
  - other functions/methods which can be shared by several drivers (such as
    functions for bulk-control-commands)
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
24
25
26
  - TODO: a I2C-chunker. It creates device-specific chunks of register-accesses
    depending on length of a register and the number of values that can be
    multi-written and multi-read.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  
  The source code of the particular DVB USB devices does just the communication
  with the device via the bus. The connection between the DVB-API-functionality
  is done via callbacks, assigned in a static device-description (struct
  dvb_usb_device) each device-driver has to have.
  
  For an example have a look in drivers/media/dvb/dvb-usb/vp7045*.
  
  Objective is to migrate all the usb-devices (dibusb, cinergyT2, maybe the
  ttusb; flexcop-usb already benefits from the generic flexcop-device) to use
  the dvb-usb-lib.
  
  TODO: dynamic enabling and disabling of the pid-filter in regard to number of
  feeds requested.
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
41
  Supported devices
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
42
  ========================
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
43
44
  See the LinuxTV DVB Wiki at www.linuxtv.org for a complete list of
  cards/drivers/firmwares:
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
45

82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
46
  http://www.linuxtv.org/wiki/index.php/DVB_USB
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
47
48
  
  0. History & News:
3352e432d   Patrick Boettcher   [PATCH] dvb: usb:...
49
    2005-06-30 - added support for WideView WT-220U (Thanks to Steve Chang)
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
50
    2005-05-30 - added basic isochronous support to the dvb-usb-framework
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
51
  	       added support for Conexant Hybrid reference design and Nebula DigiTV USB
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
52
53
54
55
    2005-04-17 - all dibusb devices ported to make use of the dvb-usb-framework
    2005-04-02 - re-enabled and improved remote control code.
    2005-03-31 - ported the Yakumo/Hama/Typhoon DVB-T USB2.0 device to dvb-usb.
    2005-03-30 - first commit of the dvb-usb-module based on the dibusb-source. First device is a new driver for the
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
56
  	       TwinhanDTV Alpha / MagicBox II USB2.0-only DVB-T device.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
57
58
59
60
61
62
63
64
  
    (change from dvb-dibusb to dvb-usb)
    2005-03-28 - added support for the AVerMedia AverTV DVB-T USB2.0 device (Thanks to Glen Harris and Jiun-Kuei Jung, AVerMedia)
    2005-03-14 - added support for the Typhoon/Yakumo/HAMA DVB-T mobile USB2.0
    2005-02-11 - added support for the KWorld/ADSTech Instant DVB-T USB2.0. Thanks a lot to Joachim von Caron
    2005-02-02 - added support for the Hauppauge Win-TV Nova-T USB2
    2005-01-31 - distorted streaming is gone for USB1.1 devices
    2005-01-13 - moved the mirrored pid_filter_table back to dvb-dibusb
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
65
66
  	     - first almost working version for HanfTek UMT-010
  	     - found out, that Yakumo/HAMA/Typhoon are predecessors of the HanfTek UMT-010
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
67
    2005-01-10 - refactoring completed, now everything is very delightful
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
68
69
  	     - tuner quirks for some weird devices (Artec T1 AN2235 device has sometimes a
  	       Panasonic Tuner assembled). Tunerprobing implemented. Thanks a lot to Gunnar Wittich.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
70
71
    2004-12-29 - after several days of struggling around bug of no returning URBs fixed.
    2004-12-26 - refactored the dibusb-driver, splitted into separate files
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
72
  	     - i2c-probing enabled
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
73
    2004-12-06 - possibility for demod i2c-address probing
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
74
  	     - new usb IDs (Compro, Artec)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
75
    2004-11-23 - merged changes from DiB3000MC_ver2.1
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
76
77
  	     - revised the debugging
  	     - possibility to deliver the complete TS for USB2.0
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
78
79
80
81
    2004-11-21 - first working version of the dib3000mc/p frontend driver.
    2004-11-12 - added additional remote control keys. Thanks to Uwe Hanke.
    2004-11-07 - added remote control support. Thanks to David Matthews.
    2004-11-05 - added support for a new devices (Grandtec/Avermedia/Artec)
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
82
83
84
85
  	     - merged my changes (for dib3000mb/dibusb) to the FE_REFACTORING, because it became HEAD
  	     - moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
  	       better settled there (added xfer_ops-struct)
  	     - created a common files for frontends (mc/p/mb)
af901ca18   André Goddard Rosa   tree-wide: fix as...
86
    2004-09-28 - added support for a new device (Unknown, vendor ID is Hyper-Paltek)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
87
    2004-09-20 - added support for a new device (Compro DVB-U2000), thanks
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
88
89
90
  	       to Amaury Demol for reporting
  	     - changed usb TS transfer method (several urbs, stopping transfer
  	       before setting a new pid)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
91
    2004-09-13 - added support for a new device (Artec T1 USB TVBOX), thanks
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
92
  	       to Christian Motschke for reporting
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
93
94
95
96
    2004-09-05 - released the dibusb device and dib3000mb-frontend driver
  
    (old news for vp7041.c)
    2004-07-15 - found out, by accident, that the device has a TUA6010XS for
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
97
  	       PLL
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
98
    2004-07-12 - figured out, that the driver should also work with the
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
99
  	       CTS Portable (Chinese Television System)
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
100
    2004-07-08 - firmware-extraction-2.422-problem solved, driver is now working
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
101
102
103
  	       properly with firmware extracted from 2.422
  	     - #if for 2.6.4 (dvb), compile issue
  	     - changed firmware handling, see vp7041.txt sec 1.1
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
104
105
    2004-07-02 - some tuner modifications, v0.1, cleanups, first public
    2004-06-28 - now using the dvb_dmx_swfilter_packets, everything
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
106
  	       runs fine now
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
107
    2004-06-27 - able to watch and switching channels (pre-alpha)
674434c69   Mauro Carvalho Chehab   [PATCH] V4L/DVB: ...
108
  	     - no section filtering yet
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
109
110
111
112
113
114
    2004-06-06 - first TS received, but kernel oops :/
    2004-05-14 - firmware loader is working
    2004-05-11 - start writing the driver
  
  1. How to use?
  1.1. Firmware
3352e432d   Patrick Boettcher   [PATCH] dvb: usb:...
115
116
  Most of the USB drivers need to download a firmware to the device before start
  working.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
117

3352e432d   Patrick Boettcher   [PATCH] dvb: usb:...
118
119
  Have a look at the Wikipage for the DVB-USB-drivers to find out, which firmware
  you need for your device:
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
120

3352e432d   Patrick Boettcher   [PATCH] dvb: usb:...
121
  http://www.linuxtv.org/wiki/index.php/DVB_USB
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
  
  1.2. Compiling
  
  Since the driver is in the linux kernel, activating the driver in
  your favorite config-environment should sufficient. I recommend
  to compile the driver as module. Hotplug does the rest.
  
  If you use dvb-kernel enter the build-2.6 directory run 'make' and 'insmod.sh
  load' afterwards.
  
  1.3. Loading the drivers
  
  Hotplug is able to load the driver, when it is needed (because you plugged
  in the device).
  
  If you want to enable debug output, you have to load the driver manually and
25985edce   Lucas De Marchi   Fix common misspe...
138
  from within the dvb-kernel cvs repository.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
  
  first have a look, which debug level are available:
  
  modinfo dvb-usb
  modinfo dvb-usb-vp7045
  etc.
  
  modprobe dvb-usb debug=<level>
  modprobe dvb-usb-vp7045 debug=<level>
  etc.
  
  should do the trick.
  
  When the driver is loaded successfully, the firmware file was in
  the right place and the device is connected, the "Power"-LED should be
  turned on.
  
  At this point you should be able to start a dvb-capable application. I'm use
  (t|s)zap, mplayer and dvbscan to test the basics. VDR-xine provides the
  long-term test scenario.
  
  2. Known problems and bugs
  
  - Don't remove the USB device while running an DVB application, your system
    will go crazy or die most likely.
  
  2.1. Adding support for devices
  
  TODO
  
  2.2. USB1.1 Bandwidth limitation
  
  A lot of the currently supported devices are USB1.1 and thus they have a
  maximum bandwidth of about 5-6 MBit/s when connected to a USB2.0 hub.
  This is not enough for receiving the complete transport stream of a
  DVB-T channel (which is about 16 MBit/s). Normally this is not a
  problem, if you only want to watch TV (this does not apply for HDTV),
  but watching a channel while recording another channel on the same
  frequency simply does not work very well. This applies to all USB1.1
  DVB-T devices, not just the dvb-usb-devices)
  
  The bug, where the TS is distorted by a heavy usage of the device is gone
  definitely. All dvb-usb-devices I was using (Twinhan, Kworld, DiBcom) are
  working like charm now with VDR. Sometimes I even was able to record a channel
  and watch another one.
  
  2.3. Comments
  
  Patches, comments and suggestions are very very welcome.
  
  3. Acknowledgements
     Amaury Demol (ademol@dibcom.fr) and Francois Kanounnikoff from DiBcom for
      providing specs, code and help, on which the dvb-dibusb, dib3000mb and
      dib3000mc are based.
  
     David Matthews for identifying a new device type (Artec T1 with AN2235)
      and for extending dibusb with remote control event handling. Thank you.
  
     Alex Woods for frequently answering question about usb and dvb
      stuff, a big thank you.
  
     Bernd Wagner for helping with huge bug reports and discussions.
  
     Gunnar Wittich and Joachim von Caron for their trust for providing
      root-shells on their machines to implement support for new devices.
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
204
205
     Allan Third and Michael Hutchinson for their help to write the Nebula
      digitv-driver.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
206
207
208
209
210
211
     Glen Harris for bringing up, that there is a new dibusb-device and Jiun-Kuei
      Jung from AVerMedia who kindly provided a special firmware to get the device
      up and running in Linux.
  
     Jennifer Chen, Jeff and Jack from Twinhan for kindly supporting by
  	writing the vp7045-driver.
3352e432d   Patrick Boettcher   [PATCH] dvb: usb:...
212
213
     Steve Chang from WideView for providing information for new devices and
  	firmware files.
2d188c68a   Patrick Boettcher   [PATCH] dvb: usb:...
214
215
216
     Michael Paxton for submitting remote control keymaps.
  
     Some guys on the linux-dvb mailing list for encouraging me.
776338e12   Johannes Stezenbach   [PATCH] dvb: Add ...
217
218
219
220
221
222
  
     Peter Schildmann >peter.schildmann-nospam-at-web.de< for his
      user-level firmware loader, which saves a lot of time
      (when writing the vp7041 driver)
  
     Ulf Hermenau for helping me out with traditional chinese.
be2a608bd   John Anthony Kazos Jr   documentation: co...
223
     André Smoktun and Christian Frömmel for supporting me with
82ff896c9   Patrick Boettcher   [PATCH] dvb: usb ...
224
      hardware and listening to my problems very patiently.