summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-08-17 15:31:16 +1000
committerDave Airlie <airlied@redhat.com>2009-08-17 15:31:53 +1000
commitd25185f33d06a8162469e18688e95ee19a5d94d8 (patch)
treee50abd0a3e6fc41c57858add218fb62a62d4994c
parenta971f1cfbbda1e3d16fb41f4a07f3b43fd59bc0d (diff)
atom: recall crtc source script after tv dpms on
For some reason we lost the DACB source when we dpms tv back on.
-rw-r--r--src/atombios_output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c
index 2f4338f7..57345b34 100644
--- a/src/atombios_output.c
+++ b/src/atombios_output.c
@@ -65,6 +65,8 @@ const char *device_name[12] = {
"DFP5",
};
+static void atombios_set_output_crtc_source(xf86OutputPtr output);
+
static int
atombios_output_dac_setup(xf86OutputPtr output, int action)
{
@@ -1280,6 +1282,9 @@ atombios_output_dpms(xf86OutputPtr output, int mode)
ErrorF("Output %s enable failed\n",
device_name[radeon_get_device_index(radeon_output->active_device)]);
}
+ /* at least for TV atom fails to reassociate the correct crtc source at dpms on */
+ if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
+ atombios_set_output_crtc_source(output);
break;
case DPMSModeStandby:
case DPMSModeSuspend: