summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-05-09 15:49:14 +1000
committerDave Airlie <airlied@linux.ie>2006-06-02 10:02:43 +1000
commit89c4ef8837e5c09122bfd3c6c24c799fb52c9917 (patch)
tree2d412784314732f7a4af64e8164f69c3ac93641a /src
parent225a1c2ac4400ab646a9f5d9b90b32bc8c056f5a (diff)
switch clock rate mult
Diffstat (limited to 'src')
-rw-r--r--src/i830_sdvo.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c
index 399e2e93..bf76033e 100644
--- a/src/i830_sdvo.c
+++ b/src/i830_sdvo.c
@@ -401,15 +401,16 @@ I830SDVOParseResponse1C(I830SDVOPtr s)
curr_table[5] = 0x1e;
}
-Bool
-I830SDVOWriteCommand21(I830SDVOPtr s, unsigned char val)
+
+static Bool
+I830SDVOSetClockRateMult(I830SDVOPtr s, unsigned char val)
{
memset(s->sdvo_regs, 0, 9);
- s->sdvo_regs[SDVO_I2C_OPCODE] = 0x21;
+ s->sdvo_regs[SDVO_I2C_OPCODE] = SDVO_CMD_SET_CLOCK_RATE_MULT;
s->sdvo_regs[SDVO_I2C_ARG_0] = val;
- I830SDVOWriteOutputs(s, 0);
+ I830SDVOWriteOutputs(s, 1);
I830SDVOReadInputRegs(s);
return TRUE;
@@ -495,9 +496,9 @@ I830SDVOPreSetMode(I830SDVOPtr s, DisplayModePtr mode)
I830SDVOWriteCommand10(s);
if (mode->PrivFlags & I830_MFLAG_DOUBLE)
- I830SDVOWriteCommand21(s, 0x02);
+ I830SDVOSetClockRateMult(s, 0x02);
else
- I830SDVOWriteCommand21(s, 0x01);
+ I830SDVOSetClockRateMult(s, 0x01);
}
Bool