summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-27Consistently use /* */ style comments instead of //HEADmasterTormod Volden1-35/+26
Also clean up some obsolete comments Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-05-27Relax TV format support disclaimer in usage textTormod Volden1-1/+1
TV format switching should work on more than Savage3D. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-05-27Do not suggest the use of setuid in error messageTormod Volden1-2/+2
Nobody likes setuid binaries, users can use sudo instead. Also add "Error" to the error messages. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-05-27Use libx86 instead of own lrmi codeTormod Volden4-1184/+2
libx86 is available in all major distributions and should be superior to the lrmi code it is partly based on. Theoretically s3switch can now work by x86emu emulation on other architectures as well. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-05-27Fix output detection on ProSavageTormod Volden1-0/+7
The registers were found by running "s3switch regdump" after switching outputs on/off and changing TV format using s3switch. It seems like the TV output status can not be read on ProSavage. I have not checked whether it can be changed either. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-05-27Fix switching to NTSC-J TV formatTormod Volden1-2/+2
Since TV_FORMAT_NTSCJ is 0, the old logic would not actually set the TV format if ntsc-j (or ntscj) was given. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-02-17Add "regdump" command for printing card register contentsTormod Volden1-0/+31
For debugging use only. The output format is similar to the (unused) SavagePrintRegs() in the savage xorg DDX. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-19Add -V option to print versions3switch-0.1Tormod Volden1-0/+7
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-19Move privilege check to after arguments parsingTormod Volden1-6/+6
So that anyone can run s3switch -h to see usage description. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-19Update lrmi.c and lrmi.h from upstream CVSTormod Volden2-419/+622
Main changes: - support for OpenBSD and FreeBSD - reworded license statement (MIT style) Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-19copyright: Delete duplicated textTormod Volden1-24/+0
The same text was written twice. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-18Add missing format string for printfTormod Volden1-2/+2
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-18lrmi.c: Apply lrmi upstream fix to build on 2.6.26+Tormod Volden1-0/+9
http://lrmi.cvs.sourceforge.net/viewvc/lrmi/lrmi/lrmi.c?r1=1.13&r2=1.14 It is recommended to link the upstream lrmi instead of using our in-tree copy, but we will leave a buildable lrmi.c here until major distributions catch up and package lrmi. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608175 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-11-18Patch from GeeXboX 0.97 for ViRGE/GX2 supportVille Skyttä1-1/+15
Extracted from s3switch.tar.bz2 contained in the GeeXboX 0.97 source tarball from http://www.geexbox.org/releases/0.97/geexbox-0.97-full.tar The author seems to be "mADAR". Thanks!
2011-11-18Avoid segfault on TV signal format change with ThinkPad T23Ville Skyttä1-0/+4
Fix segfaults seen on IBM ThinkPad T23 when changing TV signal format. Thanks to the upstream author, Tim Roberts, for help in creating this patch.
2011-11-18Use CFLAGS in Makefiledebian-0.0.20030423-2Guido Guenther1-1/+2
2011-11-18Let TVout work on ProSavageDDRGuido Guenther1-0/+1
Patch from http://www.mythtv.org/pipermail/mythtv-users/2003-April/003032.html (seems like it originally came from Tim Roberts) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=207878
2011-11-06Fix includes in s3switch.c to kill gcc warningsGuido Guenther1-1/+5
2011-11-06Add proper copyright noticeGuido Guenther1-0/+48
2011-11-06Move s3switch.1x man page to s3switch.8Guido Guenther1-1/+1
since it is not an X application
2011-11-06Add clean rule to MakefileGuido Guenther1-0/+3
2011-11-06Imported Tim Roberts' original codes3ssrc.zipTim Roberts5-0/+1489
From http://www.probo.com/timr/s3/s3ssrc.zip md5sum 1328b070343ac79c5ed4c613a1113754 s3ssrc.zip