drm/i915: make LVDS fixed mode a preferred mode
The detected fixed panel mode really is preferred, so mark it as such and add it to the LVDS connector mode list. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
712531bfe9
commit
e285f3cd2c
@ -456,6 +456,13 @@ void intel_lvds_init(struct drm_device *dev)
|
|||||||
dev_priv->panel_fixed_mode =
|
dev_priv->panel_fixed_mode =
|
||||||
drm_mode_duplicate(dev, dev_priv->vbt_mode);
|
drm_mode_duplicate(dev, dev_priv->vbt_mode);
|
||||||
mutex_unlock(&dev->mode_config.mutex);
|
mutex_unlock(&dev->mode_config.mutex);
|
||||||
|
if (dev_priv->panel_fixed_mode) {
|
||||||
|
dev_priv->panel_fixed_mode->type |=
|
||||||
|
DRM_MODE_TYPE_PREFERRED;
|
||||||
|
drm_mode_probed_add(connector,
|
||||||
|
dev_priv->panel_fixed_mode);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user