From 7ed1b05922c07ff45a5794a992fd3d59ab55aa73 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 12 Dec 2006 16:03:52 -0800 Subject: [PATCH] Fix mac mini SDVO output: write the SDVO[BC] enabled register state twice. --- src/i830_sdvo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index 7936abdf..895639eb 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -696,6 +696,12 @@ i830_sdvo_dpms(xf86OutputPtr output, int mode) i830_sdvo_set_active_outputs(output, dev_priv->active_outputs); + /* Do it again! If we remove this below register write, or the exact + * same one 2 lines up, the mac mini SDVO output doesn't turn on. + */ + OUTREG(dev_priv->output_device, + INREG(dev_priv->output_device) | SDVO_ENABLE); + for (i = 0; i < 2; i++) i830WaitForVblank(pScrn);