File: howto.html

package info (click to toggle)
em8300 0.16.0-2
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 2,024 kB
  • ctags: 1,492
  • sloc: ansic: 11,554; sh: 3,849; perl: 1,353; makefile: 429
file content (644 lines) | stat: -rw-r--r-- 29,857 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<html>
<head>
<title>Linux DXR3 and Hollywood+ Driver</title>
<!-- HTML Copyright 2001 Paul Laufer -->
</head>

<body bgcolor=#ffffff link=#990033 vlink=#4a73ad alink=#ed004f text=#000000>

<!--header-->
<table align=center border=0 cellpadding=0 cellspacing=0 width=100%>
  <tr>
    <td align=center width=150 colspan=3><img border=0 src=images/dxr3logo.gif alt="Dxr3 Logo" width=124 height=92></td>
    <td><p align=center colspan=3><img src=images/logo.gif alt="DXR3 & Hollywood Plus Logo"></p></td>
  </tr>
<!-- end header -->
  <tr>
    <td bgcolor=#557faa colspan=2 valign=top align=left><img src=images/oul.gif width=8 height=8></td>
    <td bgcolor=#557faa colspan=3><font color=#ffffff size=+1><center>
<!-- Page Title -->
Linux DXR3 and Hollywood+ Driver Project Howto
<!-- End Page Title -->
    </center></font></td>
    <td bgcolor=#557faa valign=top align=right><img src=images/our.gif width=8 height=8></td>
  </tr>
  <tr>
    <td bgcolor=#557faa colspan=2>&nbsp;</td>
    <td bgcolor=#ffffff valign=top align=left><img src=images/iul.gif width=8 height=8></td>
    <td bgcolor=#ffffff>&nbsp;</td>
    <td bgcolor=#ffffff valign=top align=right><img src=images/iur.gif width=8 height=8></td>
    <td bgcolor=#557faa width=15>&nbsp;</td>
  </tr>
  <tr>
    <td width=8 bgcolor=#557faa>&nbsp;</td>
    <td valign=top bgcolor=#557faa link=#ffffff >

<!-- start navbar content -->

	<a href=index.html><font color=#ffffff>News</font></a><br>
	<a href=about.html><font color=#ffffff>About</font></a><br>
	<a href=faq.html><font color=#ffffff>FAQ</font></a><br>
	<a href=howto.html><font color=#ffffff>Howto</font></a><br>
	<a href=download.html><font color=#ffffff>Download</font></a><br>
	<a href=links.html><font color=#ffffff>Links</font></a><br>
	<a href=development.html><font color=#ffffff>Developers</font></a><br>
	<a href=http://sourceforge.net/project/?group_id=5165><font color=#ffffff>Project Page</font></a><br>

<!-- end navbar content -->

    </td>
    <td bgcolor=#ffffff>&nbsp;</td>
    <td valign=top>

<!-- start main window content -->

<font size=+2>DXR3 / Hollywood Plus HOWTO Table of Contents</font>
<ul>
    <li><a href=#pre>Prerequisites</a>
	<ul>
	<li><a href=#cardreq>Dxr3 or Hollywood Plus</a>
	<li><a href=#kernreq>Kernel 2.2 or newer</a>
	<li><a href=#i2creq>I2C Driver</a>
<!--		for 2.2 separate I2C driver -->
	<li><a href=#uxcodereq>rmquasar.vxd (H+) or enc2dev.vxd (dxr3)</a>
<!--		windows/system directory
		use newest version of driver
		can extract with msexpand.pl
-->
	<li><a href=#buildreq>Compiler and Related Tools</a>
	</ul>
    <li><a href=#getsource>Getting the Source</a>
	<ul>
	<li><a href=#getrel>Download Release</a>
	<li><a href=#getcvs>Source Via CVS</a>
	</ul>
    <li><a href=#compiling>Compiling the Modules</a>
	<ul>
	<li><a href=#compmake>Makefile settings</a>
	<li><a href=#mod2.2>If you have a 2.2 kernel</a>
	<li><a href=#mod2.4>Compiling</a>
	</ul>
    <li><a href=#createdev>Create Device Files</a>
	<ul>
	<li><a href=#creem8300>/dev/em8300*</a>
	</ul>
    <li><a href=#modldad>Loading the Kernel Modules</a>
	<ul>
	<li><a href=#modldm>ldm and rmm</a>
	<li><a href=#modparam>Module Parameters</a>
<!--		section about card types and register settings
		H+ cards: ADV
		Dxr3 cards: ADV or bt865
		bt865 vs adv717x settings
		set bt865=0/1 for bt cards.
		NOTE: must use activate_loopback=1 or VGA may go screwy.
		check adv717x.c and em8300.c for params, rb_swap for 7175 only,
		PALM and PAL60 for 7175 only at the moment. Fix if needed.
-->
	</ul>
    <li><a href=#microcode>All Things Microcode</a>
	<ul>
	<li><a href=#ucunc>Uncompressing</a>
	<li><a href=#ucext>Extracting</a>
	<li><a href=#ucload>Loading</a>
	<!-- Mention to test each microcode to find best one -->
	</ul>

    <li><a href=#play>Playing MPEG Streams and DVDs</a>
	<ul>
	<li><a href=#playcat>Playing MPEGs via /dev/em8300_mv-* and /dev/em8300_ma-*</a>
	<li><a href=#playxine>Using Xine to play DVDs</a>
<!--		Download xine from xine.sourceforge.net
		(see directions in em8300/xine)
-->
	<li><a href=#mplayer>Using MPlayer to play DVDs</a>
	<li><a href=#mplayer2>Using MPlayer to play DivX/RealVideo etc</a>
	<li><a href=#playoms>Using OMS to play DVDs</a>
<!--		Not guaranteed to work. Most our work being done on Xine lately because it is more stable.
		Download OMS and OMI release or from CVS
		(see directions in em8300/omsplugin)
-->
	</ul>

    <li><a href=#usefulprogs>Other Useful Programs</a>
	<ul>
	<li><a href=#progsdhc>DHC by Ze'ev Maor</a>
	</ul>

    <li><a href=#overlay>Using VGA Overlay Mode</a>
	<ul>
	<li><a href=#oversetup>Setting it up</a>
	<li><a href=#overprogs>dxr3view and autocal</a>
	</ul>

    <li><a href=#detboard>Identifying your Card</a>
	<ul>
	<li><a href=#detsigma>Sigma Designs Hollywood Plus Variants</a>
	<li><a href=#detcreat>Creative Labs Dxr3 Variants</a>
	</ul>

    <li><b><a href=#help>Getting Help</a></b>
	<ul>
	<li><a href=#helplist>Mailing List - Preferred Method</a>
	<li><a href=#helpirc>IRC Channel</a>
	<li><a href=#helpfora>Sourceforge Fora</a>
	</ul>
</ul>

<hr width=90%>

<h3><a name=pre>Prerequisites</a></h3>
	<ul>
	    <p>
	    As with any project there are some prerequisites. Besides the obvious like, needing a computer running a recent version of Linux, you will, for now, need some experience building packages from scratch. You will also have to be comfortable with a text editor. Yeah, you know what that means.
	    </p>
	    <li><a name=cardreq>Dxr3 or Hollywood Plus</a>
		<p>
		I hate to have to say it but before you can start watching DVDs and MPEG streams
		using this driver, you need to have either a Creative Labs DXR3 or a Sigma Designs
		Hollywood Plus hardware MPEG decoder card. If you have any other decoder card, this
		driver is of no help to you. But if you have a fast enough computer you can still
		watch MPEGs and DVDs on your monitor with one of the software viewers available.
		(Remember, this wouldn't be here if someone didn't ask . . . )
		</p>
	    <li><a name=kernreq>Kernel 2.2 or newer</a>
		<p>
		This driver will only work with Linux kernels version 2.2 and greater. If you are
		running a 2.0 kernel, well then this is the time to get brave and upgrade! (And if
		you are running 1.2 or 1.3 on modern hardware then you are either criminally insane
		or a masochist, but that is a different story). But then there is the question,
		does a computer old enough to be running a 2.0 kernel actually have enough power to
		play a DVD - even with a hardware decoder card? Anyway, you'll need the source tree,
		and you'll need to have run at least "make config" and "make dep" in that tree.
		</p>
	    <li><a name=i2creq>I2C Driver</a>
		<p>
		If you are running a 2.2 kernel, you need to install the I2C driver version 2.4.5 or
		newer! You can get the I2C driver for 2.2 kernels at the <a
		href=http://www2.lm-sensors.nu/~lm78/index.html>LM Sensors Homepage</a>. If you have
		a 2.4 kernel, then I2C comes with the kernel and you just need to make sure that it
		is compiled into the kernel or as a module. If you fail to do this, then your card
		will emit X-Rays from your TV and cook your DNA! Just kidding. In either case, just
		make sure that you have this I2C driver installed.
		</p>
	    <li><a name=uxcodereq>rmquasar.vxd (H+) or enc2dev.vxd (dxr3)
				(as of driver 0.12.0 this is optional and not recommended unless you
				have serious problems with the supplied microcode)</a>
		<p>
		You need the appropriate VxD from the Windows driver for your card. If you have a
		Creative Labs Dxr3, then you will have enc2dev.vxd and if you have a Hollywood Plus,
		then you'll have rmquasar.vxd. Easy enough. Now, you should be able to find these
		bad boys in you windows/system directory. If you don't have a windows/system
		directory because you don't have windows, then you can still get these guys. You
		just need to obtain the latest version of your card's drivers from the appropriate
		web site and unzip them. But wait, what the hell is that?!?! They only give us
		rmquasar.vx_ and enc2dev.vx_! Where is the 'd'?!? They shorted us a 'd'! No,
		actually, Microsoft, in their infinite corporate wisdom, long ago instituted the
		policy of compressing their driver files for distribution, which strangely enough
		are compressed again (as zips, cabs, self extracting exes, etc.) which just wastes
		cpu cycles. And, if you haven't noticed, compressing a file twice rarely yields any
		gain in compression. Now, since we are missing a 'd', note: a very special 'd', from
		our driver file, we need to replace it. Included with the em8300 driver distribution
		in the scripts directory is a perl program called msexpand.pl which, when run like
		"msexpand.pl rmquasar.vx_", will after some time make a new copy of the file, this
		time with the special 'd' replaced. Then you may continue.
		</p>
	    <li><a name=buildreq>Compiler and Related Tools</a>
		<p>
		You will need Perl and a C compiler.  If you're building from a
		CVS checkout, you'll need some GNU programs: automake and
		autoconf.  Those two also require GNU m4.  Also, bootstrapping
		a CVS checkout requires the development files for GTK+ 2.x
		(in particular, its m4 macros).  If you get errors later about
		missing header files or libraries, you'll have to install
		those as well.  Chances are that suitable versions are
		available in your distribution; if not, get them off the
		Internet.
		</p>
	</ul>

<h3><a name=getsource>Getting the Source</a></h3>
	<ul>
	    <p> There are currently two ways to get the source for this driver: by downloading a
	    'stable' release or by downloading the latest CVS. Depending on how old the last release
	    is, it may be best to try out the CVS.
	    </p>
	    <li><a name=getrel>Download a Release</a>
		<p>
		If you decide to try one of the <a href="/download">'stable' releases</a>, please note that as of yet none
		are really quite stable. They are more akin to Mozilla's milestones in that there are
		still many bugs to be worked out.
		</p>
	    <li><a name=getcvs>Source Via CVS</a>
		<p>
		#include &lt;stdcvswarning.h&gt;<br>
		Ok, yeah, you know CVS is often broken and unstable. Well, yeah, but we still need
		you guys to check out from CVS and report those bugs. So please do. Also, plugin
		updates for new releases of Xine and OMS are often available only on CVS for a long
		period of time, so you really shouldn't be too shy about trying a CVS checkout. It
		wont bite, I promise! Ok, the two steps to checking out the CVS are:
<br><br><font size=-1>
$ cvs -d :pserver:anonymous@cvs.dxr3.sourceforge.net:/cvsroot/dxr3 login<br>
CVS password: [Just press enter]<br>
$ cvs -d :pserver:anonymous@cvs.dxr3.sourceforge.net:/cvsroot/dxr3 -z3 co em8300<br>
</font><br>
		And that's it! You should have an em8300 directory under your current directory. In
		there you'll find all the goodies you'll need later on.
		</p>
	</ul>

<h3><a name=compiling>Compiling the Modules</a></h3>
	<ul>
	    <p>
	    Now we must compile the kernel modules and get them configured and loaded.
	    </p>
	    <li><a name=compmake>Makefile settings</a>
		<p>
		Ok, chdir to em8300/modules and open up the Makefile in your favorite editor. Now
		change KERNEL_LOCATION to wherever your current kernel source tree is, and make sure
		that you've at least run "make config ; make dep" in there. Now, change
		-DEM8300_VIDEOMODE_DEFAULT= to EM8300_VIDEOMODE_PAL, EM8300_VIDEOMODE_PAL60, or
		EM8300_VIDEOMODE_NTSC. If you live in the Americas, choose NTSC. Elsewhere (like
		Europe), you're probably PAL. If you live in the former Soviet Union then your
		standard is SECAM, which these cards do not support. You can probably get a PAL TV
		or use <a href=overlay>VGA Overlay</a>.  Don't worry about these defaults too
		much because they can be set at run time either by a dvd player with dxr3 support
                or by the dhc utility.
		</p>
	    <li><a name=mod2.2>If you have a 2.2 kernel (As of driver 0.11.0 this is no longer needed)</a>
		<p>
		If you are using a 2.2 kernel, just copy Makefile.2.2 to Makefile and follow the
                instructions below.  Make sure you have the I2C module compiled and installed.
		</p>
	    <li><a name=mod2.4>Compiling</a>
		<p>
		Just run "make". This will build the four modules, adv717x.o, bt865.o, em8300.o,
		and eeprom.o. To install the modules, run "make install".
		</p>
	    <p>
	    If you have any trouble compiling the modules please send a <i>detailed</i> message to
	    the mailing list at <a
	    href=mailto:dxr3-devel@lists.sourceforge.net>dxr3-devel@lists.sourceforge.net</a>.
	    Thanks.
	</ul>

<h3><a name=createdev>Creating the Device Files</a></h3>
	<ul>
	    <p>
	    In Linux, and Unix in general, to communicate with a device you need to have a device
	    file. Well, the Dxr3 and H+ are no different. We currently use four device files, which
	    must be created as root. If you are running devfs or udev, these will be created automatically
	    and will use kernel assigned major/minor numbers, no need to read this section.
	    </p>
	    <li><a name=creem8300>Creating the /dev/em8300* devices</a>
		<p>To create the four device files, you must be root.
                  As root, run the <code>modules/devices.sh</code> script or
                  these commands:
<listing># mknod /dev/em8300-0 c 121 0
# mknod /dev/em8300_mv-0 c 121 1
# mknod /dev/em8300_ma-0 c 121 2
# mknod /dev/em8300_sp-0 c 121 3</listing>
		Note: The device numbers that we are using are currently using are likely to change
		in the future. Keep that in mind.
		</p>
            </li>
	</ul>

<h3><a name=modload>Loading the Kernel Modules</a></h3>
	<ul>
	    <li><a name=modldm>ldm and rmm</a>
		<p>
		In the em8300/modules directory there live two shell scripts related to loading and
		unloading the kernel modules, ldm and rmm. ldm
		automates loading of the driver modules, and rmm automates unloading of the modules. In
		order to pass module parameters to the adv717x.o and em8300.o modules you must edit the
		ldm script. Commented out underneath the lines to load the adv717x and em8300 modules
		you can see some examples of the more commonly used module parameters. So, for example,
		to set the adv717x module option "pixelport_16bit" to 0 and "pixelport_other_pal" to 1 you would have a line like the
		following:
<br><br><font size=-1>
insmod adv717x.o pixelport_16bit=0 pixelport_other_pal=1<br>
</font><br>
		Enter other module options similarly. See the following table for a list of module
		options and explanations of what they do. If you don't want to use ldm and rmm you
		can just issue the appropriate modprobe/insmod/rmmod commands by themselves and
		enter the module parameters on the command line or in /etc/modules.conf. Note, with
		ldm, module options located in /etc/modules.conf will not be read, so if you use ldm
		make sure to edit the module options in there.
		</p>
	    <li><a name=modparam>Module Parameters</a>
		<p>
		There are multiple parameters for each of the modules that
		affect their functionality.  The choice of module options will
		depend upon your particular board. Also, module options for
		the adv717x driver do not matter for cards with a bt865 chip
		and vice versa. Further, module options for the adv717x and
		bt865 modules only matter for TV output and have no effect on
		overlay. See
		<a href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/dxr3/em8300/modules/README-modoptions">modules/README-modoptions</a>
		for the list of supported options, possible values, and their
		descriptions as well as commonly used configurations.
		</p>
	</ul>
<h3><a name=microcode>All Things Microcode</a></h3>
	<ul>
	    <p>
	    The em8300 RISC processor needs to be programed before use. This program is called a
	    "microcode" and we will use the one that has already been written for us.
	    </p>
	    <p>
	    Note that version 0.12.0 and later of the driver package comes
	    with a microcode, so just running em8300setup should be enough,
	    no need to extract your own.
	    </p>
	    <p>
	    Additionally, versions 0.15.2 and later have the capability to
	    load the microcode on demand, so even running em8300setup is no
	    longer needed for the purpose of just loading it.  You may want to
	    run it for other purposes, though.
	    </p>
	    <p>
	    If you use the drivers in packaged form from your distribution,
	    chances are that the microcode is not included in the package.
	    If that is the case, read on.
	    </p>
	    <p>
	    A microcode that is known to work well for many users is
	    available separately from
	    <a href="http://dxr3.sourceforge.net/download/">http://dxr3.sourceforge.net/download/</a>.
	    If you decide to use it, you can skip directly to the
	    <a href="#ucload">loading section</a>.
	    </p>
	    <li><a name=ucunc>Uncompressing</a>
		<p>
		If you have downloaded a copy of the Windows driver (preferably the Windows 98
		driver) from Sigma Designs or Creative Labs or copied the driver from the cdrom,
		then you will have to uncompress the driver files. If you have already installed the
		Windows driver and have access to your windows/system directory, then you can skip
		to the next section. First use unzip to uncompress and expand the driver archive. In
		that archive you will find either rmquasar.vx_ or enc2dev.vx_ depending if you have
		the Sigma Designs or Creative Labs drivers, respectively. Now we have to uncompress
		this file. Use the provided perl program "msexpand.pl" located in em8300/scripts to
		uncompress this file. For example:
<listing>$ unzip HP1_82W1.ZIP
$ em8300/scripts/msexpand.pl rmquasar.vx_</listing>
		</p>
	    <li><a name=ucext>Extracting</a>
		<p>
		Now that we have the uncompressed Windows 98 driver vxd, we need to extract the
		microcode files. To do that use the included perl program microcode_extract.pl
		located in em8300/scripts. After running this program two or three microcode files
		will be written to the current directory, the number depending on the driver you
		have. The different microcode versions seem to be for different revisions of the
		cards. Currently, the only way to determine which microcode is correct for your
		card is to try them all and pick the one that works the best. Do not be alarmed if
		some of them do not work at all.
		</p>
	    <li><a name=ucload>Loading</a>
		<p>
		At this point you should have the extracted microcode files
		available. If you're using version 0.15.2 or newer, copy the microcode file to
		wherever your system's hotplug configuration loads firmware images from (often
		<code>/lib/firmware</code>), name it <code>em8300.bin</code>, and load the
		modules; the microcode should be automatically uploaded.  If not, or if using
		version 0.15.1 or earlier, you can use the em8300setup tool to load it.  Run
		<code>em8300setup -h</code> and look at the <code>-f</code> option and where
		it expects to find the microcode from, and copy the microcode there.  The
		included perl program microcode_upload.pl can also be used to load the
		microcode into the em8300. For example:
<listing>$ em8300/scripts/microcode_upload.pl microcode0.bin</listing>
		You should get a message like "Microcode uploaded to /dev/em8300-0".  If there are
		no messages then it was unable to open /dev/em8300-0 and you should verify that
		the device file exists. If they do and you have the right permissions (if unsure
		just chmod a+w /dev/em8300*) it usually means that you have the option "PNP OS
		Installed" set to "enabled" in your bios. This option exists in virtually all x86
		bioses since the pentium. Disable this option, this means the bios will set up all
		your plug and play device prior to booting the operating system. Windows has a bad
		habit of randomizing pnp options on booting making it impossible for linux to save
		any settings as they will have changed after booting into windows. Disabling pnp os
		will fix this.
		</p>
		<p>
		Note: This may cause vga passthrough to stop functioning. We are working on this.
		The solution at this time is to just plug your monitor straight into the video card
		or use the "activate_loopback" em8300 module option. You cannot watch MPEG streams
		on the TV output connector with activate_loopback set, however.
		</p>
	</ul>

<h3><a name=play>Playing MPEG Streams and DVDs</a></h3>
	<ul>
	    <p>
	    This section is all about playing MPEGs and DVDs. If you are using VGA loopback, first
	    see the <a href=#overlay>VGA Overlay</a> section then come right back here. If you are
	    playing on a TV, then make sure you have all your cables connected properly, and that
	    your TV is set to receive the composite signal generated by the card. So, since you are
	    following this document from top to bottom, you should be ready to go.
	    </p>
	    <li><a name=playcat>Playing MPEGs via /dev/em8300_mv-* and /dev/em8300_ma-*</a>
		<p>
		Sending mpeg and pcm streams directly to the card is a great way to test that the
		thing is working properly without the overhead of working with a full on DVD player.
		In order to display a MPEG video stream simply send it to "/dev/em8300_mv-0".
		In order to test the analog audio capability of the card you can use mpg123. For
		example:
<listing>$ extract_mpeg2 testvideostream.mpeg &gt; /dev/em8300_mv-0
$ mpg123 -a /dev/em8300_ma-0 somegoodtestmusic.mp3</listing>
		Note, you must send only MPEG video streams to /dev/em8300_mv-*, and only PCM audio to
		/dev/em8300_ma-*. An MPEG system file, composed of both
		video and audio, will cause garbage to be displayed on the screen. You must first
		separate the system into video and audio components, and play each one separately.
		Also, /dev/em8300-* is a control device, and cannot be use to play mpeg systems.
		</p>
	    <li><a name=playxine>Using Xine to play DVDs</a>
		<p>
		A dxr3 plugin is included with Xine since Xine 0.5.0.  Please see xine-lib/doc/README.dxr3
		</p>
	    <li><a name=mplayer>Using MPlayer to play DVDs</a>
		<p>
		Invoke mplayer with the following options: <i>"-ao oss:/dev/em8300_ma-0 -vo dxr3 -dvd &lt;chapternumber&gt;"</i>
		</p>
            <li><a name=mplayer2>Using MPlayer to play DivX/RealVideo etc</a>
	        <p>
		To play any non MPEG1/2 content with mplayer you have to specify an MPEG1 filter, you do this by
		adding <i>-vop lavc</i> or <i>-vop fame</i> and you are good to go. If you are using gmplayer
		(GUI enabled MPlayer) you can set the mpeg1 filter to use in
		<b>Preferences->Video->(dxr3)->Configure Driver</b>.
		</p>
	    <li><a name=playoms>Using OMS to play DVDs</a>
		<p>
		OMS was the original player for this project but since then development seems to
		have stopped. Thus, we currently suggest you use Xine. This may change at some
		future date.
		</p>
	</ul>

<h3><a name=usefulprogs>Other Useful Programs</a></h3>
	<ul>
	    <p>
	    In this section we describe some useful programs that have been contributed to the
	    project.
	    </p>
	    <li><a name=progsdhc>DHC by Ze'ev Maor</a>
		<p>
		DHC is a useful program written by Ze've Maor. DHC's source lives in the em8300/dhc
		directory and it is built by default during the build process
		if GTK+ 2.x's development files are available.
		DHC can be used to adjust the brightness, contrast, saturation, aspect
		ration, TV output standard (PAL, NTSC, and PAL 60), turn on and off the subpicture
		(subtitles, etc.), and change between analog and spdif audio outputs.
		</p>
	</ul>

<h3><a name=overlay>Using VGA Overlay Mode</a></h3>
	<ul>
	    <p>
	    VGA Overlay can be used to view hardware MPEG decoded streams on your computer monitor.
	    The main drawback of the Dxr3/H+ design is that using this feature results in added
	    noise and reduced visual quality on the monitor from the video card. So, you may notice
	    that your text that used to appear crisp is now fuzzy with the decoder card inserted.
	    Sorry, there is nothing we can do about this. If it bothers you too much, use a TV
	    instead.
	    </p>
	    <li><a name=oversetup>Setting it up</a>
		<p>
		First, you must make sure that the overlay cable is correctly installed. Follow the
		instructions that came with your card.  Second, you may need to enable the
		"activate_loopback" module option for the em8300 module.  See the <a
		name=modparam>Module Parameters</a> section above for details. Unload and reload the
		modules for the change to take effect, if needed. Then you must load the microcode.
		See the section <a href=#microcode>All Things Microcode</a> for help loading the
		microcode. Now you should be ready to continue to the next section. <b>Note: Overlay
		support is considered experimental at this time and will probably not work.</b>
		</p>
	    <li><a name=overprogs>dxr3view and autocal</a>
		<p>
		Again, run "bootstrap" in the em8300 directory, then run
		configure, make, and make install. First, run autocal. This will make the screen
		flash for a second. This has to be done every time the microcode is reloaded, which
		means that you must load Xine or OMS before running autocal. Yeah, I know its silly.
		Should be fixed in the future. Then you have to run dxr3view. This will bring up a
		rectangular window with the overlay window on top. It should look akin to the
		windows overlay. Now, you should be able to press play in Xine or OMS and watch your
		MPEG. The control window in dxr3view can be used to fine tune the size, shape, and
		appearance of the overlay to a certain extent. Also, if you press 't' while the
		mouse is over the dxr3view window, a menu with several options, including
		fullscreen, will appear.
		</p>
	</ul>

<h3><a name=detboard>Identifying your Card</a></h3>
<!-- Mishehu: creative labs ct7235-vbq (9938 rev b) has a conexant-made bt865akrf on it - wait...  the circuit board say "model: ct7260"
     Prodos: 7175 -> pixelport->16bit
     Badfish: microcode upload problem: bt865 - broke in february -->
	<ul>
	    <p> Sometimes it is helpful to know some details about your particular board, especially
	    if you need help getting the driver to work. You can use the following table to help
	    figure out what card you have and if there are any special notes about it.
	    </p>
	    <li><a name=detsigma>Sigma Designs Hollywood Plus Variants</a>
		<p>
		<table border=1 cellpadding=2 cellspacing=2>
		  <tr>
		    <td>Board ID</td>
		    <td>EM8300 Version</td>
		    <td>Video Chip</td>
		    <td>Notes</td>
		  </tr>
		  <tr>
		    <td>???</td>
		    <td>Rev 2</td>
		    <td>ADV7170</td>
		    <td>Requires pixelport_16=0</td>
		  </tr>
		  <tr>
		    <td>???</td>
		    <td>Rev 2</td>
		    <td>ADV7175</td>
		    <td>Requires pixelport_16=1, dicom_control=1, dicom_fix=1</td>
		  </tr>
		</table>
		</p>
	    <li><a name=detcreat>Creative Labs Dxr3 Variants</a>
		<p>
		<table border=1 cellpadding=2 cellspacing=2>
		  <tr>
		    <td>Board ID</td>
		    <td>EM8300 Version</td>
		    <td>Video Chip</td>
		    <td>Notes</td>
		  </tr>
		    <td>ct7235-vbq (9938 rev b) board:ct7260</td>
		    <td>Rev 2</td>
		    <td>Conexant bt865akrf</td>
		    <td>&nbsp;</td>
		  <tr>
		  </tr>
		</table>
		</p>
	</ul>


<h3><a name=help>Getting Help</a></h3>
	<ul>
	    <p>
	    Eventually, every one of us needs a little help, especially with this hardware ;). There
	    are currently three ways to get help: IRC, the mailing list, and the Sourceforge Fora.
	    Note, the best way to get help is the Mailing list, and the least favorable is the
	    SourceForge Fora. This may change in the future, but currently not many developers visit
	    the SourceForge Fora.
	    </p>
	    <li><a name=helplist>Mailing List - Preferred Method</a>
		<p>
		By far the best way to get help is to send a message to the mailing list. This is
		because all the developers are subscribed and read their email throughout the day.
		The list is <a
		href=mailto:dxr3-devel@lists.sourceforge.net>dxr3-devel@lists.sourceforge.net</a>
		and you can subscribe or unsubscribe at <a
		href=http://sourceforge.net/mail/?group_id=5165>The SourceForge Project Mail
		Page</a>.
		</p>
	    <li><a name=helpirc>IRC Channel</a>
		<p>
		We have an IRC channel! Its #dxr3 on irc.openprojects.net. Come join us and ask
		questions about the driver or just chat with the developers and other users.
		</p>
	    <li><a name=helpfora>Sourceforge Fora</a>
		<p>
		As nice as they are, we don't use them. But you really can't tell that by the number
		of people who have posted to them. Do us all a favor, and just stay away from them
		for now. Perhaps one day we may be popular enough to need them, but right now, just
		say "no".
		</p>
	</ul>

<!-- end main window content -->

    </td>
    <td bgcolor=#ffffff>&nbsp;</td>
    <td bgcolor=#557faa width=15>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=2 bgcolor="#557faa" align=center>
      <a href=http://sourceforge.net>
      <IMG src="http://sourceforge.net/sflogo.php?group_id=5165&type=1" width="88" height="31" border="0" alt="SourceForge Logo"></a>
    </td>
    <td bgcolor=#ffffff valign=bottom align=left><img src=images/ill.gif width=8 height=8></td>
    <td bgcolor=#ffffff>&nbsp;</td>
    <td bgcolor=#ffffff valign=bottom align=right><img src=images/ilr.gif width=8 height=8></td>
    <td bgcolor=#557faa width=15>&nbsp;</td>
  </tr>
  <tr>
    <td valign=bottom align=left bgcolor=#557faa><img src=images/oll.gif width=8 height=8></td>
    <td colspan=4 bgcolor=#557faa>&nbsp;</td>
    <td valign=bottom align=right bgcolor=#557faa><img src=images/olr.gif width=8 height=8></td>
  </tr>
</table>

<address><a href="mailto:dxr3-devel@lists.sourceforge.net">dxr3-devel mailing list</a></address>
<!-- Created: Mon Apr 10 11:20:32 CEST 2000 -->
<!-- hhmts start -->
Last modified: Thu Apr 13 21:50:11 EEST 2006
<!-- hhmts end -->
</body>
</html>