mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm/probe-helper: Ensure cmdline mode matches interlace mode
drm_helper_probe_add_cmdline_mode was looking for a match for the width, height, and refresh rate within the EDID modes, but didn't check the interlacing flag. That meant that with video=1920x1080@50i would match any 1920x1080@50 mode that was found. The converse would be possible too if an interlaced mode with matching resolution & refresh rate was found first. Check the interlacing flag as well. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
0e56f6eb75
commit
beb34bb3a7
@@ -164,6 +164,10 @@ static int drm_helper_probe_add_cmdline_mode(struct drm_connector *connector)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (cmdline_mode->interlace !=
|
||||
!!(mode->flags & DRM_MODE_FLAG_INTERLACE))
|
||||
continue;
|
||||
|
||||
/* Mark the matching mode as being preferred by the user */
|
||||
mode->type |= DRM_MODE_TYPE_USERDEF;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user