Skip to content

Commit 5e52622

Browse files
committed
drm/i915/sdvo: Don't add DDC modes for LVDS
Stop enumerating the DDC modes for SDVO LVDS outputs (outside the initial fixed mode setup). intel_panel_mode_valid() will just reject most of them anyway, and any left over are entirely pointless as they'll match the fixed mode hdisp+vdisp+vrefresh so no user visible effect from using them instead of the fixed mode. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jani Nikula <[email protected]>
1 parent aa7d827 commit 5e52622

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/i915/display/intel_sdvo.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,17 +2299,12 @@ static int intel_sdvo_get_tv_modes(struct drm_connector *connector)
22992299

23002300
static int intel_sdvo_get_lvds_modes(struct drm_connector *connector)
23012301
{
2302-
struct intel_sdvo *intel_sdvo = intel_attached_sdvo(to_intel_connector(connector));
23032302
struct drm_i915_private *dev_priv = to_i915(connector->dev);
2304-
int num_modes = 0;
23052303

23062304
drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s]\n",
23072305
connector->base.id, connector->name);
23082306

2309-
num_modes += intel_panel_get_modes(to_intel_connector(connector));
2310-
num_modes += intel_ddc_get_modes(connector, &intel_sdvo->ddc);
2311-
2312-
return num_modes;
2307+
return intel_panel_get_modes(to_intel_connector(connector));
23132308
}
23142309

23152310
static int intel_sdvo_get_modes(struct drm_connector *connector)

0 commit comments

Comments
 (0)