]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: Add CEA modes before inferred modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 May 2015 14:45:07 +0000 (17:45 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 May 2015 17:15:39 +0000 (19:15 +0200)
commite640c1a7c5053c0ff19a5fa812c8d1c6ad0567f4
treee3a3922f824d781af641bd9c0faf70ad846ccafa
parentc2535089824c7ff2cd632a861cc4a45b46d28788
drm/edid: Add CEA modes before inferred modes

Currently we're adding CEA modes after the inferred modes, which means
we might get multiple modes that are very close to each other, but
slightly different, which seems a bit silly. That's because duplicate
mode check that occurs when adding inferred modes would not consider
CEA modes as potential duplicates. Reverse the order so that CEA
modes get added before inferred modes, and are thus considered potential
duplicates.

Or as ajax put it on irc:
"< ajax> the point of the "pick a timing formula" heuristic was to
generate something the sink could _likely_ sink.  if it tells us
timings it can sink explicitly then second-guessing seems dumb."

Cc: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c