drm/edid: Strengthen the algorithm for standard mode codes