drm/radeon/kms: fix analog load detection on DVI-I connectors
[~shefty/rdma-dev.git] / drivers / gpu / drm / radeon / radeon_connectors.c
index 8c9a811..d2e6144 100644 (file)
@@ -946,6 +946,10 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
 
                        encoder = obj_to_encoder(obj);
 
+                       if (encoder->encoder_type != DRM_MODE_ENCODER_DAC ||
+                           encoder->encoder_type != DRM_MODE_ENCODER_TVDAC)
+                               continue;
+
                        encoder_funcs = encoder->helper_private;
                        if (encoder_funcs->detect) {
                                if (ret != connector_status_connected) {