diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-01-26 03:24:19 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-01-26 03:24:19 -0500 |
commit | 0c24cbcea56c8f36374aca0f8ba849adfbf0ecfe (patch) | |
tree | 7139882b6e704d18e68191c6d68a232af1ed7317 /src | |
parent | 2f92b885457c5cee2098ebbf8c6fe5a5eb98ec48 (diff) |
ATOM: print useful output info for DPMS events
Diffstat (limited to 'src')
-rw-r--r-- | src/atombios_output.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c index 4634aebe..c8548db3 100644 --- a/src/atombios_output.c +++ b/src/atombios_output.c @@ -45,6 +45,21 @@ #include "ati_pciids_gen.h" +const char *device_name[12] = { + "CRT1", + "LCD1", + "TV1", + "DFP1", + "CRT2", + "LCD2", + "TV2", + "DFP2", + "CV", + "DFP3", + "DFP4", + "DFP5", +}; + static int atombios_output_dac_setup(xf86OutputPtr output, DisplayModePtr mode) { @@ -889,9 +904,11 @@ atombios_output_dpms(xf86OutputPtr output, int mode) data.exec.pspace = &disp_data; if (RHDAtomBiosFunc(info->atomBIOS->scrnIndex, info->atomBIOS, ATOMBIOS_EXEC, &data) == ATOM_SUCCESS) - ErrorF("Output %d enable success\n", index); + ErrorF("Output %s enable success\n", + device_name[radeon_get_device_index(radeon_output->active_device)]); else - ErrorF("Output %d enable failed\n", index); + ErrorF("Output %s enable failed\n", + device_name[radeon_get_device_index(radeon_output->active_device)]); } radeon_encoder->use_count++; break; @@ -909,9 +926,11 @@ atombios_output_dpms(xf86OutputPtr output, int mode) if (RHDAtomBiosFunc(info->atomBIOS->scrnIndex, info->atomBIOS, ATOMBIOS_EXEC, &data) == ATOM_SUCCESS) - ErrorF("Output %d disable success\n", index); + ErrorF("Output %s disable success\n", + device_name[radeon_get_device_index(radeon_output->active_device)]); else - ErrorF("Output %d disable failed\n", index); + ErrorF("Output %s disable failed\n", + device_name[radeon_get_device_index(radeon_output->active_device)]); } } if (radeon_encoder->use_count > 0) |