summaryrefslogtreecommitdiff
path: root/src/atombios_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atombios_output.c')
-rw-r--r--src/atombios_output.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c
index cb098499..796aaed9 100644
--- a/src/atombios_output.c
+++ b/src/atombios_output.c
@@ -298,6 +298,7 @@ atombios_output_digital_setup(xf86OutputPtr output, int device, DisplayModePtr m
switch (major) {
case 0:
case 1:
+ case 2:
switch (minor) {
case 1:
disp_data.ucMisc = 0;
@@ -356,8 +357,14 @@ atombios_output_digital_setup(xf86OutputPtr output, int device, DisplayModePtr m
}
data.exec.pspace = &disp_data2;
break;
+ default:
+ ErrorF("Unknown table version\n");
+ exit(-1);
}
break;
+ default:
+ ErrorF("Unknown table version\n");
+ exit(-1);
}
data.exec.index = index;
@@ -479,7 +486,7 @@ atombios_output_dig_transmitter_setup(xf86OutputPtr output, int device, DisplayM
int major, minor;
memset(&disp_data,0, sizeof(disp_data));
- if (IS_DCE32_VARIANT)
+ if (IS_DCE32_VARIANT)
index = GetIndexIntoMasterTable(COMMAND, UNIPHYTransmitterControl);
else {
switch (device) {
@@ -1163,7 +1170,7 @@ atombios_set_output_crtc_source(xf86OutputPtr output)
/*ErrorF("select crtc source table is %d %d\n", major, minor);*/
switch(major) {
- case 1: {
+ case 1:
switch(minor) {
case 0:
case 1:
@@ -1248,9 +1255,9 @@ atombios_set_output_crtc_source(xf86OutputPtr output)
break;
}
break;
- }
default:
- break;
+ ErrorF("Unknown table version\n");
+ exit(-1);
}
data.exec.index = index;