drm: Make drm_match_cea_mode() return the underlying 2D VIC for 3d modes
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Sep 2013 15:45:27 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:30 +0000 (07:45 +0200)
commitf2ecf2e3bc01868f244fc6ba9cf8fe5d8446db5b
treecf3548691aa74cb8b3142e16059a19bdfcd4a169
parent4eed4a0a4ac31830b4c328739cabb69721584bfc
drm: Make drm_match_cea_mode() return the underlying 2D VIC for 3d modes

When scanning out a stereo mode, the AVI infoframe vic field has to be
the underlyng 2D VIC. Before that commit, we weren't matching the CEA
mode because of the extra stereo flag and then were setting the VIC
field in the AVI infoframe to 0.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_modes.c
include/drm/drm_crtc.h