summaryrefslogtreecommitdiff
path: root/src/i830_modes.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-10-09 11:49:18 -0700
committerEric Anholt <eric@anholt.net>2006-10-09 11:49:37 -0700
commit317cc119c575650c1aa8bf992a0f42bdfffcd7ba (patch)
tree6b7c3ad7b7b44c507ee10d0295d5767f11a2787b /src/i830_modes.c
parent9bb7736ab36f172db58703c4664bb1b0cd7f80c3 (diff)
Move per-output mode setting code to per-output methods.
This is not a very clean interface, as a number of outputs require tweaks to the DPLL registers. When possible, the DPLLs are just adjusted in the per-output post_set_mode, which happens just after the DPLL is enabled. However, this seems better than the previous method of having all outputs programmed in the same function.
Diffstat (limited to 'src/i830_modes.c')
-rw-r--r--src/i830_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c
index f7d46950..83c6051b 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -750,7 +750,7 @@ I830ReprobePipeModeList(ScrnInfoPtr pScrn, int pipe)
else
outputs = (pI830->operatingDevices >> 8) & 0xff;
- for (i = 0; i < MAX_OUTPUTS; i++) {
+ for (i = 0; i < pI830->num_outputs; i++) {
switch (pI830->output[i].type) {
case I830_OUTPUT_ANALOG:
if (outputs & PIPE_CRT) {