From 17277699fcf4794a90dfd6b56de27107fef94854 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 27 May 2012 10:31:48 +0000 Subject: Fix output detection on ProSavage 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 --- s3switch.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/s3switch.c b/s3switch.c index 246f1d7..99beca9 100644 --- a/s3switch.c +++ b/s3switch.c @@ -181,6 +181,13 @@ fetch_bios_data() outb( 0x6b, 0x3d4 ); jDevices = inb( 0x3d5 ); } + else if( ChipClass == S3_PROSAVAGE ) + { + outb( 0x5f, 0x3c4 ); + jTvFormat = inb( 0x3c5 ); + outb( 0x6b, 0x3d4 ); + jDevices = inb( 0x3d5 ); + } else { outb( 0x6b, 0x3d4 ); -- cgit v1.2.3