diff options
author | Dave Airlie <airlied@linux.ie> | 2007-06-15 23:30:04 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-06-15 23:30:04 +1000 |
commit | 6b2ae93506d6795f87d6993bebfcb4e6632508ee (patch) | |
tree | 727b3c0d06c5ef0831bd3452e6a4a499ff245cf1 /src/i830_sdvo.c | |
parent | 671ba03befebfdd7256855858987aabc28b2e8cd (diff) |
sdvo: add support for RGB outputs on SDVO
This lights up my monitor VGA-1 - it doesn't look the best though
Diffstat (limited to 'src/i830_sdvo.c')
-rw-r--r-- | src/i830_sdvo.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index 24c9c99b..3916dba8 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -1280,6 +1280,18 @@ i830_sdvo_init(ScrnInfoPtr pScrn, int output_device) output->subpixel_order = SubPixelHorizontalRGB; name_prefix="TMDS"; } + else if (dev_priv->caps.output_flags & SDVO_OUTPUT_RGB0) + { + dev_priv->active_outputs = SDVO_OUTPUT_RGB0; + output->subpixel_order = SubPixelHorizontalRGB; + name_prefix="VGA"; + } + else if (dev_priv->caps.output_flags & SDVO_OUTPUT_RGB1) + { + dev_priv->active_outputs = SDVO_OUTPUT_RGB1; + output->subpixel_order = SubPixelHorizontalRGB; + name_prefix="VGA"; + } else { unsigned char bytes[2]; @@ -1318,6 +1330,6 @@ i830_sdvo_init(ScrnInfoPtr pScrn, int output_device) dev_priv->pixel_clock_max / 1000.0, (dev_priv->caps.sdvo_inputs_mask & 0x1) ? 'Y' : 'N', (dev_priv->caps.sdvo_inputs_mask & 0x2) ? 'Y' : 'N', - dev_priv->caps.output_flags & SDVO_OUTPUT_TMDS0 ? 'Y' : 'N', - dev_priv->caps.output_flags & SDVO_OUTPUT_TMDS1 ? 'Y' : 'N'); + dev_priv->caps.output_flags & (SDVO_OUTPUT_RGB0 | SDVO_OUTPUT_TMDS0) ? 'Y' : 'N', + dev_priv->caps.output_flags & (SDVO_OUTPUT_RGB1 | SDVO_OUTPUT_TMDS1) ? 'Y' : 'N'); } |