]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
drm/edid: Don't print messages regarding stereo or csync by default
authorEgbert Eich <eich@suse.com>
Thu, 13 Jun 2013 19:01:19 +0000 (21:01 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Jun 2013 11:15:44 +0000 (21:15 +1000)
drm_mode_detailed() is called quite often, therefore when a monitor
that has a detailed timing mode marked DRM_EDID_PT_STEREO or requiring
composite sync, warning messages will clutter up the kernel log.
Like we already do for incorrect hsync/vsync pluse widths, print these
messages only when KMS debugging is enabled.

Signed-off-by: Egbert Eich <eich@suse.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index e8d17eebde7164bf61885c0b8a26b550cabbc923..2dc1a60a867db051f36beb287ff192b860848d66 100644 (file)
@@ -1706,11 +1706,11 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
                return NULL;
 
        if (pt->misc & DRM_EDID_PT_STEREO) {
-               printk(KERN_WARNING "stereo mode not supported\n");
+               DRM_DEBUG_KMS("stereo mode not supported\n");
                return NULL;
        }
        if (!(pt->misc & DRM_EDID_PT_SEPARATE_SYNC)) {
-               printk(KERN_WARNING "composite sync not supported\n");
+               DRM_DEBUG_KMS("composite sync not supported\n");
        }
 
        /* it is incorrect if hsync/vsync width is zero */