diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-03-24 02:26:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-26 04:36:03 -0400 |
commit | c8435362f2211086b34ce871fa9c3fcc7ca79ff9 (patch) | |
tree | b7b506e6ca9409d6c1509b13051856e98dda6d1d /drivers/gpu | |
parent | c61205b24b79cd3708e751ed9c33970f487686ab (diff) |
drm/nouveau: default to 8bpc for non-LVDS panels if EDID isn't useful
A few reports of bad behaviour since the autodetection defaulted to 6bpc,
lets fix this.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_connector.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 8f510fd956b0..fa860358add1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c | |||
@@ -654,10 +654,13 @@ nouveau_connector_detect_depth(struct drm_connector *connector) | |||
654 | if (nv_connector->edid && connector->display_info.bpc) | 654 | if (nv_connector->edid && connector->display_info.bpc) |
655 | return; | 655 | return; |
656 | 656 | ||
657 | /* if not, we're out of options unless we're LVDS, default to 6bpc */ | 657 | /* if not, we're out of options unless we're LVDS, default to 8bpc */ |
658 | connector->display_info.bpc = 6; | 658 | if (nv_encoder->dcb->type != OUTPUT_LVDS) { |
659 | if (nv_encoder->dcb->type != OUTPUT_LVDS) | 659 | connector->display_info.bpc = 8; |
660 | return; | 660 | return; |
661 | } | ||
662 | |||
663 | connector->display_info.bpc = 6; | ||
661 | 664 | ||
662 | /* LVDS: panel straps */ | 665 | /* LVDS: panel straps */ |
663 | if (bios->fp_no_ddc) { | 666 | if (bios->fp_no_ddc) { |