diff options
author | Alex Deucher <alex@samba.(none)> | 2008-01-14 16:11:09 -0500 |
---|---|---|
committer | Alex Deucher <alex@samba.(none)> | 2008-01-14 16:11:09 -0500 |
commit | 5244e235262290eab8a3546f449295c12ed8f6c7 (patch) | |
tree | c1523a102745fa590fd99dc64b574f4b39c68ed0 /src/atombios_output.c | |
parent | 729da30c80d6545b75c8faea44754634f477cc09 (diff) |
ATOMBIOS: disable the scaler by default on avivo cards
Fixes bug 14001
Diffstat (limited to 'src/atombios_output.c')
-rw-r--r-- | src/atombios_output.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c index 1a6277e8..68478a22 100644 --- a/src/atombios_output.c +++ b/src/atombios_output.c @@ -316,8 +316,6 @@ atombios_output_lvds_setup(xf86OutputPtr output, DisplayModePtr mode) return ATOM_NOT_IMPLEMENTED; } -#if 0 - static int atombios_output_scaler_setup(xf86OutputPtr output, DisplayModePtr mode) { @@ -356,8 +354,6 @@ atombios_output_scaler_setup(xf86OutputPtr output, DisplayModePtr mode) } -#endif - static AtomBiosResult atombios_display_device_control(atomBiosHandlePtr atomBIOS, int device, Bool state) { @@ -369,12 +365,12 @@ atombios_display_device_control(atomBiosHandlePtr atomBIOS, int device, Bool sta data.exec.index = device; data.exec.dataSpace = (void *)&space; data.exec.pspace = &disp_data; - + if (RHDAtomBiosFunc(atomBIOS->scrnIndex, atomBIOS, ATOMBIOS_EXEC, &data) == ATOM_SUCCESS) { ErrorF("Output %d %s success\n", device, state? "enable":"disable"); return ATOM_SUCCESS; } - + ErrorF("Output %d %s failed\n", device, state? "enable":"disable"); return ATOM_NOT_IMPLEMENTED; } @@ -419,12 +415,12 @@ atombios_device_dpms(xf86OutputPtr output, int device, int mode) switch (mode) { case DPMSModeOn: atombios_display_device_control(info->atomBIOS, index, ATOM_ENABLE); - break; + break; case DPMSModeStandby: case DPMSModeSuspend: case DPMSModeOff: atombios_display_device_control(info->atomBIOS, index, ATOM_DISABLE); - break; + break; } } @@ -502,9 +498,9 @@ atombios_set_output_crtc_source(xf86OutputPtr output) SELECT_CRTC_SOURCE_PS_ALLOCATION crtc_src_param; int index = GetIndexIntoMasterTable(COMMAND, SelectCRTC_Source); int major, minor; - + atombios_get_command_table_version(info->atomBIOS, index, &major, &minor); - + ErrorF("select crtc source table is %d %d\n", major, minor); crtc_src_param.ucCRTC = radeon_crtc->crtc_id; @@ -568,7 +564,7 @@ atombios_output_mode_set(xf86OutputPtr output, { RADEONOutputPrivatePtr radeon_output = output->driver_private; - //atombios_output_scaler_setup(output, mode); + atombios_output_scaler_setup(output, mode); atombios_set_output_crtc_source(output); if (radeon_output->MonType == MT_CRT) { |