drm/edid: Strengthen the algorithm for standard mode codes
authorAdam Jackson <ajax@redhat.com>
Mon, 29 Mar 2010 21:43:29 +0000 (21:43 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Apr 2010 00:40:24 +0000 (10:40 +1000)
commit7ca6adb37918db21d076a489c6c39490fb34264e
tree936aecb1509343a47a05b567b584c2b039c6a35b
parenta0910c8e37c3bede089e9f9dee63a7eaf9601a43
drm/edid: Strengthen the algorithm for standard mode codes

If you have 1920x1200 in both detailed (probably RB) and standard
variants, you probably only want the RB version.  But we have no way of
guessing that from standard mode parse.  So, if a mode already exists
for a given w/h/r, skip adding it.

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