summaryrefslogtreecommitdiff
path: root/src/i830_display.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-07-10 18:21:04 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-07-10 18:21:04 -0700
commitd75490701cdbf2ab6eab82eaa078790a5fe0aea0 (patch)
treed09195156058080b1e4fa185b9037f5e0581cfd3 /src/i830_display.c
parent426d26ea446d646fa8f561ea0e03c8e4a2c0c315 (diff)
Hook up SiI164 mode setting (just a matter of turning the chip on).
Also adds register dumping in case this turns out to not be enough, and fixes a couple of prototypes.
Diffstat (limited to 'src/i830_display.c')
-rw-r--r--src/i830_display.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index 7b96b3a7..e8c8509b 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -1,3 +1,4 @@
+/* -*- c-basic-offset: 4 -*- */
/*
* Copyright © 2006 Intel Corporation
*
@@ -843,8 +844,14 @@ i830SetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode)
}
for (i = 0; i < pI830->num_outputs; i++) {
- if (pI830->output[i].sdvo_drv)
- I830SDVOPreSetMode(pI830->output[i].sdvo_drv, pMode);
+ struct _I830OutputRec *output = &pI830->output[i];
+
+ if (output->sdvo_drv)
+ I830SDVOPreSetMode(output->sdvo_drv, pMode);
+
+ if (output->i2c_drv != NULL)
+ output->i2c_drv->vid_rec->Mode(output->i2c_drv->dev_priv,
+ pMode);
}
if (pI830->planeEnabled[0]) {