mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 08:02:17 +00:00
drm/nouveau: add scaler-only modes for eDP too
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
1f403d9cca
commit
646bef2d20
@ -623,7 +623,8 @@ nouveau_connector_get_modes(struct drm_connector *connector)
|
|||||||
ret = get_slave_funcs(nv_encoder)->
|
ret = get_slave_funcs(nv_encoder)->
|
||||||
get_modes(to_drm_encoder(nv_encoder), connector);
|
get_modes(to_drm_encoder(nv_encoder), connector);
|
||||||
|
|
||||||
if (nv_encoder->dcb->type == OUTPUT_LVDS)
|
if (nv_connector->dcb->type == DCB_CONNECTOR_LVDS ||
|
||||||
|
nv_connector->dcb->type == DCB_CONNECTOR_eDP)
|
||||||
ret += nouveau_connector_scaler_modes_add(connector);
|
ret += nouveau_connector_scaler_modes_add(connector);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user