]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Prefer noninterlace cmdline mode unless explicitly specified
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Mar 2014 13:53:13 +0000 (14:53 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Apr 2014 00:07:03 +0000 (10:07 +1000)
commit2560edad2b13a054f46d9896f13bd997b2f60f7e
tree892b82a65d347f4a50ef0fb42cd77e44274a2917
parentf77c2bddaa713494fbfcd98d7146bd0be353e590
drm: Prefer noninterlace cmdline mode unless explicitly specified

Currently drm_pick_cmdline_mode() doesn't care about the interlace
when the given mode line has no "i" suffix.  That is, when there are
multiple entries for the same resolution, an interlace mode might be
picked up just depending on the assigned order, and there is no way to
exclude it.

This patch changes the logic for the mode selection, to prefer the
noninterlace mode unless the interlace mode is explicitly given.
When no matching mode is found, it still tries the interlace mode as
fallback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c