diff options
author | Hong Liu <hong.liu@intel.com> | 2008-06-04 16:58:05 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-04 16:58:05 +0800 |
commit | beb72ae5aa053303f5cc419e9c9d7c6db964f160 (patch) | |
tree | 5f21d4fc2e979e8bd5f5512d76da93d26fcd38c7 | |
parent | c7fee208fd46e143965ea173984d284e1eec2a9b (diff) |
Set SDVO sync polarity to default on 965
Fix fd.o bug 15766
-rw-r--r-- | src/i810_reg.h | 4 | ||||
-rw-r--r-- | src/i830_sdvo.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h index 9da258a7..e0b0c272 100644 --- a/src/i810_reg.h +++ b/src/i810_reg.h @@ -1252,6 +1252,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define SDVO_CLOCK_OUTPUT_INVERT (1 << 18) #define SDVOC_GANG_MODE (1 << 16) #define SDVO_BORDER_ENABLE (1 << 7) +/** new with 965, default is to be set */ +#define SDVO_VSYNC_ACTIVE_HIGH (1 << 4) +#define SDVO_HSYNC_ACTIVE_HIGH (1 << 3) +/** 915/945 only, read-only bit */ #define SDVOB_PCIE_CONCURRENCY (1 << 3) #define SDVO_DETECTED (1 << 2) /* Bits to be preserved when writing */ diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index 23791274..331059bf 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -873,7 +873,9 @@ i830_sdvo_mode_set(xf86OutputPtr output, DisplayModePtr mode, /* Set the SDVO control regs. */ if (IS_I965G(pI830)) { - sdvox = SDVO_BORDER_ENABLE; + sdvox = SDVO_BORDER_ENABLE | + SDVO_VSYNC_ACTIVE_HIGH | + SDVO_HSYNC_ACTIVE_HIGH; } else { sdvox = INREG(dev_priv->output_device); switch (dev_priv->output_device) { |