diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-01-04 21:01:05 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-01-04 21:01:05 -0500 |
commit | 1813456af3def38c6f53103054976f3092491746 (patch) | |
tree | db4f2c2ed7bf3ed563800f210f4bec7b6f38512f /src/atombios_output.c | |
parent | 90ce00a3dbf37833a71db234372695460c8f0342 (diff) |
ATOM: fail on more tables with unhandled revisions
Diffstat (limited to 'src/atombios_output.c')
-rw-r--r-- | src/atombios_output.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c index 3030a10c..c111d764 100644 --- a/src/atombios_output.c +++ b/src/atombios_output.c @@ -356,8 +356,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 +485,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) { @@ -874,7 +880,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: @@ -959,9 +965,9 @@ atombios_set_output_crtc_source(xf86OutputPtr output) break; } break; - } default: - break; + ErrorF("Unknown table version\n"); + exit(-1); } data.exec.index = index; |