]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add support for additional stereo 3D modes
authorThomas Wood <thomas.wood@intel.com>
Wed, 16 Oct 2013 14:58:50 +0000 (15:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 17:47:37 +0000 (19:47 +0200)
commit7800cad9fc85c80637fe1726605c1dbf22e64560
treee9841f07155820f93c9f560056f0609bcff0699b
parent7f66b410c78b8e0e79d30024a9d153351d4c5040
drm: add support for additional stereo 3D modes

Parse the 3D_Structure_ALL and 3D_MASK fields of the HDMI Vendor
Specific Data Block to expose more stereo 3D modes.

v2: Use (1 << 0) for consistency. (Ville Syrjälä)
    Skip adding any modes if 3D_MASK is indicated as being present but
    the length only includes 3D_Structure_ALL. (Ville Syrjälä)
    Check that the value of HDMI_3D_LEN is large enough to include
    3D_Structure_ALL and 3D_MASK, if they are present. (Ville Syrjälä)
v3: Increment offset before the length checks. (Ville Syrjälä)

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_edid.c