drm/i915: Don't add the "force audio" property to DP connectors that don't support...
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 29 Nov 2017 16:43:02 +0000 (18:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Dec 2017 15:05:14 +0000 (17:05 +0200)
No point in adding the "force audio" property to DP connectors
that don't support audio (g4x or port A).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171129164303.18793-2-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c

index 01c848bbd795746c47729632ecf77015639c3847..bf93991c2fccad95b7917fd15c9296ae0e2e533d 100644 (file)
@@ -5180,8 +5180,11 @@ static void
 intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connector)
 {
        struct drm_i915_private *dev_priv = to_i915(connector->dev);
+       enum port port = dp_to_dig_port(intel_dp)->base.port;
+
+       if (!IS_G4X(dev_priv) && port != PORT_A)
+               intel_attach_force_audio_property(connector);
 
-       intel_attach_force_audio_property(connector);
        intel_attach_broadcast_rgb_property(connector);
 
        if (intel_dp_is_edp(intel_dp)) {