I figured it might be an idea to write an em8300init in C, which should work on all systems. At David's suggestion I added features to allow the user to set the run-time options controlling video mode, audio mode etc. from the command line.
You can download the source here. After installing the modules from your favourite em8300 package (see dxr3.sf.net for more info), build this with gcc -o em8300setup em8300setup.c
Usage is as follows:
Usage: em8300setup [-q]|[all other options]
Where options are one of the following
(latter options will override previously specified options for the same control)
-p, -p6, -n Set display mode to pal, pal60, ntsc
-a, -d, -3 Set audio mode to analog, digitalpcm, digital ac3
-o, -w Set aspect ratio to normal[4:3], widescreen[16:9]
-S, -s Set spu mode On(S), Off(s)
-f <filename> Specify alternate location of microcode
Defaults to /usr/share/misc/em8300.uc
-q Query the current settings for all of the above and exit no change
<none> Passing no options causes the same behaviour as em8300init with no options
microcode is uploaded from the default location.
em8300setup em8300setup -d -w -p (etc.) or em8300setup -d -w -p -f /usr/share/misc/em8300.ucAfter the microcode is uploaded you can use this to tweak settings to your hearts content.
This new version of em8300setup (20/10/2002) should detect whether you have uploaded the microcode or not and provide you with a helpful hint to do so if you haven't.
Please send bug reports/patches to the dxr3 mailing list (see dxr3.sf.net) This code is released under the GPL, you should already have a copy of it if you are using the em8300 linux drivers, if not then this code is of little use to you, but still subject to the same licensing agreement.
| All images, text and code (C) 2002 Malcolm Lashley |
|